(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9747],{82051:(e,t,r)=>{"use strict";r.d(t,{C6:()=>i,Cl:()=>o,Tt:()=>a,YH:()=>l,fX:()=>u,sH:()=>s});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function l(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(78830);function i(e){return Array.isArray(e)?e:[e]}let o="__caslSubjectType__",a=e=>{let t=typeof e;return"string"===t||"function"===t},s=e=>e.modelName||e.name,l=e=>"string"==typeof e?e:s(e);function u(e){return e?e.hasOwnProperty(o)?e[o]:s(e.constructor):"all"}function c(e,t,r){for(let n=r;ne;class f{constructor(e,t,r=0){!function(e,t){if(Array.isArray(e.fields)&&!e.fields.length)throw Error("`rawRule.fields` cannot be an empty array. https://bit.ly/390miLa");if(e.fields&&!t.fieldMatcher)throw Error('You need to pass "fieldMatcher" option in order to restrict access by fields');if(e.conditions&&!t.conditionsMatcher)throw Error('You need to pass "conditionsMatcher" option in order to restrict access by conditions')}(e,t),this.action=t.resolveAction(e.action),this.subject=e.subject,this.inverted=!!e.inverted,this.conditions=e.conditions,this.reason=e.reason,this.fields=e.fields?i(e.fields):void 0,this.priority=r,this.t=t}i(){return this.conditions&&!this.o&&(this.o=this.t.conditionsMatcher(this.conditions)),this.o}get ast(){let e=this.i();return e?e.ast:void 0}matchesConditions(e){return!this.conditions||(!e||a(e)?!this.inverted:this.i()(e))}matchesField(e){return!this.fields||(e?(this.fields&&!this.u&&(this.u=this.t.fieldMatcher(this.fields)),this.u(e)):!this.inverted)}}let m=(e,t)=>{let r={value:e,prev:t,next:null};return t&&(t.next=r),r},g=e=>{e.next&&(e.next.prev=e.prev),e.prev&&(e.prev.next=e.next),e.next=e.prev=null},v=()=>({rules:[],merged:!1}),y=()=>new Map,b=(e,t)=>{!e.h&&t.fields&&(e.h=!0)};class w{constructor(e=[],t={}){this.h=!1,this.l=new Map,this.p={conditionsMatcher:t.conditionsMatcher,fieldMatcher:t.fieldMatcher,resolveAction:t.resolveAction||p},this.g=t.detectSubjectType||u,this.$=e,this.m=this.A(e)}get rules(){return this.$}detectSubjectType(e){return a(e)?e:this.g(e)}update(e){let t={rules:e,ability:this,target:this};return this.M("update",t),this.$=e,this.m=this.A(e),this.M("updated",t),this}A(e){let t=new Map;for(let r=e.length-1;r>=0;r--){let n=e.length-r-1,o=new f(e[r],this.p,n),a=i(o.action),s=i(o.subject||"all");b(this,o);for(let e=0;ee.matchesField(r)):n}on(e,t){let r=m(t,this.l.get(e)||null);return this.l.set(e,r),()=>{r.next||r.prev||this.l.get(e)!==r?g(r):this.l.delete(e)}}M(e,t){let r=this.l.get(e)||null;for(;null!==r;){let e=r.prev;r.value(t),r=e}}}class k extends w{can(...e){let t=this.relevantRuleFor(...e);return!!t&&!t.inverted}relevantRuleFor(e,t,r){let n=this.detectSubjectType(t),i=this.rulesFor(e,n,r);for(let e=0,r=i.length;e{let t;return r=>(void 0===t&&(t=e.every(e=>-1===e.indexOf("*"))?null:function(e){let t=e.map(e=>e.replace(E,O).replace(C,j)),r=t.length>1?`(?:${t.join("|")})`:t[0];return RegExp(`^${r}$`)}(e)),null===t?-1!==e.indexOf(r):t.test(r))};class P extends k{constructor(e=[],t={}){super(e,Object.assign({conditionsMatcher:S,fieldMatcher:T},t))}}class R{constructor(e){this.j=e}because(e){return this.j.reason=e,this}}class M{constructor(e){this.rules=[],this.v=e,this.can=this.can.bind(this),this.cannot=this.cannot.bind(this),this.build=this.build.bind(this)}can(e,t,r,n){let i={action:e};return t&&(i.subject=t,Array.isArray(r)||"string"==typeof r?i.fields=r:void 0!==r&&(i.conditions=r),void 0!==n&&(i.conditions=n)),this.rules.push(i),new R(i)}cannot(e,t,r,n){let i=this.can(e,t,r,n);return i.j.inverted=!0,i}build(e){return new this.v(this.rules,e)}}let N=e=>`Cannot execute "${e.action}" on "${e.subjectType}"`,F=function(e){this.message=e};F.prototype=Object.create(Error.prototype);class I extends F{static setDefaultMessage(e){this._="string"==typeof e?()=>e:e}static from(e){return new this(e)}constructor(e){super(""),this.ability=e,"function"==typeof Error.captureStackTrace&&(this.name="ForbiddenError",Error.captureStackTrace(this,this.constructor))}setMessage(e){return this.message=e,this}throwUnlessCan(...e){let t=this.ability.relevantRuleFor(...e);if(t&&!t.inverted)return;this.action=e[0],this.subject=e[1],this.subjectType=l(this.ability.detectSubjectType(e[1])),this.field=e[2];let r=t?t.reason:"";throw this.message=this.message||r||this.constructor._(this),this}}I._=N;var L=Object.freeze({__proto__:null});t.Ability=P,t.AbilityBuilder=M,t.ForbiddenError=I,t.PureAbility=k,t.buildMongoQueryMatcher=(e,t,r)=>n.createFactory(Object.assign({},x,e),Object.assign({},_,t),r),t.createAliasResolver=function(e){return t=>(function(e,t){let r=i(t),n=0;for(;nr.build(t)):r.build(t)},t.detectSubjectType=u,t.fieldPatternMatcher=T,t.getDefaultErrorMessage=N,t.hkt=L,t.mongoQueryMatcher=S,t.subject=function(e,t){if(t){if(t.hasOwnProperty(o)){if(e!==t[o])throw Error(`Trying to cast object to subject type ${e} but previously it was casted to ${t[o]}`)}else Object.defineProperty(t,o,{value:e})}return t},t.wrapArray=i},23672:(e,t,r)=>{"use strict";r.d(t,{yf:()=>tK});var n,i,o,a,s,l,u,c,d,h,p,f,m,g,v,y={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},b=console,w={};Object.keys(y).forEach(function(e){w[e]=b[e]});var k="Datadog Browser SDK:",x={debug:w.debug.bind(b,k),log:w.log.bind(b,k),info:w.info.bind(b,k),warn:w.warn.bind(b,k),error:w.error.bind(b,k)};function _(e,t){return function(){for(var r=[],n=0;n"}finally{n(),i(),o(),a()}}function Y(e){var t=e.toJSON;return t?(delete e.toJSON,function(){e.toJSON=t}):$}function G(e,t){return Object.keys(e).some(function(r){return e[r]===t})}function K(e){return 0===Object.keys(e).length}function X(e){var t=0,r=V(function(r){t=L(W(r)),e()},200),n=r.throttled,i=r.cancel,o=function(){i(),t=0};return{updateCustomerData:function(e){K(e)?o():n(e)},resetCustomerData:o,getBytesCount:function(){return t},stop:function(){i()}}}function J(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function Q(e,t,r){if(void 0===r&&(r=function(){if("undefined"!=typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var r=e.has(t);return r||e.add(t),r}}}var t=[];return{hasAlreadyBeenSeen:function(e){var r=t.indexOf(e)>=0;return r||t.push(e),r}}}()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var n=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,n)}if(!r.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var i=Array.isArray(e)?e:[],o=0;ot){er(t,"discarded",e);return}for(;o.length>0&&lt){er(t,"truncated",e);break}u.target[d]=h}else for(var d in u.source)if(Object.prototype.hasOwnProperty.call(u.source,d)){var h=et(u.source[d],u.path,d,o,a);if(void 0!==h&&(l+=JSON.stringify(h).length+c+d.length+3,c=1),l>t){er(t,"truncated",e);break}u.target[d]=h}}return n(),i(),s}function et(e,t,r,n,i){var o=function(e){if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(e){}return e}(e);if(!o||"object"!=typeof o)return"bigint"==typeof o?"[BigInt] ".concat(o.toString()):"function"==typeof o?"[Function] ".concat(o.name||"unknown"):"symbol"==typeof o?"[Symbol] ".concat(o.description||o.toString()):o;var a=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(e){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;if(i.has(e))return"[Reference seen at ".concat(i.get(e),"]");var s=void 0!==r?"".concat(t,".").concat(r):t,l=Array.isArray(o)?[]:{};return i.set(e,s),n.push({source:o,target:l,path:s}),l}function er(e,t,r){x.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),r)}var en=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),this.observers.push(e),{unsubscribe:function(){t.observers=t.observers.filter(function(t){return e!==t}),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach(function(t){return t(e)})},e}();function ei(){for(var e=[],t=0;t eval")>-1,n=ey.exec(t[3]);return r&&n&&(t[3]=n[1],t[4]=n[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}}(e);r&&(!r.func&&r.line&&(r.func="?"),t.push(r))}),{message:eb(e,"message"),name:eb(e,"name"),stack:t}}var ed="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",eh="(?::(\\d+))",ep=RegExp("^\\s*at (.*?) ?\\(".concat(ed).concat(eh,"?").concat(eh,"?\\)?\\s*$"),"i"),ef=new RegExp("\\((\\S*)".concat(eh).concat(eh,"\\)")),em=RegExp("^\\s*at ?".concat(ed).concat(eh,"?").concat(eh,"??\\s*$"),"i"),eg=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ev=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,ey=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function eb(e,t){if("object"==typeof e&&e&&t in e){var r=e[t];return"string"==typeof r?r:void 0}}var ew=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/,ek="No stack, consider using an instance of Error";function ex(e){var t=e.stackTrace,r=e.originalError,n=e.handlingStack,i=e.startClocks,o=e.nonErrorPrefix,a=e.source,s=e.handling,l=r instanceof Error,u=(null==t?void 0:t.message)&&(null==t?void 0:t.name)?t.message:l?"Empty message":"".concat(o," ").concat(W(ee(r))),c=void 0!==t&&(l||t.stack.length>0&&(t.stack.length>1||void 0!==t.stack[0].url))?eS(t):ek,d=l?eC(r,a):void 0,h=null==t?void 0:t.name,p=e_(r);return{startClocks:i,source:a,handling:s,handlingStack:n,originalError:r,type:h,message:u,stack:c,causes:d,fingerprint:p}}function e_(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function eS(e){var t=eE(e);return e.stack.forEach(function(e){var r="?"===e.func?"":e.func,n=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",i=e.line?":".concat(e.line):"",o=e.line&&e.column?":".concat(e.column):"";t+="\n at ".concat(r).concat(n," @ ").concat(e.url).concat(i).concat(o)}),t}function eE(e){return"".concat(e.name||"Error",": ").concat(e.message)}function eC(e,t){for(var r=e,n=[];(null==r?void 0:r.cause)instanceof Error&&n.length<10;){var i=ec(r.cause);n.push({message:r.cause.message,source:t,type:null==i?void 0:i.name,stack:i&&eS(i)}),r=r.cause}return n.length?n:void 0}!function(e){e.PAGEHIDE="pagehide",e.FEATURE_FLAGS="feature_flags",e.RESOURCE_PAGE_STATES="resource_page_states",e.COLLECT_FLUSH_REASON="collect_flush_reason",e.ZERO_LCP_TELEMETRY="zero_lcp_telemetry",e.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css",e.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",e.CUSTOM_VITALS="custom_vitals",e.TOLERANT_RESOURCE_TIMINGS="tolerant_resource_timings"}(o||(o={}));var eD=new Set,eA="datadoghq.com",ej="pci.browser-intake-datadoghq.com";function eO(){return new Date().getTime()}function eT(){return performance.now()}function eP(){return{relative:eT(),timeStamp:eO()}}function eR(){return void 0===a&&(a=performance.timing.navigationStart),a}function eM(e,t){var r=window.__ddBrowserSdkExtensionCallback;r&&r({type:e,payload:t})}function eN(e){return 0!==e&&100*Math.random()<=e}function eF(e){return"number"==typeof e&&e>=0&&e<=100}var eI={log:"log",configuration:"configuration",usage:"usage"},eL=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],eB=["ddog-gov.com"],ez={maxEventsPerPage:0,sentEventCount:0};function eU(e,t){O(y.debug,e,t),eH(N({type:eI.log,message:e,status:"debug"},t))}function eq(e,t){eH(N({type:eI.log,status:"error"},function(e){if(e instanceof Error){var t=ec(e);return{error:{kind:t.name,stack:eS((t.stack=t.stack.filter(function(e){return!e.url||eL.some(function(t){return M(e.url,t)})}),t))},message:t.message}}return{error:{stack:ek},message:"".concat("Uncaught"," ").concat(W(e))}}(e),t))}function eH(e){s&&ez.sentEventCount=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},eG={debug:"debug",error:"error",info:"info",warn:"warn"},eK={console:"console",http:"http"},eX=Object.keys(eG),eJ=function(){function e(e,t,r,n,i,o){void 0===n&&(n=eK.http),void 0===i&&(i=eG.debug),void 0===o&&(o={}),this.handleLogStrategy=e,this.handlerType=n,this.level=i,this.contextManager=eo(t),this.contextManager.setContext(o),r&&this.contextManager.setContextProperty("logger",{name:r})}return e.prototype.log=function(e,t,r,n){if(void 0===r&&(r=eG.info),null!=n){var i,o=ex({stackTrace:n instanceof Error?ec(n):void 0,originalError:n,nonErrorPrefix:"Provided",source:eW.LOGGER,handling:"handled",startClocks:eP()});i={stack:o.stack,kind:o.type,message:o.message,causes:o.causes}}var a=ee(t),s=i?Z({error:i},a):a;this.handleLogStrategy({message:ee(e),context:s,status:r},this)},e.prototype.debug=function(e,t,r){this.log(e,t,eG.debug,r)},e.prototype.info=function(e,t,r){this.log(e,t,eG.info,r)},e.prototype.warn=function(e,t,r){this.log(e,t,eG.warn,r)},e.prototype.error=function(e,t,r){this.log(e,t,eG.error,r)},e.prototype.setContext=function(e){this.contextManager.setContext(e)},e.prototype.getContext=function(){return this.contextManager.getContext()},e.prototype.setContextProperty=function(e,t){this.contextManager.setContextProperty(e,t)},e.prototype.removeContextProperty=function(e){this.contextManager.removeContextProperty(e)},e.prototype.clearContext=function(){this.contextManager.clearContext()},e.prototype.setHandler=function(e){this.handlerType=e},e.prototype.getHandler=function(){return this.handlerType},e.prototype.setLevel=function(e){this.level=e},e.prototype.getLevel=function(){return this.level},eY([D],e.prototype,"log",null),e}();function eQ(e,t){var r=e.indexOf(t);r>=0&&e.splice(r,1)}var eZ=function(){function e(){this.buffer=[]}return e.prototype.add=function(e){this.buffer.push(e)>500&&this.buffer.splice(0,1)},e.prototype.remove=function(e){eQ(this.buffer,e)},e.prototype.drain=function(e){this.buffer.forEach(function(t){return t(e)}),this.buffer.length=0},e}();function e0(){var e=F().DatadogEventBridge;if(e)return{getCapabilities:function(){var t;return JSON.parse((null===(t=e.getCapabilities)||void 0===t?void 0:t.call(e))||"[]")},getPrivacyLevel:function(){var t;return null===(t=e.getPrivacyLevel)||void 0===t?void 0:t.call(e)},getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,r,n){e.send(JSON.stringify({eventType:t,event:r,view:n?{id:n}:void 0}))}}}function e1(e){void 0===e&&(e=null===(t=F().location)||void 0===t?void 0:t.hostname);var t,r=e0();return!!r&&r.getAllowedWebViewHosts().some(function(t){var r,n;return e===t||(r=e,n=".".concat(t),r.slice(-n.length)===n)})}function e2(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,e2)}var e3=/([\w-]+)\s*=\s*([^;]+)/g;function e5(e,t,r,n){var i=new Date;i.setTime(i.getTime()+r);var o="expires=".concat(i.toUTCString()),a=n&&n.crossSite?"none":"strict",s=n&&n.domain?";domain=".concat(n.domain):"",l=n&&n.secure?";secure":"",u=n&&n.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(l).concat(u)}function e4(e){return function(e,t){for(e3.lastIndex=0;;){var r=e3.exec(e);if(r){if(r[1]===t)return r[2]}else break}}(document.cookie,e)}function e6(e){return u||(u=function(e){var t=new Map;for(e3.lastIndex=0;;){var r=e3.exec(e);if(r)t.set(r[1],r[2]);else break}return t}(document.cookie)),u.get(e)}function e8(e,t){e5(e,"",0,t)}var e9="_dd_s",e7=/^([a-z]+)=([a-z0-9-]+)$/;function te(e){e.expire=String(eO()+9e5)}function tt(e){return Object.keys(e).map(function(t){return[t,e[t]]}).map(function(e){var t=e[0],r=e[1];return"".concat(t,"=").concat(r)}).join("&")}function tr(e){var t={};return e&&(-1!==e.indexOf("&")||e7.test(e))&&e.split("&").forEach(function(e){var r=e7.exec(e);if(null!==r){var n=r[1],i=r[2];t[n]=i}}),t}function tn(){return tr(e4(e9))}function ti(e){localStorage.setItem(e9,tt(e))}function to(){return tr(localStorage.getItem(e9))}function ta(){localStorage.removeItem(e9)}var ts=[];function tl(e,t,r){void 0===r&&(r=0);var n,i,o=t.isLockEnabled,a=t.retrieveSession,s=t.persistSession,l=t.clearSession;if(d||(d=e),e!==d){ts.push(e);return}if(o&&r>=100){tc(t);return}var u=a();if(o&&(u.lock||(i=e2(),u.lock=i,s(u),(u=a()).lock!==i))){tu(e,t,r);return}var c=e.process(u);if(o&&(u=a()).lock!==i){tu(e,t,r);return}if(c&&(K(c)?l():(te(c),s(c))),o&&!(c&&K(c))){if((u=a()).lock!==i){tu(e,t,r);return}delete u.lock,s(u),c=u}null===(n=e.after)||void 0===n||n.call(e,c||u),tc(t)}function tu(e,t,r){z(function(){tl(e,t,r+1)},10)}function tc(e){d=void 0;var t=ts.shift();t&&tl(t,e)}function td(e){return function(e,t){var r=function(){if(void 0===h)try{var e=new th("http://test/path");h="http://test/path"===e.href}catch(e){h=!1}return h?th:void 0}();if(r)try{return void 0!==t?new r(e,t):new r(e)}catch(r){throw Error("Failed to construct URL: ".concat(String(r)," ").concat(W({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw Error("Invalid URL: '".concat(e,"'"));var n=document,i=n.createElement("a");if(void 0!==t){var o=(n=document.implementation.createHTMLDocument("")).createElement("base");o.href=t,n.head.appendChild(o),n.body.appendChild(i)}return i.href=e,i}(e,location.href).href}var th=URL;function tp(e,t,r){var n=function(e,t){var r="/api/v2/".concat(t),n=e.proxy;if("string"==typeof n){var i=td(n);return function(e){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(r,"?").concat(e)))}}if("function"==typeof n)return function(e){return n({path:r,parameters:e})};var o=function(e,t){var r=t.site,n=void 0===r?eA:r,i=t.internalAnalyticsSubdomain;if("logs"===e&&t.usePciIntake&&n===eA)return ej;if(i&&n===eA)return"".concat(i,".").concat(eA);if("dd0g-gov.com"===n)return"http-intake.logs.".concat(n);var o=n.split("."),a=o.pop();return"browser-intake-".concat(o.join("-"),".").concat(a)}(t,e);return function(e){return"https://".concat(o).concat(r,"?").concat(e)}}(e,t);return{build:function(i,a){var s,l,u,c,d,h,p,f;return n((l=e.clientToken,u=e.internalAnalyticsSubdomain,c=a.retry,d=a.flushReason,h=a.encoding,p=["sdk_version:".concat("5.16.0"),"api:".concat(i)].concat(r),d&&(s=o.COLLECT_FLUSH_REASON,eD.has(s))&&p.push("flush_reason:".concat(d)),c&&p.push("retry_count:".concat(c.count),"retry_after:".concat(c.lastFailureStatus)),f=["ddsource=browser","ddtags=".concat(encodeURIComponent(p.join(","))),"dd-api-key=".concat(l),"dd-evp-origin-version=".concat(encodeURIComponent("5.16.0")),"dd-evp-origin=browser","dd-request-id=".concat(e2())],h&&f.push("dd-evp-encoding=".concat(h)),"rum"===t&&f.push("batch_time=".concat(eO())),u&&f.reverse(),f.join("&")))},urlPrefix:n(""),trackType:t}}var tf=/[^a-z0-9_:./-]/;function tm(e,t){var r=200-e.length-1;(t.length>r||tf.test(t))&&x.warn("".concat(e," value doesn't meet tag requirements and will be sanitized"));var n=t.replace(/,/g,"_");return"".concat(e,":").concat(n)}var tg={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function tv(e,t,r,n,i){return r?eS({name:e,message:t,stack:[{func:"?",url:r,line:null!=n?n:void 0,column:null!=i?i:void 0}]}):void 0}function ty(e,t,r){var n;if(void 0===e)return[];if(!("all"===e||Array.isArray(e)&&e.every(function(e){return T(t,e)}))){x.error("".concat(r,' should be "all" or an array with allowed values "').concat(t.join('", "'),'"'));return}return"all"===e?t:(n=new Set,e.forEach(function(e){return n.add(e)}),P(n))}var tb="logs",tw={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function tk(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||e6("datadog-synthetics-injects-rum"))}var tx=1/0,t_=function(){function e(e,t){var r=this;this.expireDelay=e,this.maxEntries=t,this.entries=[],this.clearOldValuesInterval=q(function(){return r.clearOldValues()},6e4)}return e.prototype.add=function(e,t){var r=this,n={value:e,startTime:t,endTime:tx,remove:function(){eQ(r.entries,n)},close:function(e){n.endTime=e}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(n),n},e.prototype.find=function(e){void 0===e&&(e=tx);for(var t=0,r=this.entries;t0&&this.entries[this.entries.length-1].endTimet.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}var tF=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var r=this.callbacks[e];r&&r.forEach(function(e){return e(t)})},e.prototype.subscribe=function(e,t){var r=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){r.callbacks[e]=r.callbacks[e].filter(function(e){return t!==e})}}},e}(),tI=((v={})[eG.debug]=0,v[eG.info]=1,v[eG.warn]=2,v[eG.error]=3,v);function tL(e,t,r){var n=r.getHandler(),i=Array.isArray(n)?n:[n];return tI[e]>=tI[r.getLevel()]&&T(i,t)}var tB=function(){function e(e,t,r,n){var i=this;this.encoder=e,this.request=t,this.flushController=r,this.messageBytesLimit=n,this.upsertBuffer={},this.flushSubscription=this.flushController.flushObservable.subscribe(function(e){return i.flush(e)})}return e.prototype.add=function(e){this.addOrUpdate(e)},e.prototype.upsert=function(e,t){this.addOrUpdate(e,t)},e.prototype.stop=function(){this.flushSubscription.unsubscribe()},e.prototype.flush=function(e){var t,r=R(this.upsertBuffer).join("\n");this.upsertBuffer={};var n=(t=e.reason,T(R(tw),t)),i=n?this.request.sendOnExit:this.request.send;if(n&&this.encoder.isAsync){var o=this.encoder.finishSync();o.outputBytesCount&&i(tz(o,e));var a=[o.pendingData,r].filter(Boolean).join("\n");a&&i({data:a,bytesCount:L(a),flushReason:e.reason})}else r&&this.encoder.write(this.encoder.isEmpty?r:"\n".concat(r)),this.encoder.finish(function(t){i(tz(t,e))})},e.prototype.addOrUpdate=function(e,t){var r=W(e),n=this.encoder.estimateEncodedBytesCount(r);if(n>=this.messageBytesLimit){x.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB."));return}this.hasMessageFor(t)&&this.remove(t),this.push(r,n,t)},e.prototype.push=function(e,t,r){var n=this;this.flushController.notifyBeforeAddMessage(t),void 0!==r?(this.upsertBuffer[r]=e,this.flushController.notifyAfterAddMessage()):this.encoder.write(this.encoder.isEmpty?e:"\n".concat(e),function(e){n.flushController.notifyAfterAddMessage(e-t)})},e.prototype.remove=function(e){var t=this.upsertBuffer[e];delete this.upsertBuffer[e];var r=this.encoder.estimateEncodedBytesCount(t);this.flushController.notifyAfterRemoveMessage(r)},e.prototype.hasMessageFor=function(e){return void 0!==e&&void 0!==this.upsertBuffer[e]},e}();function tz(e,t){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding,flushReason:t.reason}}function tU(e,t,r,n,i){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?tq(e,t,r,{onSuccess:function(){return tH(0,t,r,n,i)},onFailure:function(){t.queuedPayloads.enqueue(e),function e(t,r,n,i){2===t.transportStatus&&z(function(){tq(t.queuedPayloads.first(),t,r,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,tH(1,t,r,n,i)},onFailure:function(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),e(t,r,n,i)}})},t.currentBackoffTime)}(t,r,n,i)}}):t.queuedPayloads.enqueue(e)}function tq(e,t,r,n){var i=n.onSuccess,o=n.onFailure;t.bandwidthMonitor.add(e),r(e,function(r){t.bandwidthMonitor.remove(e),"opaque"!==r.type&&(0===r.status&&!navigator.onLine||408===r.status||429===r.status||r.status>=500)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:r.status},o()):(t.transportStatus=0,i())})}function tH(e,t,r,n,i){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:"Reached max ".concat(n," events size queued for upload: ").concat(3,"MiB"),source:eW.AGENT,startClocks:eP()}),t.queueFullReported=!0);var o=t.queuedPayloads;for(t.queuedPayloads=tV();o.size()>0;)tU(o.dequeue(),t,r,n,i)}function tV(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=3145728}}}var t$=!1;function tW(e,t,r,n){var i=new XMLHttpRequest;i.open("POST",t,!0),r instanceof Blob&&i.setRequestHeader("Content-Type",r.type),es(e,i,["loadend"],function(){null==n||n({status:i.status})},{once:!0}),i.send(r)}function tY(e,t,r,n,i,o){var a=l(e,t),s=r&&l(e,r);function l(e,t){var r,a,s,l=t.endpoint;return new tB(t.encoder,(r=e.batchBytesLimit,a={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:tV(),queueFullReported:!1},s=function(t,n){(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}})()&&t.bytesCount=n&&h("bytes_limit"),d+=1,c+=e,void 0===t&&(t=z(function(){h("duration_limit")},i))},notifyAfterAddMessage:function(e){void 0===e&&(e=0),c+=e,d>=r?h("messages_limit"):c>=n&&h("bytes_limit")},notifyAfterRemoveMessage:function(e){c-=e,0==(d-=1)&&p()}}}({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:i,sessionExpireObservable:o}),e.messageBytesLimit)}return{flushObservable:a.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),a.add(e),s&&t&&s.add(r.transformMessage?r.transformMessage(e):e)},upsert:function(e,t){a.upsert(e,t),s&&s.upsert(r.transformMessage?r.transformMessage(e):e,t)},stop:function(){a.stop(),null==s||s.stop()}}}function tG(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(r,n){var i=L(r);t+=i,e+=r,n&&n(i)},finish:function(e){e(this.finishSync())},finishSync:function(){var r={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,r},estimateEncodedBytesCount:function(e){return e.length}}}var tK=function(e){var t,r,n,i=function(e){void 0===e&&(e=2);var t=new Map,r=!1;function n(n){if(void 0===n&&(n=0),!r&&0!==e){var i=2===e?3072:16384,o=n;t.forEach(function(e){o+=e.getBytesCount()}),o>i&&(x.warn("Customer data exceeds the recommended ".concat(i/1024,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-threshold-warning")),r=!0)}}return{createDetachedTracker:function(){var e=X(function(){return n(e.getBytesCount())});return e},getOrCreateTracker:function(e){return t.has(e)||t.set(e,X(n)),t.get(e)},setCompressionStatus:function(t){0===e&&(e=t,n())},getCompressionStatus:function(){return e},stop:function(){t.forEach(function(e){return e.stop()}),t.clear()}}}(),a=eo(i.getOrCreateTracker(2)),s=eo(i.getOrCreateTracker(1)),l={tryToInit:function(e){t||(t=e)},update:function(e){t=e,r.notify()},isGranted:function(){return t===ea.GRANTED},observable:r=new en};function u(){return{view:{referrer:document.referrer,url:window.location.href},context:a.getContext(),user:s.getContext()}}var d=function(e,t,r){var n,i,a=new eZ,s=t.observable.subscribe(l);function l(){if(i&&n&&t.isGranted()){s.unsubscribe();var e=r(n,i);a.drain(e)}}return{init:function(e){if(!e){x.error("Missing configuration");return}if(e1()&&(e=N({},e,{clientToken:"empty"})),n=e,i){e$("DD_LOGS",e);return}var r=function(e){!0===e.usePciIntake&&e.site&&"datadoghq.com"!==e.site&&x.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");var t=function(e){var t,r,n,i,a,s,l,u,d,h,p,f,m,g,v,y;if(!e||!e.clientToken){x.error("Client Token is not configured, we will not send any data.");return}if(void 0!==e.sessionSampleRate&&!eF(e.sessionSampleRate)){x.error("Session Sample Rate should be a number between 0 and 100");return}if(void 0!==e.telemetrySampleRate&&!eF(e.telemetrySampleRate)){x.error("Telemetry Sample Rate should be a number between 0 and 100");return}if(void 0!==e.telemetryConfigurationSampleRate&&!eF(e.telemetryConfigurationSampleRate)){x.error("Telemetry Configuration Sample Rate should be a number between 0 and 100");return}if(void 0!==e.telemetryUsageSampleRate&&!eF(e.telemetryUsageSampleRate)){x.error("Telemetry Usage Sample Rate should be a number between 0 and 100");return}if(void 0!==e.trackingConsent&&!G(ea,e.trackingConsent)){x.error('Tracking Consent should be either "granted" or "not-granted"');return}return Array.isArray(e.enableExperimentalFeatures)&&function(e){e.forEach(function(e){eD.add(e)})}(e.enableExperimentalFeatures.filter(function(e){return G(o,e)})),N({beforeSend:e.beforeSend&&_(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:((v=!function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(e2()),r="test";e5(t,r,6e4,e);var n=e4(t)===r;return e8(t,e),n}catch(e){return x.error(e),!1}}(((g={}).secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,g.crossSite=!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,g.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(g.domain=function(){if(void 0===c){for(var e="dd_site_test_".concat(e2()),t=window.location.hostname.split("."),r=t.pop();t.length&&!e4(e);)e5(e,"test",1e3,{domain:r="".concat(t.pop(),".").concat(r)});e8(e,{domain:r}),c=r}return c}()),g))?void 0:{type:"Cookie",cookieOptions:g})||!e.allowFallbackToLocalStorage||(v=function(){try{var e=e2(),t="".concat("_dd_test_").concat(e);localStorage.setItem(t,e);var r=localStorage.getItem(t);return localStorage.removeItem(t),e===r?{type:"LocalStorage"}:void 0}catch(e){return}}()),v),sessionSampleRate:null!==(t=e.sessionSampleRate)&&void 0!==t?t:100,telemetrySampleRate:null!==(r=e.telemetrySampleRate)&&void 0!==r?r:20,telemetryConfigurationSampleRate:null!==(n=e.telemetryConfigurationSampleRate)&&void 0!==n?n:5,telemetryUsageSampleRate:null!==(i=e.telemetryUsageSampleRate)&&void 0!==i?i:5,service:e.service,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!==(a=e.trackingConsent)&&void 0!==a?a:ea.GRANTED,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},(s=e.site||eA,l=e.env,u=e.service,d=e.version,h=e.datacenter,p=[],l&&p.push(tm("env",l)),u&&p.push(tm("service",u)),d&&p.push(tm("version",d)),h&&p.push(tm("datacenter",h)),y=R(f={logsEndpointBuilder:tp(e,"logs",p),rumEndpointBuilder:tp(e,"rum",p),sessionReplayEndpointBuilder:tp(e,"replay",p)}).map(function(e){return e.urlPrefix}),s===eA&&y.push("https://".concat(ej,"/")),N({isIntakeUrl:function(e){return m.some(function(t){return 0===e.indexOf(t)})},replica:function(e,t,r){if(e.replica){var n=N({},e,{site:eA,clientToken:e.replica.clientToken}),i={logsEndpointBuilder:tp(n,"logs",r),rumEndpointBuilder:tp(n,"rum",r)};return t.push.apply(t,R(i).map(function(e){return e.urlPrefix})),N({applicationId:e.replica.applicationId},i)}}(e,m=y,p),site:s},f)))}(e),r=ty(e.forwardConsoleLogs,R(y),"Forward Console Logs"),n=ty(e.forwardReports,R(tg),"Forward Reports");if(t&&r&&n)return e.forwardErrorsToLogs&&!T(r,y.error)&&r.push(y.error),N({forwardErrorsToLogs:!1!==e.forwardErrorsToLogs,forwardConsoleLogs:r,forwardReports:n,requestErrorResponseLengthLimit:32768},t)}(e);r&&(i=r,t.tryToInit(r.trackingConsent),l())},get initConfiguration(){return n},getInternalContext:$,handleLog:function(t,r,n,i){void 0===n&&(n=e()),void 0===i&&(i=eO()),a.add(function(e){return e.handleLog(t,r,n,i)})}}}(u,l,function(t,r){t.storeContextsAcrossPages&&(eu(r,a,tb,2),eu(r,s,tb,1));var n=e(t,r,u,l);return d=N({init:function(e){e$("DD_LOGS",e)},initConfiguration:t},n),n}),h={};return Object.defineProperty(n=N({version:"5.16.0",onReady:function(e){e()}},{logger:new eJ(function(){for(var e=[],t=0;t=500)&&("xhr"in n?d("string"==typeof(i=n.xhr).response?tN(i.response,e):i.response):n.response?(o=n.response,a=d,(s=function(e){try{return e.clone()}catch(e){return}}(o))&&s.body?window.TextDecoder?(l=s.body,u=e.requestErrorResponseLengthLimit,c=function(e,t){e?a("Unable to retrieve response: ".concat(e)):a(t)},function(e,t,r){var n=e.getReader(),i=[],o=0;function a(){if(n.cancel().catch($),r.collectStreamBody){if(1===i.length)s=i[0];else{s=new Uint8Array(o);var e,a,s,l=0;i.forEach(function(e){s.set(e,l),l+=e.length})}e=s.slice(0,r.bytesLimit),a=s.length>r.bytesLimit}t(void 0,e,a)}(function e(){n.read().then(A(function(t){if(t.done){a();return}r.collectStreamBody&&i.push(t.value),(o+=t.value.length)>r.bytesLimit?a():e()}),A(function(e){return t(e)}))})()}(l,function(e,t,r){if(e)c(e);else{var n=new TextDecoder().decode(t);r&&(n+="..."),c(void 0,n)}},{bytesLimit:u,collectStreamBody:!0})):s.text().then(A(function(t){return a(tN(t,e))}),A(function(e){return a("Unable to retrieve response: ".concat(e))})):a()):n.error&&d(tN(eS(ec(n.error)),e)))}e.forwardErrorsToLogs&&((m||(m=new en(function(t){var r=tT(XMLHttpRequest.prototype,"open",tR).stop,n=tT(XMLHttpRequest.prototype,"send",function(r){(function(e,t,r){var n=e.target,i=tP.get(n);if(i){i.state="start",i.startClocks=eP(),i.isAborted=!1,i.xhr=n;var o=!1,a=tT(n,"onreadystatechange",function(){n.readyState===XMLHttpRequest.DONE&&s()}).stop,s=function(){var e;l(),a(),o||(o=!0,i.state="complete",i.duration=(e=i.startClocks.timeStamp,eO()-e),i.status=n.status,r.notify(N({},i)))},l=es(t,n,["loadend"],s,void 0).stop;r.notify(i)}})(r,e,t)}).stop,i=tT(XMLHttpRequest.prototype,"abort",tM).stop;return function(){r(),n(),i()}})),m).subscribe(function(e){"complete"===e.state&&r("xhr",e)}),(g||(g=new en(function(e){if(window.fetch)return tT(window,"fetch",function(t){var r,n,i,o,a,s,l,u;return r=t.parameters,n=t.onPostCall,i=r[0],void 0===(a=(o=r[1])&&o.method)&&i instanceof Request&&(a=i.method),s=void 0!==a?String(a).toUpperCase():"GET",l=i instanceof Request?i.url:td(String(i)),u={state:"start",init:o,input:i,method:s,startClocks:eP(),url:l},void(e.notify(u),r[0]=u.input,r[1]=u.init,n(function(t){return function(e,t,r){var n=function(t){r.state="resolve","stack"in t||t instanceof Error?(r.status=0,r.isAborted=t instanceof DOMException&&t.code===DOMException.ABORT_ERR,r.error=t):"status"in t&&(r.response=t,r.responseType=t.type,r.status=t.status,r.isAborted=!1),e.notify(r)};t.then(A(n),A(n))}(e,t,u)}))}).stop})),g).subscribe(function(e){"resolve"===e.state&&r("fetch",e)}))}(t,u),function(e,t){if(e.forwardErrorsToLogs){var r,n,i,o,a=new en;(i=(r=n=function(e,t){var r=ex({stackTrace:e,originalError:t,startClocks:eP(),nonErrorPrefix:"Uncaught",source:eW.SOURCE,handling:"unhandled"});a.notify(r)},tT(window,"onerror",function(e){var t,n,i,o,a,s=e.parameters,l=s[0],u=s[1],c=s[2],d=s[3],h=s[4];r(a=h instanceof Error?ec(h):{name:("[object String]"===({}).toString.call(l)&&(n=(t=ew.exec(l))[1],i=t[2]),o={name:n,message:i}).name,message:o.message,stack:[{url:u,column:d,line:c}]},null!=h?h:l)})).stop,o=tT(window,"onunhandledrejection",function(e){var t=e.parameters[0].reason||"Empty reason";n(ec(t),t)}).stop,{stop:function(){i(),o()}}).stop,a.subscribe(function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:{kind:e.type,stack:e.stack,causes:e.causes},origin:eW.SOURCE,status:eG.error}})})}}(t,u),function(e,t){var r;(r=e.forwardConsoleLogs.map(function(e){return tA[e]||(tA[e]=new en(function(t){var r=b[e];return b[e]=function(){for(var n=[],i=0;i=55296&&i<=56319?101:100,n.length<=o?n:"".concat(n.slice(0,o)).concat("...")),'"'):"no policy",r.sourceFile,r.lineNumber,r.columnNumber),originalReport:r}))},void 0).stop})),(S=x.filter(function(e){return e!==tg.cspViolation})).length&&_.push(new en(function(e){if(window.ReportingObserver){var t=A(function(t,r){return t.forEach(function(t){var r,n;e.notify({type:r=t.type,subtype:(n=t.body).id,message:"".concat(r,": ").concat(n.message),originalReport:t,stack:tv(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})})}),r=new window.ReportingObserver(t,{types:S,buffered:!0});return r.observe(),function(){r.disconnect()}}})),ei.apply(void 0,_)).subscribe(function(e){var t,r,n,i=e.message,o=tO[e.type];o===eG.error?n={kind:e.subtype,stack:e.stack}:e.stack&&(i+=" Found in ".concat((t=e.stack,null===(r=/@ (.+)/.exec(t))||void 0===r?void 0:r[1]))),u.notify(0,{rawLogsEvent:{date:eO(),message:i,origin:eW.REPORT,error:n,status:o}})}),E=eX.concat(["custom"]),C={},E.forEach(function(e){var r,n,i;C[e]=(r=t.eventRateLimiterThreshold,n=0,i=!1,{isLimitReached:function(){if(0===n&&z(function(){n=0},6e4),(n+=1)<=r||i)return i=!1,!1;if(n===r+1){i=!0;try{d({message:"Reached max number of ".concat(e,"s by minute: ").concat(r),source:eW.AGENT,startClocks:eP()})}finally{i=!1}}return!0}})}),u.subscribe(0,function(e){var n,i,o=e.rawLogsEvent,a=e.messageContext,s=e.savedCommonContext,l=e.domainContext,c=o.date-eR(),d=p.findTrackedSession(c);if(d){var h=(void 0===s?void 0:s)||r(),f=Z({service:t.service,session_id:d.id,usr:K(h.user)?void 0:h.user,view:h.view},h.context,tD(c),o,void 0===a?void 0:a);(null===(n=t.beforeSend)||void 0===n?void 0:n.call(t,f,l))===!1||f.origin!==eW.AGENT&&(null!==(i=C[f.status])&&void 0!==i?i:C.custom).isLimitReached()||u.notify(1,f)}}),e1())!function(e){var t=e0();e.subscribe(1,function(e){t.send("log",e)})}(u);else{var v,k,x,_,S,E,C,D,O=(D=tY(t,{endpoint:t.logsEndpointBuilder,encoder:tG()},t.replica&&{endpoint:t.replica.logsEndpointBuilder,encoder:tG()},d,h,p.expireObservable),u.subscribe(1,function(e){D.add(e)}),D).stop;c.push(function(){return O()})}return{handleLog:function(e,t,r,n){var i=Z(t.getContext(),e.context);tL(e.status,eK.console,t)&&function(e,t){w[e.status].call(b,e.message,t)}(e,i),tL(e.status,eK.http,t)&&u.notify(0,{rawLogsEvent:{date:n||eO(),message:e.message,status:e.status,origin:eW.LOGGER},messageContext:i,savedCommonContext:r})},getInternalContext:function(e){var t=p.findTrackedSession(e);if(t)return{session_id:t.id}},stop:function(){c.forEach(function(e){return e()})}}});!function(e,t,r){var n=e[t];e[t]=r,n&&n.q&&n.q.forEach(function(e){return _(e,"onReady callback threw an error:")()})}(F(),"DD_LOGS",tK)},72194:()=>{"use strict";var e,t,r,n,i,o,a,s,l,u,c,d,h,p,f,m,g,v,y,b,w,k,x,_={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},S=console,E={};Object.keys(_).forEach(function(e){E[e]=S[e]});var C="Datadog Browser SDK:",D={debug:E.debug.bind(S,C),log:E.log.bind(S,C),info:E.info.bind(S,C),warn:E.warn.bind(S,C),error:E.error.bind(S,C)},A="https://docs.datadoghq.com",j="".concat(A,"/real_user_monitoring/browser/troubleshooting"),O="More details:";function T(e,t){return function(){for(var r=[],n=0;n"}finally{n(),i(),o(),a()}}function er(e){var t=e.toJSON;return t?(delete e.toJSON,function(){e.toJSON=t}):ee}function en(e){return V({},e)}function ei(e,t){return Object.keys(e).some(function(r){return e[r]===t})}function eo(e){return 0===Object.keys(e).length}function ea(e){var t=0,r=Z(function(r){t=Y(et(r)),e()},200),n=r.throttled,i=r.cancel,o=function(){i(),t=0};return{updateCustomerData:function(e){eo(e)?o():n(e)},resetCustomerData:o,getBytesCount:function(){return t},stop:function(){i()}}}function es(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function el(e,t,r){if(void 0===r&&(r=function(){if("undefined"!=typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var r=e.has(t);return r||e.add(t),r}}}var t=[];return{hasAlreadyBeenSeen:function(e){var r=t.indexOf(e)>=0;return r||t.push(e),r}}}()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var n=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,n)}if(!r.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var i=Array.isArray(e)?e:[],o=0;ot){ep(t,"discarded",e);return}for(;i.length>0&&lt){ep(t,"truncated",e);break}u.target[d]=h}else for(var d in u.source)if(Object.prototype.hasOwnProperty.call(u.source,d)){var h=eh(u.source[d],u.path,d,i,o);if(void 0!==h&&(l+=JSON.stringify(h).length+c+d.length+3,c=1),l>t){ep(t,"truncated",e);break}u.target[d]=h}}return r(),n(),a}function eh(e,t,r,n,i){var o=function(e){if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(e){}return e}(e);if(!o||"object"!=typeof o)return"bigint"==typeof o?"[BigInt] ".concat(o.toString()):"function"==typeof o?"[Function] ".concat(o.name||"unknown"):"symbol"==typeof o?"[Symbol] ".concat(o.description||o.toString()):o;var a=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(e){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;if(i.has(e))return"[Reference seen at ".concat(i.get(e),"]");var s=void 0!==r?"".concat(t,".").concat(r):t,l=Array.isArray(o)?[]:{};return i.set(e,s),n.push({source:o,target:l,path:s}),l}function ep(e,t,r){D.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),r)}var ef=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:function(){t.observers=t.observers.filter(function(t){return e!==t}),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach(function(t){return t(e)})},e}();function em(){for(var e=[],t=0;t eval")>-1,n=eT.exec(t[3]);return r&&n&&(t[3]=n[1],t[4]=n[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}}(e);r&&(!r.func&&r.line&&(r.func="?"),t.push(r))}),{message:eP(e,"message"),name:eP(e,"name"),stack:t}}var eS="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",eE="(?::(\\d+))",eC=RegExp("^\\s*at (.*?) ?\\(".concat(eS).concat(eE,"?").concat(eE,"?\\)?\\s*$"),"i"),eD=new RegExp("\\((\\S*)".concat(eE).concat(eE,"\\)")),eA=RegExp("^\\s*at ?".concat(eS).concat(eE,"?").concat(eE,"??\\s*$"),"i"),ej=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,eO=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,eT=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function eP(e,t){if("object"==typeof e&&e&&t in e){var r=e[t];return"string"==typeof r?r:void 0}}var eR=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function eM(){var e,t=Error();if(!t.stack)try{throw t}catch(e){}return F(function(){var r=e_(t);r.stack=r.stack.slice(2),e=eN(r)}),e}function eN(e){var t=eF(e);return e.stack.forEach(function(e){var r="?"===e.func?"":e.func,n=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",i=e.line?":".concat(e.line):"",o=e.line&&e.column?":".concat(e.column):"";t+="\n at ".concat(r).concat(n," @ ").concat(e.url).concat(i).concat(o)}),t}function eF(e){return"".concat(e.name||"Error",": ").concat(e.message)}var eI="No stack, consider using an instance of Error";function eL(e){var t=e.stackTrace,r=e.originalError,n=e.handlingStack,i=e.startClocks,o=e.nonErrorPrefix,a=e.source,s=e.handling,l=r instanceof Error,u=(null==t?void 0:t.message)&&(null==t?void 0:t.name)?t.message:l?"Empty message":"".concat(o," ").concat(et(ed(r))),c=void 0!==t&&(l||t.stack.length>0&&(t.stack.length>1||void 0!==t.stack[0].url))?eN(t):eI,d=l?ez(r,a):void 0,h=t?t.name:void 0,p=eB(r);return{startClocks:i,source:a,handling:s,handlingStack:n,originalError:r,type:h,message:u,stack:c,causes:d,fingerprint:p}}function eB(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function ez(e,t){for(var r=e,n=[];(null==r?void 0:r.cause)instanceof Error&&n.length<10;){var i=e_(r.cause);n.push({message:r.cause.message,source:t,type:null==i?void 0:i.name,stack:i&&eN(i)}),r=r.cause}return n.length?n:void 0}!function(e){e.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",e.REMOTE_CONFIGURATION="remote_configuration",e.UPDATE_VIEW_NAME="update_view_name",e.LONG_ANIMATION_FRAME="long_animation_frame"}(t||(t={}));var eU=new Set;function eq(e){return eU.has(e)}var eH="datad0g.com",eV="datadoghq.com",e$="pci.browser-intake-datadoghq.com";function eW(e){return 0!==e&&100*Math.random()<=e}function eY(e,t){return+e.toFixed(t)}function eG(e){return"number"==typeof e}function eK(e){var t;return{relative:e,timeStamp:(t=eJ()-performance.now())>e2()?Math.round(t+e):Math.round(e2()+e)}}function eX(e){return eG(e)?eY(1e6*e,0):e}function eJ(){return new Date().getTime()}function eQ(){return eJ()}function eZ(){return performance.now()}function e0(){return{relative:eZ(),timeStamp:eQ()}}function e1(){return{relative:0,timeStamp:e2()}}function e2(){return void 0===r&&(r=performance.timing.navigationStart),r}function e3(e,t){var r=window.__ddBrowserSdkExtensionCallback;r&&r({type:e,payload:t})}function e5(){var e,t=window.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:null===(e=t.connection)||void 0===e?void 0:e.effectiveType}}function e4(e,t){var r=e.indexOf(t);r>=0&&e.splice(r,1)}function e6(){var e=[];return{add:function(t){e.push(t)>500&&e.splice(0,1)},remove:function(t){e4(e,t)},drain:function(t){e.forEach(function(e){return e(t)}),e.length=0}}}var e8={log:"log",configuration:"configuration",usage:"usage"},e9=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],e7=["ddog-gov.com"],te=e6(),tt=function(e){te.add(function(){return tt(e)})};function tr(e,t){I(_.debug,e,t),tt(V({type:e8.log,message:e,status:"debug"},t))}function tn(e,t){tt(V({type:e8.log,status:"error"},function(e){if(e instanceof Error){var t=e_(e);return{error:{kind:t.name,stack:eN((t.stack=t.stack.filter(function(e){return!e.url||e9.some(function(t){return H(e.url,t)})}),t))},message:t.message}}return{error:{stack:eI},message:"".concat("Uncaught"," ").concat(et(e))}}(e),t))}function ti(e){tt({type:e8.usage,usage:e})}function to(e){var t=V({},e);return["id","name","email"].forEach(function(e){e in t&&(t[e]=String(t[e]))}),t}function ta(e,t){t.silentMultipleInit||D.error("".concat(e," is already initialized."))}function ts(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,ts)}var tl=/([\w-]+)\s*=\s*([^;]+)/g;function tu(e,t){for(tl.lastIndex=0;;){var r=tl.exec(e);if(r){if(r[1]===t)return r[2]}else break}}function tc(e,t,r){void 0===r&&(r="");var n=e.charCodeAt(t-1),i=n>=55296&&n<=56319?t+1:t;return e.length<=i?e:"".concat(e.slice(0,i)).concat(r)}function td(e,t,r){var n=e.vitalsByName,i=e.vitalsByReference;void 0===r&&(r={});var o={name:t,startClocks:e0(),context:r.context,description:r.description},a={__dd_vital_reference:!0};return n.set(t,o),i.set(a,o),a}function th(e,t,r,n){var i,o,a,s,l,u=t.vitalsByName,c=t.vitalsByReference;void 0===n&&(n={});var d="string"==typeof r?u.get(r):c.get(r);d&&(e((i=d.startClocks,o=n,a=e0(),{name:d.name,type:"duration",startClocks:i,duration:(l=i.timeStamp,a.timeStamp-l),context:ec(d.context,o.context),description:null!==(s=o.description)&&void 0!==s?s:d.description})),"string"==typeof r?u.delete(r):c.delete(r))}function tp(){var e=$().DatadogEventBridge;if(e)return{getCapabilities:function(){var t;return JSON.parse((null===(t=e.getCapabilities)||void 0===t?void 0:t.call(e))||"[]")},getPrivacyLevel:function(){var t;return null===(t=e.getPrivacyLevel)||void 0===t?void 0:t.call(e)},getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,r,n){e.send(JSON.stringify({eventType:t,event:r,view:n?{id:n}:void 0}))}}}function tf(e){var t=tp();return!!t&&L(t.getCapabilities(),e)}function tm(e){void 0===e&&(e=null===(t=$().location)||void 0===t?void 0:t.hostname);var t,r=tp();return!!r&&r.getAllowedWebViewHosts().some(function(t){var r,n;return e===t||(r=e,n=".".concat(t),r.slice(-n.length)===n)})}function tg(e,t,r,n){var i=(void 0===n?{}:n).computeHandlingStack,o=e[t];if("function"!=typeof o){if(!(t in e&&H(t,"on")))return{stop:ee};o=ee}var a=!1,s=function(){if(a)return o.apply(this,arguments);var e,t=B(arguments);F(r,null,[{target:this,parameters:t,onPostCall:function(t){e=t},handlingStack:i?eM():void 0}]);var n=o.apply(this,t);return e&&F(e,null,[n]),n};return e[t]=s,{stop:function(){a=!0,e[t]===s&&(e[t]=o)}}}function tv(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t);if(!n||!n.set||!n.configurable)return{stop:ee};var i=function(e,t){K(function(){i!==ee&&r(e,t)},0)},o=function(e){n.set.call(this,e),i(this,e)};return Object.defineProperty(e,t,{set:o}),{stop:function(){var r;(null===(r=Object.getOwnPropertyDescriptor(e,t))||void 0===r?void 0:r.set)===o&&Object.defineProperty(e,t,n),i=ee}}}function ty(e){return tb(e,location.href).href}function tb(e,t){var r=function(){if(void 0===n)try{var e=new tw("http://test/path");n="http://test/path"===e.href}catch(e){n=!1}return n?tw:void 0}();if(r)try{return void 0!==t?new r(e,t):new r(e)}catch(r){throw Error("Failed to construct URL: ".concat(String(r)," ").concat(et({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw Error("Invalid URL: '".concat(e,"'"));var i=document,o=i.createElement("a");if(void 0!==t){var a=(i=document.implementation.createHTMLDocument("")).createElement("base");a.href=t,i.head.appendChild(a),i.body.appendChild(o)}return o.href=e,o}var tw=URL;function tk(){return i||(i=new ef(function(e){if(window.fetch)return tg(window,"fetch",function(t){var r,n,i,o,a,s,l,u,c;return r=t.parameters,n=t.onPostCall,i=t.handlingStack,o=r[0],void 0===(s=(a=r[1])&&a.method)&&o instanceof Request&&(s=o.method),l=void 0!==s?String(s).toUpperCase():"GET",u=o instanceof Request?o.url:ty(String(o)),c={state:"start",init:a,input:o,method:l,startClocks:e0(),url:u,handlingStack:i},void(e.notify(c),r[0]=c.input,r[1]=c.init,n(function(t){return function(e,t,r){function n(t){r.state="resolve",V(r,t),e.notify(r)}t.then(N(function(e){n({response:e,responseType:e.type,status:e.status,isAborted:!1})}),N(function(e){var t,i;n({status:0,isAborted:(null===(i=null===(t=r.init)||void 0===t?void 0:t.signal)||void 0===i?void 0:i.aborted)||e instanceof DOMException&&e.code===DOMException.ABORT_ERR,error:e})}))}(e,t,c)}))},{computeHandlingStack:!0}).stop})),i}function tx(e,t,r,n){var i=new Date;i.setTime(i.getTime()+r);var o="expires=".concat(i.toUTCString()),a=n&&n.crossSite?"none":"strict",s=n&&n.domain?";domain=".concat(n.domain):"",l=n&&n.secure?";secure":"",u=n&&n.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(l).concat(u)}function t_(e){return tu(document.cookie,e)}function tS(e){return o||(o=function(e){var t=new Map;for(tl.lastIndex=0;;){var r=tl.exec(e);if(r)t.set(r[1],r[2]);else break}return t}(document.cookie)),o.get(e)}function tE(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||tS("datadog-synthetics-injects-rum"))}function tC(){var e,t,r;return null!=s?s:(void 0===e&&(e=window),r=e.navigator.userAgent,s=e.chrome||/HeadlessChrome/.test(r)?1:(null===(t=e.navigator.vendor)||void 0===t?void 0:t.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?2:e.document.documentMode?0:3)}var tD="_dd_s",tA=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function tj(){return{isExpired:"1"}}function tO(e){return void 0!==e.isExpired||!((void 0===e.created||eJ()-Number(e.created)<144e5)&&(void 0===e.expire||eJ()=100){tU(t);return}var d=c();if(o&&(d.lock||(i=ts(),u(d.session),(d=c()).lock!==i))){tz(e,t,r);return}var h=e.process(d.session);if(o&&(d=c()).lock!==i){tz(e,t,r);return}if(h&&(tO(h)?s():(tT(h),o?u(h):a(h))),o&&!(h&&tO(h))){if((d=c()).lock!==i){tz(e,t,r);return}a(d.session),h=d.session}null===(n=e.after)||void 0===n||n.call(e,h||d.session),tU(t)}function tz(e,t,r){K(function(){tB(e,t,r+1)},10)}function tU(e){l=void 0;var t=tL.shift();t&&tB(t,e)}function tq(e,t,r){var n=function(e,t){var r="/api/v2/".concat(t),n=e.proxy;if("string"==typeof n){var i=ty(n);return function(e){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(r,"?").concat(e)))}}if("function"==typeof n)return function(e){return n({path:r,parameters:e})};var o=function(e,t){var r=t.site,n=void 0===r?eV:r,i=t.internalAnalyticsSubdomain;if("logs"===e&&t.usePciIntake&&n===eV)return e$;if(i&&n===eV)return"".concat(i,".").concat(eV);if("dd0g-gov.com"===n)return"http-intake.logs.".concat(n);var o=n.split("."),a=o.pop();return"browser-intake-".concat(o.join("-"),".").concat(a)}(t,e);return function(e){return"https://".concat(o).concat(r,"?").concat(e)}}(e,t);return{build:function(i,o){var a,s,l,u,c,d;return n((a=e.clientToken,s=e.internalAnalyticsSubdomain,l=o.retry,u=o.encoding,c=["sdk_version:".concat("5.28.0"),"api:".concat(i)].concat(r),l&&c.push("retry_count:".concat(l.count),"retry_after:".concat(l.lastFailureStatus)),d=["ddsource=browser","ddtags=".concat(encodeURIComponent(c.join(","))),"dd-api-key=".concat(a),"dd-evp-origin-version=".concat(encodeURIComponent("5.28.0")),"dd-evp-origin=browser","dd-request-id=".concat(ts())],u&&d.push("dd-evp-encoding=".concat(u)),"rum"===t&&d.push("batch_time=".concat(eQ())),s&&d.reverse(),d.join("&")))},urlPrefix:n(""),trackType:t}}function tH(e,t){var r=200-e.length-1;(t.length>r||function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(t))&&D.warn("".concat(e," value doesn't meet tag requirements and will be sanitized. ").concat(O," ").concat(A,"/getting_started/tagging/#defining-tags"));var n=t.replace(/,/g,"_");return"".concat(e,":").concat(n)}var tV={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"},t$={ALL:"all",SAMPLED:"sampled"};function tW(e,t){return null==e||"string"==typeof e||(D.error("".concat(t," must be defined as a string")),!1)}function tY(e,t){return!!(void 0===e||eG(e)&&e>=0&&e<=100)||(D.error("".concat(t," Sample Rate should be a number between 0 and 100")),!1)}function tG(e){var t=es(e);return"string"===t||"function"===t||e instanceof RegExp}function tK(e,t,r){return void 0===r&&(r=!1),e.some(function(e){try{if("function"==typeof e)return e(t);if(e instanceof RegExp)return e.test(t);if("string"==typeof e)return r?H(t,e):e===t}catch(e){D.error(e)}return!1})}function tX(e){0!==e.status||e.isAborted||(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function tJ(e,t,r,n){if(void 0!==tQ()&&r.findTrackedSession()){var i,o,a,s,l,u=z(e.allowedTracingUrls,function(e){return tK([e.match],t.url,!0)});u&&(t.traceSampled=!eG(e.traceSampleRate)||eW(e.traceSampleRate),(t.traceSampled||e.traceContextInjection===t$.ALL)&&(t.traceId=tZ(),t.spanId=tZ(),n((i=t.traceId,o=t.spanId,a=t.traceSampled,s=u.propagatorTypes,l={},s.forEach(function(e){switch(e){case"datadog":V(l,{"x-datadog-origin":"rum","x-datadog-parent-id":o.toDecimalString(),"x-datadog-sampling-priority":a?"1":"0","x-datadog-trace-id":i.toDecimalString()});break;case"tracecontext":V(l,{traceparent:"00-0000000000000000".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-0").concat(a?"1":"0")});break;case"b3":V(l,{b3:"".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-").concat(a?"1":"0")});break;case"b3multi":V(l,{"X-B3-TraceId":i.toPaddedHexadecimalString(),"X-B3-SpanId":o.toPaddedHexadecimalString(),"X-B3-Sampled":a?"1":"0"})}}),l))))}}function tQ(){return window.crypto||window.msCrypto}function tZ(){var e=new Uint8Array(8);function t(t){return 0x1000000*e[t]+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]}function r(e){var r=t(0),n=t(4),i="";do{var o=r%e*0x100000000+n;r=Math.floor(r/e),n=Math.floor(o/e),i=(o%e).toString(e)+i}while(r||n);return i}return tQ().getRandomValues(e),e[0]=127&e[0],{toDecimalString:function(){return r(10)},toPaddedHexadecimalString:function(){var e=r(16);return Array(17-e.length).join("0")+e}}}var t0=["tracecontext","datadog"];function t1(){D.error("Error fetching the remote configuration.")}var t2={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function t3(){var e,t=window;if(t.Zone&&(e=G(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){var r=G(new t.MutationObserver(ee),"originalInstance");e=r&&r.constructor}return e||(e=t.MutationObserver),e}var t5={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",SOURCE:"source",REPORT:"report"};function t4(e,t,r){var n=0,i=!1;return{isLimitReached:function(){if(0===n&&K(function(){n=0},6e4),(n+=1)<=t||i)return i=!1,!1;if(n===t+1){i=!0;try{r({message:"Reached max number of ".concat(e,"s by minute: ").concat(t),source:t5.AGENT,startClocks:e0()})}finally{i=!1}}return!0}}}function t6(e,t,r){for(var n=e,i=t.split("."),o=0;o0&&n[n.length-1].endTime=r&&n.pop(),n.unshift(i),i},find:function(e,t){void 0===e&&(e=rr),void 0===t&&(t={returnInactive:!1});for(var r=0,i=n;re[r])return!1;return!0}function rc(e){return e.duration>=0}function rd(e){var t=ru(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),r=!(e.redirectEnd>e.startTime)||ru(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart);return t&&r}function rh(e,t,r){if(e<=t&&t<=r)return{duration:eX(r-t),start:eX(t-e)}}function rp(e,t){return t&&!e.isIntakeUrl(t)}var rf=/data:(.+)?(;base64)?,/g;function rm(e){if(e.length<=24e3);else if("data:"===e.substring(0,5))return e=e.substring(0,24e3),!0;return!1}function rg(e){return"".concat(e.match(rf)[0],"[...]")}var rv=1;function ry(){var e=rv;return rv+=1,e}function rb(e){return eG(e)&&e<0?void 0:e}function rw(e){var t=e.lifeCycle,r=e.isChildEvent,n=e.onChange,i=void 0===n?ee:n,o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=t.subscribe(12,function(e){var t;if("view"!==e.type&&"vital"!==e.type&&r(e))switch(e.type){case"error":o.errorCount+=1,i();break;case"action":o.actionCount+=1,e.action.frustration&&(o.frustrationCount+=e.action.frustration.type.length),i();break;case"long_task":o.longTaskCount+=1,i();break;case"resource":(null===(t=e._dd)||void 0===t?void 0:t.discarded)||(o.resourceCount+=1,i())}});return{stop:function(){a.unsubscribe()},eventCounts:o}}function rk(e,t){return new ef(function(r){if(window.PerformanceObserver){var n,i,o=function(t){var n=t.filter(function(t){return t.entryType!==d.RESOURCE||!!rp(e,t.name)&&!!rc(t)});n.length>0&&r.notify(n)},a=!0,s=new PerformanceObserver(N(function(e){a?n=K(function(){return o(e.getEntries())}):o(e.getEntries())}));try{s.observe(t)}catch(e){if(L([d.RESOURCE,d.NAVIGATION,d.LONG_TASK,d.PAINT],t.type)){t.buffered&&(n=K(function(){return o(performance.getEntriesByType(t.type))}));try{s.observe({entryTypes:[t.type]})}catch(e){return}}}return a=!1,!h&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(h=ey(e,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()})),rx(d.FIRST_INPUT)||t.type!==d.FIRST_INPUT||(i=function(e,t){var r=eJ(),n=!1,i=eb(e,window,["click","mousedown","keydown","touchstart","pointerdown"],function(t){if(t.cancelable){var r={entryType:"first-input",processingStart:eZ(),processingEnd:eZ(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:function(){return{}}};"pointerdown"===t.type?eb(e,window,["pointerup","pointercancel"],function(e){"pointerup"===e.type&&o(r)},{once:!0}):o(r)}},{passive:!0,capture:!0}).stop;return{stop:i};function o(e){if(!n){n=!0,i();var o=e.processingStart-e.startTime;o>=0&&o0})}})}function rE(e,t){return tK(e.excludedActivityUrls,t)}function rC(e){return window.CSS&&window.CSS.escape?window.CSS.escape(e):e.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(e,t){return t?"\0"===e?"�":"".concat(e.slice(0,-1),"\\").concat(e.charCodeAt(e.length-1).toString(16)," "):"\\".concat(e)})}function rD(e,t){return e.matches?e.matches(t):!!e.msMatchesSelector&&e.msMatchesSelector(t)}function rA(e){if(e.parentElement)return e.parentElement;for(;e.parentNode;){if(e.parentNode.nodeType===Node.ELEMENT_NODE)return e.parentNode;e=e.parentNode}return null}!function(e){e.EVENT="event",e.FIRST_INPUT="first-input",e.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",e.LAYOUT_SHIFT="layout-shift",e.LONG_TASK="longtask",e.LONG_ANIMATION_FRAME="long-animation-frame",e.NAVIGATION="navigation",e.PAINT="paint",e.RESOURCE="resource"}(d||(d={}));var rj=function(){function e(e){var t=this;this.map=new WeakMap,e&&e.forEach(function(e){return t.map.set(e,1)})}return e.prototype.add=function(e){return this.map.set(e,1),this},e.prototype.delete=function(e){return this.map.delete(e)},e.prototype.has=function(e){return this.map.has(e)},e}();function rO(e){return e.nodeType===Node.TEXT_NODE}function rT(e){return e.nodeType===Node.ELEMENT_NODE}function rP(e){return rT(e)&&!!e.shadowRoot}function rR(e){return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&rT(e.host)}function rM(e,t){for(var r=e.firstChild;r;)t(r),r=r.nextSibling;rP(e)&&t(e.shadowRoot)}function rN(e){return rR(e)?e.host:e.parentNode}var rF={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:tV.ALLOW,MASK:tV.MASK,MASK_USER_INPUT:tV.MASK_USER_INPUT},rI="data-dd-privacy",rL="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",rB={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function rz(e,t,r){if(r&&r.has(e))return r.get(e);var n=rN(e),i=n?rz(n,t,r):t,o=rU(rq(e),i);return r&&r.set(e,o),o}function rU(e,t){switch(t){case rF.HIDDEN:case rF.IGNORE:return t}switch(e){case rF.ALLOW:case rF.MASK:case rF.MASK_USER_INPUT:case rF.HIDDEN:case rF.IGNORE:return e;default:return t}}function rq(e){if(rT(e)){if("BASE"===e.tagName)return rF.ALLOW;if("INPUT"===e.tagName){if("password"===e.type||"email"===e.type||"tel"===e.type||"hidden"===e.type)return rF.MASK;var t=e.getAttribute("autocomplete");if(t&&0===t.indexOf("cc-"))return rF.MASK}return rD(e,rW(rF.HIDDEN))?rF.HIDDEN:rD(e,rW(rF.MASK))?rF.MASK:rD(e,rW(rF.MASK_USER_INPUT))?rF.MASK_USER_INPUT:rD(e,rW(rF.ALLOW))?rF.ALLOW:!function(e){if("SCRIPT"===e.nodeName)return!0;if("LINK"===e.nodeName){var t=i("rel");return/preload|prefetch/i.test(t)&&"script"===i("as")||"shortcut icon"===t||"icon"===t}if("META"===e.nodeName){var r=i("name"),t=i("rel"),n=i("property");return/^msapplication-tile(image|color)$/.test(r)||"application-name"===r||"icon"===t||"apple-touch-icon"===t||"shortcut icon"===t||"keywords"===r||"description"===r||/^(og|twitter|fb):/.test(n)||/^(og|twitter):/.test(r)||"pinterest"===r||"robots"===r||"googlebot"===r||"bingbot"===r||e.hasAttribute("http-equiv")||"author"===r||"generator"===r||"framework"===r||"publisher"===r||"progid"===r||/^article:/.test(n)||/^product:/.test(n)||"google-site-verification"===r||"yandex-verification"===r||"csrf-token"===r||"p:domain_verify"===r||"verify-v1"===r||"verification"===r||"shopify-checkout-api-token"===r}function i(t){return(e.getAttribute(t)||"").toLowerCase()}return!1}(e)?void 0:rF.IGNORE}}function rH(e,t){switch(t){case rF.MASK:case rF.HIDDEN:case rF.IGNORE:return!0;case rF.MASK_USER_INPUT:return rO(e)?rV(e.parentNode):rV(e);default:return!1}}function rV(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!rB[e.tagName]}function r$(e,t,r){var n,i=null===(n=e.parentElement)||void 0===n?void 0:n.tagName,o=e.textContent||"";if(!t||o.trim()){if("SCRIPT"===i)o="***";else if(r===rF.HIDDEN)o="***";else if(rH(e,r)){if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?"***":o.replace(/\S/g,"x")}return o}}function rW(e){return"[".concat(rI,'="').concat(e,'"], .').concat("dd-privacy-").concat(e)}var rY="data-dd-action-name";function rG(e,t){if(void 0===f&&(f="closest"in HTMLElement.prototype),f)r=e.closest("[".concat(t,"]"));else for(var r,n=e;n;){if(n.hasAttribute(t)){r=n;break}n=rA(n)}if(r)return rZ(rQ(r.getAttribute(t).trim()))}var rK=[function(e,t,r){if(void 0===p&&(p="labels"in HTMLInputElement.prototype),p){if("labels"in e&&e.labels&&e.labels.length>0)return r0(e.labels[0],t)}else if(e.id){var n=e.ownerDocument&&z(e.ownerDocument.querySelectorAll("label"),function(t){return t.htmlFor===e.id});return n&&r0(n,t,r)}},function(e){if("INPUT"===e.nodeName){var t=e.getAttribute("type");if("button"===t||"submit"===t||"reset"===t)return e.value}},function(e,t,r){if("BUTTON"===e.nodeName||"LABEL"===e.nodeName||"button"===e.getAttribute("role"))return r0(e,t,r)},function(e){return e.getAttribute("aria-label")},function(e,t,r){var n=e.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map(function(t){return e.ownerDocument?e.ownerDocument.getElementById(t):null}).filter(function(e){return!!e}).map(function(e){return r0(e,t,r)}).join(" ")},function(e){return e.getAttribute("alt")},function(e){return e.getAttribute("name")},function(e){return e.getAttribute("title")},function(e){return e.getAttribute("placeholder")},function(e,t){if("options"in e&&e.options.length>0)return r0(e.options[0],t)}],rX=[function(e,t,r){return r0(e,t,r)}];function rJ(e,t,r,n){for(var i=e,o=0;o<=10&&i&&"BODY"!==i.nodeName&&"HTML"!==i.nodeName&&"HEAD"!==i.nodeName;){for(var a=0;a100?"".concat(tc(e,100)," [...]"):e}function r0(e,t,r){if(!e.isContentEditable){if("innerText"in e){var n=e.innerText,i=function(t){for(var r=e.querySelectorAll(t),i=0;i0&&(n=n.replace(a,""))}}};return 0!==tC()||i("script, style"),i("[".concat(rY,"]")),t&&i("[".concat(t,"]")),r&&i("".concat(rW(rF.HIDDEN),", ").concat(rW(rF.MASK))),n}return e.textContent}}var r1=[rY,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],r2=[r6,function(e){if(e.id&&!r4(e.id))return"#".concat(rC(e.id))}],r3=[r6,function(e){if("BODY"!==e.tagName)for(var t=function(e){if(e.classList)return e.classList;var t=(e.getAttribute("class")||"").trim();return t?t.split(/\s+/):[]}(e),r=0;r").concat(t):e}function nt(){var e=window.getSelection();return!e||e.isCollapsed}function nr(e){return e.target instanceof Element&&!1!==e.isPrimary}function nn(e){return!e.hasPageActivity&&!e.getUserActivity().input&&!e.getUserActivity().scroll&&!rD(e.event.target,'input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}function ni(e,t){var r=no(e)?{action:{id:e.id,loading_time:rb(eX(e.duration)),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position}}}:void 0,n=no(e)?void 0:e.context,i=ec({action:{id:ts(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:"action",view:{in_foreground:t.wasInPageStateAt("active",e.startClocks.relative)}},r),o=no(e)?{events:e.events}:{};return!no(e)&&e.handlingStack&&(o.handlingStack=e.handlingStack),{customerContext:n,rawRumEvent:i,startTime:e.startClocks.relative,domainContext:o}}function no(e){return"custom"!==e.type}var na={},ns={intervention:"intervention",cspViolation:"csp_violation"};function nl(e){return V({startClocks:e0(),source:t5.REPORT,handling:"unhandled"},e)}function nu(e,t,r,n,i){return r?eN({name:e,message:t,stack:[{func:"?",url:r,line:null!=n?n:void 0,column:null!=i?i:void 0}]}):void 0}var nc=new rj;function nd(e){return e.startTime+e.duration}function nh(e,t,r){return document.readyState===t||"complete"===document.readyState?(r(),{stop:ee}):ey(e,window,"complete"===t?"load":"DOMContentLoaded",r,{once:!0})}function np(e,t){var r=t&&Number(t);if(e&&r)return{traceId:e,traceTime:r}}function nf(e){if(e&&e.nodeType===Node.COMMENT_NODE){var t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function nm(){if(rx(d.NAVIGATION)){var e=performance.getEntriesByType(d.NAVIGATION)[0];if(e)return e}var t=function(){var e={},t=performance.timing;for(var r in t)if(eG(t[r])){var n=t[r];e[r]=0===n?0:n-e2()}return e}(),r=V({entryType:d.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:t.responseEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,toJSON:function(){return V({},r,{toJSON:void 0})}},t);return r}function ng(e,t){nh(e,"interactive",function(){var e=V(nm().toJSON(),{entryType:d.RESOURCE,initiatorType:rs,traceId:function(e){var t,r,n=(t=e.querySelector("meta[name=dd-trace-id]"),r=e.querySelector("meta[name=dd-trace-time]"),np(t&&t.content,r&&r.content)||function(e){var t=function(e){for(var t=0;t=0;t-=1){var n=e.body.childNodes[t],r=nf(n);if(r)return r;if(!rO(n))break}}(e);if(t)return np(tu(t,"trace-id"),tu(t,"trace-time"))}(e));if(!(!n||n.traceTime<=eJ()-12e4))return n.traceId}(document),toJSON:function(){return V({},e,{toJSON:void 0})}});t(e)})}function nv(e,t){var r=eK(e.startTime),n=function(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,span_id:tZ().toDecimalString(),rule_psr:nb(t)}}}(e,t);if(t.trackResources||n){var i,o=function(e){var t,r=e.name;if(!function(e){try{return!!tb(e)}catch(e){return!1}}(r))return tr('Failed to construct URL for "'.concat(e.name,'"')),"other";for(var n="/"===(t=tb(r).pathname)[0]?t:"/".concat(t),i=0;i=i){D.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(i,"KB. ").concat(O," ").concat(j,"/#technical-limitations"));return}void 0!==r&&void 0!==o[r]&&(a=o[r],delete o[r],s=t.estimateEncodedBytesCount(a),n.notifyAfterRemoveMessage(s)),n.notifyBeforeAddMessage(u),void 0!==r?(o[r]=l,n.notifyAfterAddMessage()):t.write(t.isEmpty?l:"\n".concat(l),function(e){n.notifyAfterAddMessage(e-u)})}return{flushController:n,add:s,upsert:s,stop:a.unsubscribe}}function nR(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}function nM(e,t,r,n,i){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?nN(e,t,r,{onSuccess:function(){return nF(0,t,r,n,i)},onFailure:function(){t.queuedPayloads.enqueue(e),function e(t,r,n,i){2===t.transportStatus&&K(function(){nN(t.queuedPayloads.first(),t,r,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,nF(1,t,r,n,i)},onFailure:function(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),e(t,r,n,i)}})},t.currentBackoffTime)}(t,r,n,i)}}):t.queuedPayloads.enqueue(e)}function nN(e,t,r,n){var i=n.onSuccess,o=n.onFailure;t.bandwidthMonitor.add(e),r(e,function(r){t.bandwidthMonitor.remove(e),"opaque"!==r.type&&(0===r.status&&!navigator.onLine||408===r.status||429===r.status||r.status>=500)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:r.status},o()):(t.transportStatus=0,i())})}function nF(e,t,r,n,i){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:"Reached max ".concat(n," events size queued for upload: ").concat(3,"MiB"),source:t5.AGENT,startClocks:e0()}),t.queueFullReported=!0);var o=t.queuedPayloads;for(t.queuedPayloads=nI();o.size()>0;)nM(o.dequeue(),t,r,n,i)}function nI(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=3145728}}}function nL(e,t,r,n){var i={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:nI(),queueFullReported:!1},o=function(n,i){(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}})()&&n.bytesCount10&&function(){if(k){if(k.keys){var e=k.keys().next().value;e&&k.delete(e)}else{var t=!0;k.forEach(function(e,r){t&&(k.delete(r),t=!1)})}}}()),t}var nQ=new WeakMap;function nZ(e){return nQ.has(e)}function n0(e){return nQ.get(e)}function n1(e,t){var r=e.tagName,n=e.value;if(rH(e,t)){var i=e.type;if("INPUT"===r&&("button"===i||"submit"===i||"reset"===i))return n;if(!n||"OPTION"===r)return;return"***"}return"OPTION"===r||"SELECT"===r?e.value:"INPUT"===r||"TEXTAREA"===r?n:void 0}var n2=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,n3=/^[A-Za-z]+:|^\/\//,n5=/^data:.*,/i,n4=/[^a-z1-6-_]/;function n6(e){var t=e.toLowerCase().trim();return n4.test(t)?"div":t}function n8(e,t){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(e,"' height='").concat(t,"' style='background-color:silver'%3E%3C/svg%3E")}var n9={FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Focus:6,ViewEnd:7,VisualViewport:8,FrustrationRecord:9},n7={Document:0,DocumentType:1,Element:2,Text:3,CDATA:4,DocumentFragment:11},ie={Mutation:0,MouseMove:1,MouseInteraction:2,Scroll:3,ViewportResize:4,Input:5,TouchMove:6,MediaInteraction:7,StyleSheetRule:8},it={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchEnd:9},ir={Play:0,Pause:1};function ii(e){if(void 0!==e&&0!==e.length)return e.map(function(e){return{cssRules:Array.from(e.cssRules||e.rules,function(e){return e.cssText}),disabled:e.disabled||void 0,media:e.media.length>0?Array.from(e.media):void 0}})}function io(e,t,r,n){if(t===rF.HIDDEN)return null;var i=e.getAttribute(r);if(t===rF.MASK&&r!==rI&&!r1.includes(r)&&r!==n.actionNameAttribute){var o=e.tagName;switch(r){case"title":case"alt":case"placeholder":return"***"}if("IMG"===o&&("src"===r||"srcset"===r)){if(e.naturalWidth>0)return n8(e.naturalWidth,e.naturalHeight);var a=e.getBoundingClientRect(),s=a.width,l=a.height;return s>0||l>0?n8(s,l):rL}if("SOURCE"===o&&("src"===r||"srcset"===r))return rL;if("A"===o&&"href"===r||i&&H(r,"data-")||"IFRAME"===o&&"srcdoc"===r)return"***"}return i&&"string"==typeof i&&rm(i)?rg(i):i}function ia(e){var t,r,n;if(!e)return null;try{t=e.rules||e.cssRules}catch(e){}return t?(r=Array.from(t,2===tC()?is:il).join(""),n=e.href,r.replace(n2,function(e,t,r,i,o,a){var s=r||o||a;if(!n||!s||n3.test(s)||n5.test(s))return e;var l=t||i||"";return"url(".concat(l).concat(function(e,t){try{return tb(e,t).href}catch(t){return e}}(s,n)).concat(l,")")})):null}function is(e){return"selectorText"in e&&e.selectorText.includes(":")?e.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2"):il(e)}function il(e){return"styleSheet"in e&&ia(e.styleSheet)||e.cssText}function iu(e,t){var r=function(e,t){var r;switch(e.nodeType){case e.DOCUMENT_NODE:return{type:n7.Document,childNodes:id(e,t),adoptedStyleSheets:ii(e.adoptedStyleSheets)};case e.DOCUMENT_FRAGMENT_NODE:return(r=rR(e))&&t.serializationContext.shadowRootsController.addShadowRoot(e),{type:n7.DocumentFragment,childNodes:id(e,t),isShadowRoot:r,adoptedStyleSheets:r?ii(e.adoptedStyleSheets):void 0};case e.DOCUMENT_TYPE_NODE:return{type:n7.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId};case e.ELEMENT_NODE:return function(e,t){var r,n=n6(e.tagName),i="svg"===e.tagName||e instanceof SVGElement||void 0,o=rU(rq(e),t.parentNodePrivacyLevel);if(o===rF.HIDDEN){var a=e.getBoundingClientRect(),s=a.width,l=a.height;return{type:n7.Element,tagName:n,attributes:((r={rr_width:"".concat(s,"px"),rr_height:"".concat(l,"px")})[rI]="hidden",r),childNodes:[],isSVG:i}}if(o!==rF.IGNORE){var u=function(e,t,r){if(t===rF.HIDDEN)return{};for(var n,i,o,a={},s=n6(e.tagName),l=e.ownerDocument,u=0;u0||rP(e))&&"style"!==n&&(c=id(e,t.parentNodePrivacyLevel===o&&t.ignoreWhiteSpace===("head"===n)?t:V({},t,{parentNodePrivacyLevel:o,ignoreWhiteSpace:"head"===n}))),{type:n7.Element,tagName:n,attributes:u,childNodes:c,isSVG:i}}}(e,t);case e.TEXT_NODE:return function(e,t){var r=r$(e,t.ignoreWhiteSpace||!1,t.parentNodePrivacyLevel);if(void 0!==r)return{type:n7.Text,textContent:r}}(e,t);case e.CDATA_SECTION_NODE:return{type:n7.CDATA,textContent:""}}}(e,t);if(!r)return null;var n=n0(e)||ic++;return r.id=n,nQ.set(e,n),t.serializedNodeIds&&t.serializedNodeIds.add(n),r}var ic=1;function id(e,t){var r=[];return rM(e,function(e){var n=iu(e,t);n&&r.push(n)}),r}function ih(e){return!!e.changedTouches}function ip(e){return!0===e.composed&&rP(e.target)?e.composedPath()[0]:e.target}var im=function(e,t){var r=window.visualViewport,n={layoutViewportX:e,layoutViewportY:t,visualViewportX:e,visualViewportY:t};return r&&(Math.abs(r.pageTop-r.offsetTop-window.scrollY)>25||Math.abs(r.pageLeft-r.offsetLeft-window.scrollX)>25?(n.layoutViewportX=Math.round(e+r.offsetLeft),n.layoutViewportY=Math.round(t+r.offsetTop)):(n.visualViewportX=Math.round(e-r.offsetLeft),n.visualViewportY=Math.round(t-r.offsetTop))),n},ig=function(e){return{scale:e.scale,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,pageLeft:e.pageLeft,pageTop:e.pageTop,height:e.height,width:e.width}};function iv(e,t){return{data:V({source:e},t),type:n9.IncrementalSnapshot,timestamp:eQ()}}function iy(e){var t=ih(e)?e.changedTouches[0]:e,r=t.clientX,n=t.clientY;if(window.visualViewport){var i=im(r,n),o=i.visualViewportX,a=i.visualViewportY;r=o,n=a}if(!Number.isFinite(r)||!Number.isFinite(n)){e.isTrusted&&tr("mouse/touch event without x/y");return}return{x:r,y:n}}var ib=((x={}).pointerup=it.MouseUp,x.mousedown=it.MouseDown,x.click=it.Click,x.contextmenu=it.ContextMenu,x.dblclick=it.DblClick,x.focus=it.Focus,x.blur=it.Blur,x.touchstart=it.TouchStart,x.touchend=it.TouchEnd,x);function iw(e,t,r,n){void 0===n&&(n=document);var i=Z(function(n){var i=ip(n);if(i&&rz(i,e.defaultPrivacyLevel)!==rF.HIDDEN&&nZ(i)){var o=n0(i),a=i===document?{scrollTop:nC(),scrollLeft:nE()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};r.set(i,a),t(iv(ie.Scroll,{id:o,x:a.scrollLeft,y:a.scrollTop}))}},100),o=i.throttled,a=i.cancel,s=ey(e,n,"scroll",o,{capture:!0,passive:!0}).stop;return{stop:function(){s(),a()}}}function ik(e){for(var t=[],r=e;r.parentRule;){var n=Array.from(r.parentRule.cssRules).indexOf(r);t.unshift(n),r=r.parentRule}if(r.parentStyleSheet){var i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);return t.unshift(i),t}}function ix(e,t,r){void 0===r&&(r=document);var n,i=e.defaultPrivacyLevel,o=new WeakMap,a=r!==document,s=eb(e,r,a?["change"]:["input","change"],function(e){var t=ip(e);(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)&&u(t)},{capture:!0,passive:!0}).stop;if(a)n=ee;else{var l=[tv(HTMLInputElement.prototype,"value",u),tv(HTMLInputElement.prototype,"checked",u),tv(HTMLSelectElement.prototype,"value",u),tv(HTMLTextAreaElement.prototype,"value",u),tv(HTMLSelectElement.prototype,"selectedIndex",u)];n=function(){l.forEach(function(e){return e.stop()})}}return{stop:function(){n(),s()}};function u(e){var t,r,n,o=rz(e,i);if(o!==rF.HIDDEN){var a=e.type;if("radio"===a||"checkbox"===a){if(rH(e,o))return;n={isChecked:e.checked}}else{var s=n1(e,o);if(void 0===s)return;n={text:s}}c(e,n);var l=e.name;"radio"===a&&l&&e.checked&&(t=document.querySelectorAll('input[type="radio"][name="'.concat(rC(l),'"]')),r=function(t){t!==e&&c(t,{isChecked:!1})},Array.prototype.forEach.call(t,r))}}function c(e,r){if(nZ(e)){var n=o.get(e);n&&n.text===r.text&&n.isChecked===r.isChecked||(o.set(e,r),t(iv(ie.Input,V({id:n0(e)},r))))}}}function i_(e,t,r,n){var i=t3();if(!i)return{stop:ee,flush:ee};var o=function(e){var t=ee,r=[];function n(){t(),e(r),r=[]}var i=Z(n,16,{leading:!1}),o=i.throttled,a=i.cancel;return{addMutations:function(e){0===r.length&&(t=function(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){var r=window.requestIdleCallback(N(e),t);return function(){return window.cancelIdleCallback(r)}}var n=window.requestAnimationFrame(N(e));return function(){return window.cancelAnimationFrame(n)}}(o,{timeout:100})),r.push.apply(r,e)},flush:n,stop:function(){t(),a()}}}(function(n){!function(e,t,r,n){var i=new Map;e.filter(function(e){return"childList"===e.type}).forEach(function(e){e.removedNodes.forEach(function(e){!function e(t,r){rP(t)&&r(t.shadowRoot),rM(t,function(t){return e(t,r)})}(e,n.removeShadowRoot)})});var o=e.filter(function(e){return e.target.isConnected&&function(e){for(var t=e;t;){if(!nZ(t)&&!rR(t))return!1;t=rN(t)}return!0}(e.target)&&rz(e.target,r.defaultPrivacyLevel,i)!==rF.HIDDEN}),a=function(e,t,r,n){for(var i=new Set,o=new Map,a=function(e){e.addedNodes.forEach(function(e){i.add(e)}),e.removedNodes.forEach(function(t){i.has(t)||o.set(t,e.target),i.delete(t)})},s=0;s0&&(t.postMessage({action:"reset",streamId:r}),a=0)}return{isAsync:!0,get isEmpty(){return 0===a},write:function(e,n){t.postMessage({action:"write",id:a,data:e,streamId:r}),s.push({id:a,writeCallback:n,data:e}),a+=1},finish:function(e){c(),s.length?(s.forEach(function(e){delete e.writeCallback}),s[s.length-1].finishCallback=function(){return e(u())}):e(u())},finishSync:function(){c();var e=s.map(function(e){return delete e.writeCallback,delete e.finishCallback,e.data}).join("");return V(u(),{pendingData:e})},estimateEncodedBytesCount:function(e){return e.length/8},stop:function(){l()}}}function iD(e){return new Worker(e.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<>>=1,a<<=1}while(--e>0);return a>>>1},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;e8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},S=function(t,e,a,n){var r=2*e,i=2*a;return t[r]>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r>=7;l>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s>>8^r[255&(t^e[s])];return-1^t},Y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&is){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Lt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Zt(t),0===t.lookahead&&e===q)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+ft;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&rt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var iA={status:0};function ij(e,t,r,n){switch(void 0===n&&(n=iD),0===iA.status&&function(e,t,r){void 0===r&&(r=iD);try{var n=r(e),i=ey(e,n,"error",function(r){iO(e,t,r)}).stop,o=ey(e,n,"message",function(r){var n,i=r.data;"errored"===i.type?iO(e,t,i.error,i.streamId):"initialized"===i.type&&(n=i.version,1===iA.status&&(iA={status:3,worker:iA.worker,stop:iA.stop,version:n}))}).stop;n.postMessage({action:"init"}),K(function(){1===iA.status&&(D.error("".concat(t," failed to start: a timeout occurred while initializing the Worker")),iA.initializationFailureCallbacks.forEach(function(e){return e()}),iA={status:2})},3e4),iA={status:1,worker:n,stop:function(){i(),o()},initializationFailureCallbacks:[]}}catch(r){iO(e,t,r)}}(e,t,n),iA.status){case 1:return iA.initializationFailureCallbacks.push(r),iA.worker;case 3:return iA.worker}}function iO(e,t,r,n){if(1===iA.status||0===iA.status){var i;if(D.error("".concat(t," failed to start: an error occurred while creating the Worker:"),r),r instanceof Event||r instanceof Error&&(L(i=r.message,"Content Security Policy")||L(i,"requires 'TrustedScriptURL'"))){var o=void 0;o=e.workerUrl?"Please make sure the Worker URL ".concat(e.workerUrl," is correct and CSP is correctly configured."):"Please make sure CSP is correctly configured.",D.error("".concat(o," See documentation at ").concat(A,"/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else tn(r);1===iA.status&&iA.initializationFailureCallbacks.forEach(function(e){return e()}),iA={status:2}}else tn(r,{worker_version:3===iA.status&&iA.version,stream_id:n})}var iT=function(e,r,n){void 0===n&&(n={});var i,o,s,l=function(e){void 0===e&&(e=2);var t=new Map,r=!1;function n(n){if(void 0===n&&(n=0),!r&&0!==e){var i=2===e?3072:16384,o=n;t.forEach(function(e){o+=e.getBytesCount()}),o>i&&(D.warn("Customer data exceeds the recommended ".concat(i/1024,"KiB threshold. ").concat(O," ").concat(j,"/#customer-data-exceeds-the-recommended-threshold-warning")),r=!0)}}return{createDetachedTracker:function(){var e=ea(function(){return n(e.getBytesCount())});return e},getOrCreateTracker:function(e){return t.has(e)||t.set(e,ea(n)),t.get(e)},setCompressionStatus:function(t){0===e&&(e=t,n())},getCompressionStatus:function(){return e},stop:function(){t.forEach(function(e){return e.stop()}),t.clear()}}}(0),u=eg(l.getOrCreateTracker(2)),c=eg(l.getOrCreateTracker(1)),d={tryToInit:function(e){i||(i=e)},update:function(e){i=e,o.notify()},isGranted:function(){return i===ev.GRANTED},observable:o=new ef},h={vitalsByName:new Map,vitalsByReference:new WeakMap};function p(){return{context:u.getContext(),user:c.getContext(),hasReplay:!!r.isRecording()||void 0}}var f=function(e,r,n,i,o){var s,l,u,c,d=e.ignoreInitIfSyntheticsWillInjectRum,h=e.startDeflateWorker,p=e6(),f=n.observable.subscribe(m);function m(){if(u&&c&&n.isGranted()){if(f.unsubscribe(),c.trackViewsManually){if(!s)return;p.remove(s.callback),e=s.options}var e,t=o(c,l,e);p.drain(t)}}function g(e){var t,r,i,o,s,d,p,f,g,v=tm();if(v&&(e=V({},t=e,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!==(r=t.defaultPrivacyLevel)&&void 0!==r?r:null===(i=tp())||void 0===i?void 0:i.getPrivacyLevel()})),u=e,p={session_sample_rate:(s=o=e).sessionSampleRate,telemetry_sample_rate:s.telemetrySampleRate,telemetry_configuration_sample_rate:s.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:s.telemetryUsageSampleRate,use_before_send:!!s.beforeSend,use_cross_site_session_cookie:s.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:s.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:s.useSecureSessionCookie,use_proxy:!!s.proxy,silent_multiple_init:s.silentMultipleInit,track_session_across_subdomains:s.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!s.allowFallbackToLocalStorage,store_contexts_across_pages:!!s.storeContextsAcrossPages,allow_untrusted_events:!!s.allowUntrustedEvents,tracking_consent:s.trackingConsent},g=V({session_replay_sample_rate:o.sessionReplaySampleRate,start_session_replay_recording_manually:o.startSessionReplayRecordingManually,trace_sample_rate:o.traceSampleRate,trace_context_injection:o.traceContextInjection,action_name_attribute:o.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(o.allowedTracingUrls)&&o.allowedTracingUrls.length>0,selected_tracing_propagators:(f=new Set,Array.isArray(o.allowedTracingUrls)&&o.allowedTracingUrls.length>0&&o.allowedTracingUrls.forEach(function(e){tG(e)?t0.forEach(function(e){return f.add(e)}):"object"===es(e)&&Array.isArray(e.propagatorTypes)&&e.propagatorTypes.forEach(function(e){return f.add(e)})}),B(f)),default_privacy_level:o.defaultPrivacyLevel,enable_privacy_for_action_name:o.enablePrivacyForActionName,use_excluded_activity_urls:Array.isArray(o.excludedActivityUrls)&&o.excludedActivityUrls.length>0,use_worker_url:!!o.workerUrl,compress_intake_requests:o.compressIntakeRequests,track_views_manually:o.trackViewsManually,track_user_interactions:o.trackUserInteractions,track_resources:o.trackResources,track_long_task:o.trackLongTasks,plugins:null===(d=o.betaPlugins)||void 0===d?void 0:d.map(function(e){var t;return V({name:e.name},null===(t=e.getConfigurationTelemetry)||void 0===t?void 0:t.call(e))})},p),tt({type:e8.configuration,configuration:g}),c){ta("DD_RUM",e);return}var y=function(e){if(!e.applicationId){D.error("Application ID is not configured, no RUM data will be collected.");return}if(tY(e.sessionReplaySampleRate,"Session Replay")&&tY(e.traceSampleRate,"Trace")){if(void 0!==e.excludedActivityUrls&&!Array.isArray(e.excludedActivityUrls)){D.error("Excluded Activity Urls should be an array");return}var t,r,n=function(e){if(void 0===e.allowedTracingUrls)return[];if(!Array.isArray(e.allowedTracingUrls)){D.error("Allowed Tracing URLs should be an array");return}if(0!==e.allowedTracingUrls.length&&void 0===e.service){D.error("Service needs to be configured when tracing is enabled");return}var t=[];return e.allowedTracingUrls.forEach(function(e){tG(e)?t.push({match:e,propagatorTypes:t0}):"object"===es(e)&&tG(e.match)&&Array.isArray(e.propagatorTypes)?t.push(e):D.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",e)}),t}(e);if(n){var i=function(e){var t,r,n,i,o,s,l,u,c,d,h,p,f,m,g,v,y;if(!e||!e.clientToken){D.error("Client Token is not configured, we will not send any data.");return}if((!(s=e.site)||"string"!=typeof s||/(datadog|ddog|datad0g|dd0g)/.test(s)||(D.error("Site should be a valid Datadog site. ".concat(O," ").concat(A,"/getting_started/site/.")),0))&&tY(e.sessionSampleRate,"Session")&&tY(e.telemetrySampleRate,"Telemetry")&&tY(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&tY(e.telemetryUsageSampleRate,"Telemetry Usage")&&tW(e.version,"Version")&&tW(e.env,"Env")&&tW(e.service,"Service")){if(void 0!==e.trackingConsent&&!ei(ev,e.trackingConsent)){D.error('Tracking Consent should be either "granted" or "not-granted"');return}return V({beforeSend:e.beforeSend&&T(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:((v=!function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(ts()),r="test";tx(t,r,6e4,e);var n=t_(t)===r;return tx(t,"",0,e),n}catch(e){return D.error(e),!1}}(((g={}).secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,g.crossSite=!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,g.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(g.domain=function(){if(void 0===a){for(var e="dd_site_test_".concat(ts()),t=window.location.hostname.split("."),r=t.pop();t.length&&!t_(e);)tx(e,"test",1e3,{domain:r="".concat(t.pop(),".").concat(r)});tx(e,"",0,{domain:r}),a=r}return a}()),g))?void 0:{type:"Cookie",cookieOptions:g})||!e.allowFallbackToLocalStorage||(v=function(){try{var e=ts(),t="".concat("_dd_test_").concat(e);localStorage.setItem(t,e);var r=localStorage.getItem(t);return localStorage.removeItem(t),e===r?{type:"LocalStorage"}:void 0}catch(e){return}}()),v),sessionSampleRate:null!==(t=e.sessionSampleRate)&&void 0!==t?t:100,telemetrySampleRate:null!==(r=e.telemetrySampleRate)&&void 0!==r?r:20,telemetryConfigurationSampleRate:null!==(n=e.telemetryConfigurationSampleRate)&&void 0!==n?n:5,telemetryUsageSampleRate:null!==(i=e.telemetryUsageSampleRate)&&void 0!==i?i:5,service:e.service||void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!==(o=e.trackingConsent)&&void 0!==o?o:ev.GRANTED,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},(l=e.site||eV,u=e.env,c=e.service,d=e.version,h=e.datacenter,p=[],u&&p.push(tH("env",u)),c&&p.push(tH("service",c)),d&&p.push(tH("version",d)),h&&p.push(tH("datacenter",h)),y=U(f={logsEndpointBuilder:tq(e,"logs",p),rumEndpointBuilder:tq(e,"rum",p),sessionReplayEndpointBuilder:tq(e,"replay",p)}).map(function(e){return e.urlPrefix}),l===eV&&y.push("https://".concat(e$,"/")),V({isIntakeUrl:function(e){return m.some(function(t){return 0===e.indexOf(t)})},replica:function(e,t,r){if(e.replica){var n=V({},e,{site:eV,clientToken:e.replica.clientToken}),i={logsEndpointBuilder:tq(n,"logs",r),rumEndpointBuilder:tq(n,"rum",r)};return t.push.apply(t,U(i).map(function(e){return e.urlPrefix})),V({applicationId:e.replica.applicationId},i)}}(e,m=y,p),site:l},f)))}}(e);if(i)return V({applicationId:e.applicationId,version:e.version||void 0,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:null!==(t=e.sessionReplaySampleRate)&&void 0!==t?t:0,startSessionReplayRecordingManually:!!e.startSessionReplayRecordingManually,traceSampleRate:e.traceSampleRate,allowedTracingUrls:n,excludedActivityUrls:null!==(r=e.excludedActivityUrls)&&void 0!==r?r:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!e.trackUserInteractions,trackViewsManually:!!e.trackViewsManually,trackResources:!!e.trackResources,trackLongTasks:!!e.trackLongTasks,subdomain:e.subdomain,defaultPrivacyLevel:ei(tV,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:tV.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,customerDataTelemetrySampleRate:1,traceContextInjection:ei(t$,e.traceContextInjection)?e.traceContextInjection:t$.ALL,plugins:e.betaPlugins||[]},i)}}}(e);if(y){if(!v&&!y.sessionStoreStrategyType){D.warn("No storage available for session. We will not send any data.");return}(!y.compressIntakeRequests||v||!h||(l=h(y,"Datadog RUM",ee)))&&(c=y,tk().subscribe(ee),n.tryToInit(y.trackingConsent),m())}}var v=function(e){p.add(function(t){return t.addDurationVital(e)})};return{init:function(e,r){var n,i,o;if(!e){D.error("Missing configuration");return}Array.isArray(n=e.enableExperimentalFeatures)&&function(e){e.forEach(function(e){eU.add(e)})}(n.filter(function(e){return ei(t,e)})),u=e,!(d&&tE())&&((!function(e,t,r){if(e)for(var n=0;n=n&&h("bytes_limit"),d+=1,c+=e,void 0===t&&(t=K(function(){h("duration_limit")},i))},notifyAfterAddMessage:function(e){void 0===e&&(e=0),c+=e,d>=r?h("messages_limit"):c>=n&&h("bytes_limit")},notifyAfterRemoveMessage:function(e){c-=e,0==(d-=1)&&p()}}}({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:i,sessionExpireObservable:o}),messageBytesLimit:e.messageBytesLimit})}return{flushObservable:s.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),s.add(e),l&&t&&l.add(r.transformMessage?r.transformMessage(e):e)},upsert:function(e,t){s.upsert(e,t),l&&l.upsert(r.transformMessage?r.transformMessage(e):e,t)},stop:function(){s.stop(),l&&l.stop()}}}(r,{endpoint:r.rumEndpointBuilder,encoder:s(2)},el&&{endpoint:el.rumEndpointBuilder,transformMessage:function(e){return ec(e,{application:{id:el.applicationId}})},encoder:s(3)},R,I,ea),T.subscribe(12,function(e){"view"===e.type?eh.upsert(e,e.view.id):eh.add(e)}),ei.subscribe(function(e){return eh.add(e,r.site===eH)}),eh);O.push(function(){return ep.stop()}),$=ep.flushObservable,P.enabled&&eW(r.customerDataTelemetrySampleRate)&&(nW(),nY(),T.subscribe(12,function(e){w=!0,nV(b.globalContextBytes,i.getOrCreateTracker(2).getBytesCount()),nV(b.userContextBytes,i.getOrCreateTracker(1).getBytesCount()),nV(b.featureFlagBytes,L(["view","error"],e.type)?i.getOrCreateTracker(0).getBytesCount():0)}),$.subscribe(function(e){var t=e.bytesCount,r=e.messagesCount;w&&(y.batchCount+=1,nV(y.batchBytesCount,t),nV(y.batchMessagesCount,r),n$(y.globalContextBytes,b.globalContextBytes),n$(y.userContextBytes,b.userContextBytes),n$(y.featureFlagBytes,b.featureFlagBytes),nY())}),J(nq,1e4))}var ev=(tq=t3(),new ef(function(e){if(tq){var t=new tq(N(function(){return e.notify()}));return t.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return t.disconnect()}}})),ew=(tV=en(tH=location),new ef(function(e){var t,n,i,o=(t=tg(nU("pushState"),"pushState",function(e){(0,e.onPostCall)(s)}).stop,n=tg(nU("replaceState"),"replaceState",function(e){(0,e.onPostCall)(s)}).stop,i=ey(r,window,"popstate",s).stop,{stop:function(){t(),n(),i()}}).stop,a=ey(r,window,"hashchange",s).stop;function s(){if(tV.href!==tH.href){var t=en(tH);e.notify({newLocation:t,oldLocation:tV}),tV=t}}return function(){o(),a()}})),ek=function(e,t){void 0===t&&(t=500);var r,n=rn({expireDelay:144e5,maxEntries:4e3});o(nG(),eZ());var i=eb(e,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],function(e){o("freeze"===e.type?"frozen":"pagehide"===e.type?e.persisted?"frozen":"terminated":nG(),e.timeStamp)},{capture:!0}).stop;function o(e,t){void 0===t&&(t=eZ()),e!==r&&(r=e,n.closeActive(t),n.add({state:r,startTime:t},t))}var a={findAll:function(e,r){var i=n.findAll(e,r);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-t),s=i.length-1;s>=a;s--){var l=i[s],u=l.startTime-e;o.push({state:l.state,start:eX(u)})}return o}},wasInPageStateAt:function(e,t){return a.wasInPageStateDuringPeriod(e,t,0)},wasInPageStateDuringPeriod:function(e,t,r){return n.findAll(t,r).some(function(t){return t.state===e})},addPageState:o,stop:function(){i(),n.stop()}};return a}(r),ex=(e4=T,e6=r,e9=location,ti=H,to=ek,ta=ew,tl=ev,tu=o,tv=R,tw=(ty=rn({expireDelay:144e5}),e4.subscribe(1,function(e){ty.add({service:e.service,version:e.version,context:e.context,id:e.id,name:e.name,startClocks:e.startClocks},e.startClocks.relative)}),e4.subscribe(5,function(e){var t=e.endClocks;ty.closeActive(t.relative)}),e4.subscribe(3,function(e){var t=ty.find(e.startClocks.relative);t&&e.name&&(t.name=e.name),t&&e.context&&(t.context=e.context)}),e4.subscribe(9,function(){ty.reset()}),{findView:function(e){return ty.find(e)},stop:function(){ty.stop()}}),t_=function(e,t,r){var n,i=rn({expireDelay:144e5});e.subscribe(1,function(e){var t=e.startClocks,o=r.href;i.add(a({url:o,referrer:n||document.referrer}),t.relative),n=o}),e.subscribe(5,function(e){var t=e.endClocks;i.closeActive(t.relative)});var o=t.subscribe(function(e){var t=e.newLocation,r=i.find();if(r){var n=eZ();i.closeActive(n),i.add(a({url:t.href,referrer:r.referrer}),n)}});function a(e){return{url:e.url,referrer:e.referrer}}return{findUrl:function(e){return i.find(e)},stop:function(){o.unsubscribe(),i.stop()}}}(e4,ta,e9),tR=(tA=function(e,t,r,n){e.subscribe(0,function(t){return e.notify(11,ni(t,n))});var i={findActionId:ee};return r.trackUserInteractions&&(i=function(e,t,r){var n,i,o,a,s,l,u,c,d=rn({expireDelay:3e5}),h=new ef;e.subscribe(9,function(){d.reset()}),e.subscribe(4,m);var p=(a=(n={onPointerDown:function(n){return function(e,t,r,n){var i,o=e.enablePrivacyForActionName?rz(n.target,e.defaultPrivacyLevel):rF.ALLOW;if(o!==rF.HIDDEN){var a,s,l,u,c,d,h,p,f=(a=n,s=o,l=e,{type:"click",target:{width:Math.round((p=a.target.getBoundingClientRect()).width),height:Math.round(p.height),selector:r5(a.target,l.actionNameAttribute)},position:{x:Math.round(a.clientX-p.left),y:Math.round(a.clientY-p.top)},name:(u=a.target,c=l.enablePrivacyForActionName,d=l.actionNameAttribute,h=rG(u,rY)||d&&rG(u,d),s===rF.MASK?h||"Masked Element":h||rJ(u,d,rK,c)||rJ(u,d,rX,c)||"")}),m=!1;return i=function(e){m=e.hadActivity},r_(rS(t,r,e),i,100),{clickActionBase:f,hadActivityOnPointerDown:function(){return m}}}}(r,e,t,n)},onPointerUp:function(n,i,o){var a,s,l,u,c,p,m,g,v,y,b,w,k,x,_;a=r,s=e,l=t,u=d,c=h,p=f,m=n.clickActionBase,g=i,v=o,y=n.hadActivityOnPointerDown,p(w=function e(t,r,n,i,o){var a,s=ts(),l=e0(),u=r.add(s,l.relative),c=rw({lifeCycle:t,isChildEvent:function(e){return void 0!==e.action&&(Array.isArray(e.action.id)?L(e.action.id,s):e.action.id===s)}}),d=0,h=[],p=new ef;function f(e){0===d&&((d=1,a=e)?u.close(a-e2()):u.remove(),c.stop(),p.notify())}return{event:o,stop:f,stopObservable:p,get hasError(){return c.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==a},getUserActivity:n,addFrustration:function(e){h.push(e)},startClocks:l,isStopped:function(){return 1===d||2===d},clone:function(){return e(t,r,n,i,o)},validate:function(e){if(f(),1===d){var r,n=c.eventCounts,u=n.resourceCount,p=n.errorCount,m=n.longTaskCount,g=V({type:"click",duration:a&&(r=l.timeStamp,a-r),startClocks:l,id:s,frustrationTypes:h,counts:{resourceCount:u,errorCount:p,longTaskCount:m},events:null!=e?e:[o],event:o},i);t.notify(0,g),d=2}},discard:function(){f(),d=2}}}(s,u,v,m,g)),k=(b=function(e){e.hadActivity&&e.end0)||(t=n[n.length-1].event,r=e.event,t.target===r.target&&100>=Math.sqrt(Math.pow(t.clientX-r.clientX,2)+Math.pow(t.clientY-r.clientY,2))&&t.timeStamp-r.timeStamp<=1e3)?(o(e),!0):(s(),!1))},stop:function(){s()}}}(e,function(e){(function(e,t){if(function(e){if(e.some(function(e){return e.getUserActivity().selection||e.getUserActivity().scroll}))return!1;for(var t=0;t0){var e=Math.max.apply(Math,u);ek&&(k=t,i=!0),n>x&&(x=n,_=eZ()-p.relative,i=!0),i&&b({maxDepth:Math.min(k,x),maxDepthScrollTop:r,maxScrollHeight:x,maxScrollHeightTime:_})}),{stop:function(){return S.unsubscribe()}}).stop,C=function(e,t,r){if(!(rx(d.LAYOUT_SHIFT)&&"WeakRef"in window))return{stop:ee};var n,i,o,a,s,l,u=0;r({value:0});var c=(o=0,a=0,{update:function(e){var t;return void 0===n||e.startTime-i>=1e3||e.startTime-n>=5e3?(n=i=e.startTime,a=o=e.value,t=!0):(o+=e.value,i=e.startTime,(t=e.value>a)&&(a=e.value)),{cumulatedValue:o,isMaxValue:t}}}),h=rk(e,{type:d.LAYOUT_SHIFT,buffered:!0}).subscribe(function(n){for(var i=0;iu){u=d;var h=null==s?void 0:s.deref();r({value:eY(u,4),targetSelector:h&&r5(h,e.actionNameAttribute),time:l})}}}});return{stop:function(){h.unsubscribe()}}}(n,p.relative,function(e){f.cumulativeLayoutShift=e,ex()}).stop,j=(A=function(e,t,r){if(!(rx(d.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:ee,stop:ee};var n,i,o,a,s=("interactionCount"in performance||g||(g=new window.PerformanceObserver(N(function(e){e.getEntries().forEach(function(e){e.interactionId&&(nx=Math.min(nx,e.interactionId),nk=((n_=Math.max(n_,e.interactionId))-nx)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),n="initial_load"===r?0:nS(),i={stopped:!1},{getViewInteractionCount:function(){return i.stopped?i.interactionCount:nS()-n},stopViewInteractionCount:function(){i={stopped:!0,interactionCount:nS()-n}}}),l=s.getViewInteractionCount,u=s.stopViewInteractionCount,c=1/0,h=function(e){var t=[];function r(){t.sort(function(e,t){return t.duration-e.duration}).splice(10)}return{process:function(e){var n=t.findIndex(function(t){return e.interactionId===t.interactionId}),i=t[t.length-1];-1!==n?e.duration>t[n].duration&&(t[n]=e,r()):(t.length<10||e.duration>i.duration)&&(t.push(e),r())},estimateP98Interaction:function(){var r=Math.min(t.length-1,Math.floor(e()/50));return t[r]}}}(l),p=-1;function f(r){for(var n=0;n=t&&i.startTime<=c&&h.process(i)}var s=h.estimateP98Interaction();s&&s.duration!==p&&(p=s.duration,a=s.startTime-t,o=s.target&&rT(s.target)?r5(s.target,e.actionNameAttribute):void 0)}var m=rk(e,{type:d.FIRST_INPUT,buffered:!0}).subscribe(f),v=rk(e,{type:d.EVENT,durationThreshold:40,buffered:!0}).subscribe(f);return{getInteractionToNextPaint:function(){return p>=0?{value:Math.min(p,6e4),targetSelector:o,time:a}:l()?{value:0}:void 0},setViewEnd:function(e){c=e,u()},stop:function(){v.unsubscribe(),m.unsubscribe()}}}(n,p.relative,o)).stop,O=A.getInteractionToNextPaint,{stop:function(){v(),C(),E()},stopINPTracking:j,setLoadEvent:y,setViewEnd:A.setViewEnd,getCommonViewMetrics:function(){return f.interactionToNextPaint=O(),f}}),eE=eS.setLoadEvent,eC=eS.setViewEnd,eD=eS.stop,eA=eS.stopINPTracking,ej=eS.getCommonViewMetrics,eO="initial_load"===o?(T={},M=(P=function(e){eE(e.loadEvent),T.navigationTimings=e,ex()},void 0===R&&(R=nm),u=function(){var e=R();e.loadEventEnd<=0||P({domComplete:e.domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:e.responseStart>=0&&e.responseStart<=eZ()?e.responseStart:void 0})},h=nh(n,"complete",function(){c=K(function(){return u()})}).stop,{stop:function(){h(),X(c)}}).stop,F=nw(n),L=(I=function(e){T.firstContentfulPaint=e,ex()},{stop:rk(n,{type:d.PAINT,buffered:!0}).subscribe(function(e){var t=z(e,function(e){return"first-contentful-paint"===e.name&&e.startTime=0;r-=1){var n=e[r];if(t(n,r,e))return n}}(e,function(e){return e.entryType===d.LARGEST_CONTENTFUL_PAINT&&e.startTimeV});if(t){var r=void 0;t.element&&(r=r5(t.element,n.actionNameAttribute)),U({value:t.startTime,targetSelector:r}),V=t.size}}),{stop:function(){H(),$.unsubscribe()}}).stop,et=(Y=function(e){T.firstInput=e,ex()},G=rk(n,{type:d.FIRST_INPUT,buffered:!0}).subscribe(function(e){var t=z(e,function(e){return e.startTime=0?i:0,time:t.startTime,targetSelector:o})}}),{stop:function(){G.unsubscribe()}}).stop,{stop:function(){M(),L(),W(),et(),F.stop()},initialViewMetrics:T}):{stop:ee,initialViewMetrics:{}},eT=eO.stop,eP=eO.initialViewMetrics,eR={stop:(er=rw({lifeCycle:e,isChildEvent:function(e){return e.view.id===eu},onChange:ex})).stop,eventCounts:er.eventCounts},eM=eR.stop,eN=eR.eventCounts,eF=J(eI,3e5);function eI(){e_(),eh+=1;var t=void 0===ei?eQ():ei.timeStamp;e.notify(3,{customTimings:ed,documentVersion:eh,id:eu,name:eo,service:ea,version:es,context:em.getContext(),loadingType:o,location:ep,startClocks:a,commonViewMetrics:ej(),initialViewMetrics:eP,duration:t-a.timeStamp,isActive:void 0===ei,sessionIsActive:ev,eventCounts:eN})}return eI(),em.changeObservable.subscribe(eI),{get name(){return eo},service:ea,version:es,contextManager:em,stopObservable:ec,end:function(t){var r,n,i=this;void 0===t&&(t={}),ei||(ei=null!==(r=t.endClocks)&&void 0!==r?r:e0(),ev=null===(n=t.sessionIsActive)||void 0===n||n,e.notify(4,{endClocks:ei}),e.notify(5,{endClocks:ei}),Q(eF),eC(ei.relative),eD(),eI(),K(function(){i.stop()},3e5))},stop:function(){eT(),eM(),eA(),ec.notify()},addTiming:function(e,t){if(!ei){var r,n=t<31536e6?t:t-a.timeStamp;ed[(r=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==e&&D.warn("Invalid timing name: ".concat(e,", sanitized to: ").concat(r)),r]=n,ex()}},updateViewName:function(e){eq(t.UPDATE_VIEW_NAME)&&(eo=e,eI())}}}(r,n,i,e,o,a,s);return u.add(l),l.stopObservable.subscribe(function(){u.delete(l)}),l}return r.subscribe(9,function(){c=h("route_change",void 0,{name:c.name,service:c.service,version:c.version,context:c.contextManager.getContext()})}),r.subscribe(8,function(){c.end({sessionIsActive:!1})}),r.subscribe(10,function(e){e.reason===t2.UNLOADING&&c.end()}),a&&(l=o.subscribe(function(e){var t,r,n;t=e.oldLocation,r=e.newLocation,t.pathname===r.pathname&&(""!==(n=r.hash.substring(1))&&document.getElementById(n)||nj(r.hash)===nj(t.hash))||(c.end(),c=h("route_change"))})),{addTiming:function(e,t){void 0===t&&(t=eQ()),c.addTiming(e,t)},startView:function(e,t){c.end({endClocks:t}),c=h("route_change",t,e)},setViewContext:function(e){c.contextManager.setContext(e)},setViewContextProperty:function(e,t){c.contextManager.setContextProperty(e,t)},updateViewName:function(e){c.updateViewName(e)},stop:function(){l&&l.unsubscribe(),c.end(),u.forEach(function(e){return e.stop()})}}}(t$,T,ev,r,ew,!r.trackViewsManually,a)),eO=ej.addTiming,eT=ej.startView,eP=ej.updateViewName,eI=ej.setViewContext,eV=ej.setViewContextProperty,e$=ej.stop;O.push(e$);var eG=(void 0===tW&&(tW=ng),T.subscribe(7,function(e){var t=function(e,t,r){var n=function(e){if(performance&&"getEntriesByName"in performance){var t=performance.getEntriesByName(e.url,"resource");if(t.length&&"toJSON"in t[0]){var r=t.filter(function(e){return!nc.has(e)}).filter(function(e){return rc(e)&&rd(e)}).filter(function(t){var r,n;return r=e.startClocks.relative,n=nd({startTime:e.startClocks.relative,duration:e.duration}),t.startTime>=r-1&&nd(t)<=n+1});if(1===r.length)return nc.add(r[0]),r[0].toJSON()}}}(e),i=n?eK(n.startTime):e.startClocks,o=function(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toDecimalString(),trace_id:e.traceId.toDecimalString(),rule_psr:nb(t)}}}(e,t);if(t.trackResources||o){var a,s="xhr"===e.type?"xhr":"fetch",l=n?ny(n):void 0,u=(a=e.duration,r.wasInPageStateDuringPeriod("frozen",i.relative,a)?void 0:eX(a)),c=ec({date:i.timeStamp,resource:{id:ts(),type:s,duration:u,method:e.method,status_code:e.status,url:rm(e.url)?rg(e.url):e.url},type:"resource",_dd:{discarded:!t.trackResources}},o,l);return{startTime:i.relative,rawRumEvent:c,domainContext:{performanceEntry:n,xhr:e.xhr,response:e.response,requestInput:e.input,requestInit:e.init,error:e.error,isAborted:e.isAborted,handlingStack:e.handlingStack}}}}(e,r,ek);t&&T.notify(11,t)}),tY=rk(r,{type:d.RESOURCE,buffered:!0}).subscribe(function(e){for(var t=0;tr.bytesLimit}t(void 0,e,a)}(function e(){n.read().then(N(function(t){if(t.done){a();return}r.collectStreamBody&&i.push(t.value),(o+=t.value.length)>r.bytesLimit?a():e()}),N(function(e){return t(e)}))})()}(i.body,function(){var r;t((r=e.startClocks.timeStamp,eQ()-r))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):t((n=e.startClocks.timeStamp,eQ()-n))}});var tZ=function(e,t,r){function n(r){if(!t.wasInPageStateDuringPeriod("frozen",r.startClocks.relative,r.duration)){var n;e.notify(11,(n={date:r.startClocks.timeStamp,vital:{id:ts(),type:r.type,name:r.name,duration:eX(r.duration),description:r.description},type:"vital"},n._dd={vital:{computed_value:!0}},{rawRumEvent:n,startTime:r.startClocks.relative,customerContext:r.context,domainContext:{}}))}}return{addDurationVital:n,startDurationVital:function(e,t){return void 0===t&&(t={}),td(r,e,t)},stopDurationVital:function(e,t){void 0===t&&(t={}),th(n,r,e,t)}}}(T,ek,h),t0=(j=r.applicationId,{get:function(e){var t=eS.findView(e),r=eE.findUrl(e),n=H.findTrackedSession(e);if(n&&t&&r){var i=eC.findActionId(e);return{application_id:j,session_id:n.id,user_action:i?{id:i}:void 0,view:{id:t.id,name:t.name,referrer:r.referrer,url:r.url}}}}});return{addAction:eD,addError:tQ,addTiming:eO,addFeatureFlagEvaluation:M.addFeatureFlagEvaluation,startView:eT,setViewContext:eI,setViewContextProperty:eV,updateViewName:eP,lifeCycle:T,viewHistory:eS,session:H,stopSession:function(){return H.expire()},getInternalContext:t0.get,startDurationVital:tZ.startDurationVital,stopDurationVital:tZ.stopDurationVital,addDurationVital:tZ.addDurationVital,stop:function(){O.forEach(function(e){return e()})}}},function(e,t){if(tm()&&!tf("records")||!iE())return{start:ee,stop:ee,getReplayStats:function(){},onRumStart:ee,isRecording:function(){return!1},getSessionReplayLink:function(){}};var r={status:1},n=function(){r={status:1}},i=function(){r={status:0}},o=ee;return{start:function(e){return n(e)},stop:function(){return i()},getSessionReplayLink:function(){return o()},onRumStart:function(t,a,s,l,u){var c;a.startSessionReplayRecordingManually&&(r={status:0}),t.subscribe(8,function(){(2===r.status||3===r.status)&&(i(),r={status:1})}),t.subscribe(10,function(e){e.reason===t2.UNLOADING&&i()}),t.subscribe(9,function(){1===r.status&&n()}),n=function(n){var o=s.findTrackedSession();if(!o||0===o.sessionReplay&&(!n||!n.force)){r={status:1};return}2!==r.status&&3!==r.status&&(r={status:2},nh(a,"interactive",function(){if(2===r.status){var n=(!c&&(u||(u=ij(a,"Datadog Session Replay",function(){i()},void 0)),u&&(c=iC(a,u,1))),c);if(!n){r={status:0};return}r={status:3,stopRecording:e(t,a,s,l,n).stop}}}),n&&n.force&&0===o.sessionReplay&&s.setForcedReplay())},i=function(){0!==r.status&&(3===r.status&&r.stopRecording(),r={status:0})},o=function(){var e,t,n,i,o,u,c,d,h,p,f,m,g;return e=0!==r.status,f=t=s.findTrackedSession(),n=iE()?f?0===f.sessionReplay?"incorrect-session-plan":e?void 0:"replay-not-started":"rum-not-tracked":"browser-not-supported",o=(i={viewContext:l.findView(),errorType:n,session:t}).session,u=i.viewContext,c=i.errorType,d=o?o.id:"no-session-id",h=[],void 0!==c&&h.push("error-type=".concat(c)),u&&(h.push("seed=".concat(u.id)),h.push("from=".concat(u.startClocks.timeStamp))),m=a.site,g=a.subdomain||function(e){switch(e.site){case eV:case"datadoghq.eu":return"app";case eH:return"dd";default:return}}(a),p="https://".concat(g?"".concat(g,"."):"").concat(m),"".concat(p).concat("/rum/replay/sessions/".concat(d),"?").concat(h.join("&"))},1===r.status&&n()},isRecording:function(){return 3===iA.status&&3===r.status},getReplayStats:function(e){return 3===iA.status?null==k?void 0:k.get(e):void 0}}}(function(e,t,r,n,i,o){var a,s=[],l=o||nL(t,t.sessionReplayEndpointBuilder,6e4,function(t){e.notify(13,{error:t}),tr("Error reported to customer",{"error.message":t.message})});if(tm())a=(u=tp(),{addRecord:function(e){var t=n.findView();u.send("record",e,t.id)}}).addRecord;else{var u,c=function(e,t,r,n){var i={status:0,nextSegmentCreationReason:"init"},o=e.subscribe(2,function(){s("view_change")}).unsubscribe,a=e.subscribe(10,function(e){s(e.reason)}).unsubscribe;function s(e){1===i.status&&(i.segment.flush(function(t,n){var i,o,a,s,l=(i=n.output,o=n.rawBytesCount,(a=new FormData).append("segment",new Blob([i],{type:"application/octet-stream"}),"".concat(t.session.id,"-").concat(t.start)),s=JSON.stringify(V({raw_segment_size:o,compressed_segment_size:i.byteLength},t)),a.append("event",new Blob([s],{type:"application/json"})),{data:a,bytesCount:i.byteLength});L(U(t2),e)?r.sendOnExit(l):r.send(l)}),X(i.expirationTimeoutId)),i="stop"!==e?{status:0,nextSegmentCreationReason:e}:{status:2}}return{addRecord:function(e){if(2!==i.status){if(0===i.status){var r,o,a,l,u,c,d,h=t();if(!h)return;i={status:1,segment:(o=(r={encoder:n,context:h,creationReason:i.nextSegmentCreationReason}).context,a=r.creationReason,l=r.encoder,u=0,d=V({start:1/0,end:-1/0,creation_reason:a,records_count:0,has_full_snapshot:!1,index_in_view:nJ(c=o.view.id).segments_count,source:"browser"},o),nJ(c).segments_count+=1,{addRecord:function(e,t){d.start=Math.min(d.start,e.timestamp),d.end=Math.max(d.end,e.timestamp),d.records_count+=1,d.has_full_snapshot||(d.has_full_snapshot=e.type===n9.FullSnapshot);var r=l.isEmpty?'{"records":[':",";l.write(r+JSON.stringify(e),function(e){t(u+=e)})},flush:function(e){if(l.isEmpty)throw Error("Empty segment flushed");l.write("],".concat(JSON.stringify(d).slice(1),"\n")),l.finish(function(t){var r,n;r=d.view.id,n=t.rawBytesCount,nJ(r).segments_total_raw_size+=n,e(d,t)})}}),expirationTimeoutId:K(function(){s("segment_duration_limit")},3e4)}}i.segment.addRecord(e,function(e){e>6e4&&s("segment_bytes_limit")})}},stop:function(){s("stop"),o(),a()}}}(e,function(){return function(e,t,r){var n=t.findTrackedSession(),i=r.findView();if(n&&i)return{application:{id:e},session:{id:n.id},view:{id:i.id}}}(t.applicationId,r,n)},l,i);a=c.addRecord,s.push(c.stop)}var d=function(e){var t,r,n,i,o,a,s,l,u,c,d,h,p,f,m=e.emit,g=e.configuration,v=e.lifeCycle;if(!m)throw Error("emit function is required");var y=function(t){var r;m(t),e3("record",{record:t}),r=e.viewHistory.findView().id,nJ(r).records_count+=1},b=(t=new WeakMap,{set:function(e,r){(e!==document||document.scrollingElement)&&t.set(e===document?document.scrollingElement:e,r)},get:function(e){return t.get(e)},has:function(e){return t.has(e)}}),w=iS(g,y,b),k=(r=x,(n=function(e){return e.forEach(function(e){return y(e)})})((i=function(e,t){void 0===e&&(e=eQ()),void 0===t&&(t={status:0,elementsScrollPositions:b,shadowRootsController:w});var r=nA(),n=r.width,i=[{data:{height:r.height,href:window.location.href,width:n},type:n9.Meta,timestamp:e},{data:{has_focus:document.hasFocus()},type:n9.Focus,timestamp:e},{data:{node:iu(document,{serializationContext:t,parentNodePrivacyLevel:g.defaultPrivacyLevel,configuration:g}),initialOffset:{left:nE(),top:nC()}},type:n9.FullSnapshot,timestamp:e}];return window.visualViewport&&i.push({data:ig(window.visualViewport),type:n9.VisualViewport,timestamp:e}),i})()),{stop:v.subscribe(2,function(e){r(),n(i(e.startClocks.timeStamp,{shadowRootsController:w,status:1,elementsScrollPositions:b}))}).unsubscribe}).stop;function x(){w.flush(),S.flush()}var _=(o=new WeakMap,a=1,{getIdForEvent:function(e){return o.has(e)||o.set(e,a++),o.get(e)}}),S=i_(y,g,w,document),E=[S,(l=(s=Z(function(e){var t=ip(e);if(nZ(t)){var r=iy(e);if(!r)return;var n={id:n0(t),timeOffset:0,x:r.x,y:r.y};y(iv(ih(e)?ie.TouchMove:ie.MouseMove,{positions:[n]}))}},50,{trailing:!1})).throttled,u=s.cancel,c=eb(g,document,["mousemove","touchmove"],l,{capture:!0,passive:!0}).stop,{stop:function(){c(),u()}}),eb(g,document,Object.keys(ib),function(e){var t,r=ip(e);if(rz(r,g.defaultPrivacyLevel)!==rF.HIDDEN&&nZ(r)){var n=n0(r),i=ib[e.type];if(i!==it.Blur&&i!==it.Focus){var o=iy(e);if(!o)return;t={id:n,type:i,x:o.x,y:o.y}}else t={id:n,type:i};y(V({id:_.getIdForEvent(e)},iv(ie.MouseInteraction,t)))}},{capture:!0,passive:!0}),iw(g,y,b,document),(d=nD(g).subscribe(function(e){y(iv(ie.ViewportResize,e))}),{stop:function(){d.unsubscribe()}}),ix(g,y),eb(g,document,["play","pause"],function(e){var t=ip(e);t&&rz(t,g.defaultPrivacyLevel)!==rF.HIDDEN&&nZ(t)&&y(iv(ie.MediaInteraction,{id:n0(t),type:"play"===e.type?ir.Play:ir.Pause}))},{capture:!0,passive:!0}),function(e){function t(e,t){e&&nZ(e.ownerNode)&&t(n0(e.ownerNode))}var r=[tg(CSSStyleSheet.prototype,"insertRule",function(r){var n=r.target,i=r.parameters,o=i[0],a=i[1];t(n,function(t){return e(iv(ie.StyleSheetRule,{id:t,adds:[{rule:o,index:a}]}))})}),tg(CSSStyleSheet.prototype,"deleteRule",function(r){var n=r.target,i=r.parameters[0];t(n,function(t){return e(iv(ie.StyleSheetRule,{id:t,removes:[{index:i}]}))})})];function n(n){r.push(tg(n.prototype,"insertRule",function(r){var n=r.target,i=r.parameters,o=i[0],a=i[1];t(n.parentStyleSheet,function(t){var r=ik(n);r&&(r.push(a||0),e(iv(ie.StyleSheetRule,{id:t,adds:[{rule:o,index:r}]})))})}),tg(n.prototype,"deleteRule",function(r){var n=r.target,i=r.parameters[0];t(n.parentStyleSheet,function(t){var r=ik(n);r&&(r.push(i),e(iv(ie.StyleSheetRule,{id:t,removes:[{index:r}]})))})}))}return"undefined"!=typeof CSSGroupingRule?n(CSSGroupingRule):(n(CSSMediaRule),n(CSSSupportsRule)),{stop:function(){r.forEach(function(e){return e.stop()})}}}(y),eb(g,window,["focus","blur"],function(){y({data:{has_focus:document.hasFocus()},type:n9.Focus,timestamp:eQ()})}),function(e,t){var r=window.visualViewport;if(!r)return{stop:ee};var n=Z(function(){t({data:ig(r),type:n9.VisualViewport,timestamp:eQ()})},200,{trailing:!1}),i=n.throttled,o=n.cancel,a=eb(e,r,["resize","scroll"],i,{capture:!0,passive:!0}).stop;return{stop:function(){a(),o()}}}(g,y),(h=v.subscribe(11,function(e){var t,r;"action"===e.rawRumEvent.type&&"click"===e.rawRumEvent.action.type&&(null===(r=null===(t=e.rawRumEvent.action.frustration)||void 0===t?void 0:t.type)||void 0===r?void 0:r.length)&&"events"in e.domainContext&&e.domainContext.events&&e.domainContext.events.length&&y({timestamp:e.rawRumEvent.date,type:n9.FrustrationRecord,data:{frustrationTypes:e.rawRumEvent.action.frustration.type,recordIds:e.domainContext.events.map(function(e){return _.getIdForEvent(e)})}})}),{stop:function(){h.unsubscribe()}}),(p=function(e){x(),y(e)},f=v.subscribe(4,function(){p({timestamp:eQ(),type:n9.ViewEnd})}),{stop:function(){f.unsubscribe()}})];return{stop:function(){w.stop(),E.forEach(function(e){return e.stop()}),k()},flushMutations:x,shadowRootsController:w}}({emit:a,configuration:t,lifeCycle:e,viewHistory:n}).stop;return s.push(d),{stop:function(){s.forEach(function(e){return e()})}}}),{startDeflateWorker:ij,createDeflateEncoder:iC});!function(e,t,r){var n=e[t];n&&!n.q&&n.version&&D.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=r,n&&n.q&&n.q.forEach(function(e){return T(e,"onReady callback threw an error:")()})}($(),"DD_RUM",iT)},74672:(e,t,r)=>{"use strict";r.d(t,{G8:()=>O,Gv:()=>c,Kg:()=>h,Mu:()=>T,Nn:()=>z,Om:()=>l,SL:()=>k,Tn:()=>p,W2:()=>B,Z3:()=>g,_4:()=>a,b0:()=>u,cC:()=>N,cM:()=>v,cy:()=>d,cz:()=>j,ft:()=>y,hg:()=>b,iQ:()=>I,jc:()=>C,l$:()=>R,nB:()=>F,nF:()=>M,rB:()=>P,tB:()=>w,u0:()=>A,uU:()=>S,vy:()=>L,xD:()=>E,xi:()=>_});var n="undefined",i=typeof window!==n,o=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],a=1e-7,s={cm:function(e){return 96*e/2.54},mm:function(e){return 96*e/254},in:function(e){return 96*e},pt:function(e){return 96*e/72},pc:function(e){return 96*e/6},"%":function(e,t){return e*t/100},vw:function(e,t){return void 0===t&&(t=window.innerWidth),e/100*t},vh:function(e,t){return void 0===t&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return void 0===t&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return void 0===t&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function l(e,t,r,n){return(e*n+t*r)/(r+n)}function u(e){return typeof e===n}function c(e){return e&&"object"==typeof e}function d(e){return Array.isArray(e)}function h(e){return"string"==typeof e}function p(e){return"function"==typeof e}function f(e,t,r){if(!e.ignore)return null;var n=t.slice(Math.max(r-3,0),r+3).join("");return new RegExp(e.ignore).exec(n)}function m(e,t){var r,n=h(t)?{separator:t}:t,i=n.separator,a=void 0===i?",":i,s=n.isSeparateFirst,l=n.isSeparateOnlyOpenClose,u=n.isSeparateOpenClose,c=void 0===u?l:u,d=n.openCloseCharacters,p=void 0===d?o:d,m=RegExp("(\\s*"+a+"\\s*|"+p.map(function(e){var t=e.open,r=e.close;return t===r?t:t+"|"+r}).join("|")+"|\\s+)","g"),g=e.split(m).filter(Boolean),v=g.length,y=[],b=[];function w(){return!!b.length&&(y.push(b.join("")),b=[],!0)}for(var k=0;k-1?e[n]:r}var _=function(){var e=w(),t=i&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame);return t?t.bind(window):function(t){var r=w();return window.setTimeout(function(){t(r-e)},1e3/60)}}(),S=function(){var e=i&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return e?e.bind(window):function(e){clearTimeout(e)}}();function E(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in t)t.push(r);return t}function C(e,t){var r=b(e),n=r.value,i=r.unit;if(c(t)){var o=t[i];if(o){if(p(o))return o(n);if(s[i])return s[i](n,o)}}else if("%"===i)return n*t/100;return s[i]?s[i](n):n}function D(e,t,r){return[[M(t[0],a),M(t[0]*e[1]/e[0],a)],[M(t[1]*e[0]/e[1],a),M(t[1],a)]].filter(function(e){return e.every(function(e,n){return r?e<=t[n]:e>=t[n]})})[0]||e}function A(e,t,r,n){if(!n)return e.map(function(e,n){return Math.max(t[n],Math.min(e,r[n]))});var i=e[0],o=e[1],a=D(e,t,!1),s=a[0],l=a[1],u=D(e,r,!0),c=u[0],d=u[1];return ic||o>d)&&(i=c,o=d),[i,o]}function j(e){for(var t=e.length,r=0,n=t-1;n>=0;--n)r+=e[n];return r}function O(e){for(var t=e.length,r=0,n=t-1;n>=0;--n)r+=e[n];return t?r/t:0}function T(e,t){var r=t[0]-e[0],n=Math.atan2(t[1]-e[1],r);return n>=0?n:n+2*Math.PI}function P(e){var t=[0,1].map(function(t){return O(e.map(function(e){return e[t]}))}),r=T(t,e[0]),n=T(t,e[1]);return rn&&n-r<-Math.PI?1:-1}function R(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function M(e,t){return t?Math.round(e/t)*t:e}function N(e,t){return e.forEach(function(r,n){e[n]=M(e[n],t)}),e}function F(e,t){return e.classList?e.classList.contains(t):!!e.className.match(RegExp("(\\s|^)"+t+"(\\s|$)"))}function I(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function L(e,t){if(e.classList)e.classList.remove(t);else{var r=RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(r," ")}}function B(e,t,r,n){e.addEventListener(t,r,n)}function z(e,t,r,n){e.removeEventListener(t,r,n)}},86871:(e,t,r)=>{"use strict";function n(e,t){for(var r=e.length,n=0;nm});var c=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],d=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],h=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],p=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],f=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];let m=function(e){return void 0===e&&function(){if("undefined"==typeof navigator||!navigator||!navigator.userAgentData)return!1;var e=navigator.userAgentData,t=e.brands||e.uaList;return!!(t&&t.length)}()?function(e){var t=navigator.userAgentData,r=(t.uaList||t.brands).slice(),o=t.mobile||!1,s=r[0],m=(t.platform||navigator.platform).toLowerCase(),g={name:s.brand,version:s.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!l(p,r).brand},v={name:"unknown",version:"-1",majorVersion:-1};g.webkit=!g.chromium&&n(h,function(e){return u(r,e)});var y=l(d,r);if(g.chromium=!!y.brand,g.chromiumVersion=y.version,!g.chromium){var b=l(h,r);g.webkit=!!b.brand,g.webkitVersion=b.version}var w=i(f,function(e){return RegExp(""+e.test,"g").exec(m)});v.name=w?w.id:"";var k=l(c,r);return k.brand&&(g.name=k.brand,g.version=e?e.uaFullVersion:k.version),g.webkit&&(v.name=o?"ios":"mac"),"ios"===v.name&&g.webview&&(g.version="-1"),v.version=a(v.version),g.version=a(g.version),v.majorVersion=parseInt(v.version,10),g.majorVersion=parseInt(g.version,10),{browser:g,os:v,isMobile:o,isHints:!0}}():function(e){var t=function(e){var t=e;if(void 0===t){if("undefined"==typeof navigator||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}(e),r=!!/mobi/g.exec(t),n={name:"unknown",version:"-1",majorVersion:-1,webview:!!s(p,t).preset,chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},i={name:"unknown",version:"-1",majorVersion:-1},o=s(c,t),a=o.preset,l=o.version,u=s(f,t),m=u.preset,g=u.version,v=s(d,t);if(n.chromium=!!v.preset,n.chromiumVersion=v.version,!n.chromium){var y=s(h,t);n.webkit=!!y.preset,n.webkitVersion=y.version}return m&&(i.name=m.id,i.version=g,i.majorVersion=parseInt(g,10)),a&&(n.name=a.id,n.version=l,n.webview&&"ios"===i.name&&"safari"!==n.name&&(n.webview=!1)),n.majorVersion=parseInt(n.version,10),{browser:n,os:i,isMobile:r,isHints:!1}}(e)}},91996:(e,t,r)=>{"use strict";r.d(t,{A:()=>p,U:()=>h});var n=function(){function e(){this.keys=[],this.values=[]}var t=e.prototype;return t.get=function(e){return this.values[this.keys.indexOf(e)]},t.set=function(e,t){var r=this.keys,n=this.values,i=r.indexOf(e),o=-1===i?r.length:i;r[o]=e,n[o]=t},e}(),i=function(){function e(){this.object={}}var t=e.prototype;return t.get=function(e){return this.object[e]},t.set=function(e,t){this.object[e]=t},e}(),o="function"==typeof Map,a=function(){function e(){}var t=e.prototype;return t.connect=function(e,t){this.prev=e,this.next=t,e&&(e.next=this),t&&(t.prev=this)},t.disconnect=function(){var e=this.prev,t=this.next;e&&(e.next=t),t&&(t.prev=e)},t.getIndex=function(){for(var e=this,t=-1;e;)e=e.prev,++t;return t},e}(),s=function(){function e(e,t,r,n,i,o,a,s){this.prevList=e,this.list=t,this.added=r,this.removed=n,this.changed=i,this.maintained=o,this.changedBeforeAdded=a,this.fixed=s}var t=e.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var e,t,r,n,i=(e=this.changedBeforeAdded,t=this.fixed,r=[],n=[],e.forEach(function(e){var t=e[0],i=e[1],o=new a;r[t]=o,n[i]=o}),r.forEach(function(e,t){e.connect(r[t-1])}),e.filter(function(e,r){return!t[r]}).map(function(e,t){var i=e[0],o=e[1];if(i===o)return[0,0];var a=r[i],s=n[o-1],l=a.getIndex();return a.disconnect(),s?a.connect(s,s.next):a.connect(void 0,r[0]),[l,a.getIndex()]})),o=this.changed,s=[];this.cacheOrdered=i.filter(function(e,t){var r=e[0],n=e[1],i=o[t],a=i[0],l=i[1];if(r!==n)return s.push([a,l]),!0}),this.cachePureChanged=s},e}();function l(e,t,r){var a=o?Map:r?i:n,l=r||function(e){return e},u=[],c=[],d=[],h=e.map(l),p=t.map(l),f=new a,m=new a,g=[],v=[],y={},b=[],w=0,k=0;return h.forEach(function(e,t){f.set(e,t)}),p.forEach(function(e,t){m.set(e,t)}),h.forEach(function(e,t){var r=m.get(e);void 0===r?(++k,c.push(t)):y[r]=k}),p.forEach(function(e,t){var r=f.get(e);void 0===r?(u.push(t),++w):(d.push([r,t]),k=y[t]||0,g.push([r-k,t-w]),v.push(t===r),r!==t&&b.push([r,t]))}),c.reverse(),new s(e,t,u,c,b,d,g,v)}var u=function(){function e(e,t){void 0===e&&(e=[]),this.findKeyCallback=t,this.list=[].slice.call(e)}return e.prototype.update=function(e){var t=[].slice.call(e),r=l(this.list,t,this.findKeyCallback);return this.list=t,r},e}(),c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},d="function"==typeof Map?void 0:function(){var e=0;return function(t){return t.__DIFF_KEY__||(t.__DIFF_KEY__=++e)}}();function h(e,t){return l(e,t,d)}let p=function(e){function t(t){return void 0===t&&(t=[]),e.call(this,t,d)||this}return!function(e,t){function r(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(u)},30150:(e,t,r)=>{"use strict";r.d(t,{A:()=>V});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?m[k]+" "+x:s(x,/&\f/g,m[k])).trim())&&(d[w++]=_);return b(e,t,r,0===o?O:u,d,h,p)}function F(e,t,r,n){return b(e,t,r,T,c(e,0,n),c(e,n+1,-1),n)}var I=function(e,t,r){for(var n=0,i=0;n=i,i=x(),38===n&&12===i&&(t[r]=1),!_(i);)k();return c(y,e,g)},L=function(e,t){var r=-1,n=44;do switch(_(n)){case 0:38===n&&12===x()&&(t[r]=1),e[r]+=I(g-1,t,r);break;case 2:e[r]+=E(n);break;case 4:if(44===n){e[++r]=58===x()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=o(n)}while(n=k());return e},B=function(e,t){var r;return r=L(S(e),t),y="",r},z=new WeakMap,U=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||z.get(r))&&!n){z.set(e,!0);for(var i=[],o=B(t,i),a=r.props,s=0,l=0;s-1&&!e.return)switch(e.type){case T:e.return=function e(t,r){switch(45^u(t,0)?(((r<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return A+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return A+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return A+t+D+t+C+t+t;case 6828:case 4268:return A+t+C+t+t;case 6165:return A+t+C+"flex-"+t+t;case 5187:return A+t+s(t,/(\w+).+(:[^]+)/,A+"box-$1$2"+C+"flex-$1$2")+t;case 5443:return A+t+C+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return A+t+C+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return A+t+C+s(t,"shrink","negative")+t;case 5292:return A+t+C+s(t,"basis","preferred-size")+t;case 6060:return A+"box-"+s(t,"-grow","")+A+t+C+s(t,"grow","positive")+t;case 4554:return A+s(t,/([^-])(transform)/g,"$1"+A+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,A+"$1"),/(image-set)/,A+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,A+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,A+"box-pack:$3"+C+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+A+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,A+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-r>6)switch(u(t,r+1)){case 109:if(45!==u(t,r+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+A+"$2-$3$1"+D+(108==u(t,r+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(s(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==u(t,r+1))break;case 6444:switch(u(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return s(t,":",":"+A)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+A+(45===u(t,14)?"inline-":"")+"box$3$1"+A+"$2$3$1"+C+"$2box$3")+t}break;case 5936:switch(u(t,r+11)){case 114:return A+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return A+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return A+t+C+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return A+t+C+t+t}return t}(e.value,e.length);break;case P:return R([w(e,{value:s(e.value,"@","@"+A)})],n);case O:if(e.length){var i,o;return i=e.props,o=function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return R([w(e,{props:[s(t,/:(read-\w+)/,":"+D+"$1")]})],n);case"::placeholder":return R([w(e,{props:[s(t,/:(plac\w+)/,":"+A+"input-$1")]}),w(e,{props:[s(t,/:(plac\w+)/,":"+D+"$1")]}),w(e,{props:[s(t,/:(plac\w+)/,C+"input-$1")]})],n)}return""},i.map(o).join("")}}}];let V=function(e){var t,r,i,a,m,w,C=e.key;if("css"===C){var D=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(D,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var A=e.stylisPlugins||H,O={},T=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+C+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r2||_(v)>3?"":" "}(M);break;case 92:$+=function(e,t){for(var r;--t&&k()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return r=g+(t<6&&32==x()&&32==k()),c(y,e,r)}(g-1,7);continue;case 47:switch(x()){case 42:case 47:h(b(D=function(e,t){for(;k();)if(e+v===57)break;else if(e+v===84&&47===x())break;return"/*"+c(y,t,g-1)+"*"+o(47===e?e:k())}(k(),g),r,n,j,o(v),c(D,2,-2),0),C);break;default:$+="/"}break;case 123*I:S[A++]=d($)*B;case 125*I:case 59:case 0:switch(z){case 0:case 125:L=0;case 59+O:R>0&&d($)-T&&h(R>32?F($+";",i,n,T-1):F(s($," ","")+";",i,n,T-2),C);break;case 59:$+=";";default:if(h(V=N($,r,n,A,O,a,S,U,q=[],H=[],T),m),123===z){if(0===O)e($,r,V,V,q,m,T,S,H);else switch(99===P&&110===u($,3)?100:P){case 100:case 109:case 115:e(t,V,V,i&&h(N(t,V,V,0,0,a,S,U,a,q=[],T),H),a,H,T,S,i?q:H);break;default:e($,V,V,V,[""],H,0,S,H)}}}A=O=R=0,I=B=1,U=$="",T=w;break;case 58:T=1+d($),R=M;default:if(I<1){if(123==z)--I;else if(125==z&&0==I++&&125==(v=g>0?u(y,--g):0,f--,10===v&&(f=1,p--),v))continue}switch($+=o(z),z*I){case 38:B=O>0?1:($+="\f",-1);break;case 44:S[A++]=(d($)-1)*B,B=1;break;case 64:45===x()&&($+=E(k())),P=x(),O=T=d(U=$+=function(e){for(;!_(x());)k();return c(y,e,g)}(g)),z++;break;case 45:45===M&&2==d($)&&(I=0)}}return m}("",null,null,null,[""],t=S(t=e),0,[0],t),y="",r),P)};m=function(e,t,r,n){w=r,I(e?e+"{"+t.styles+"}":t.styles),n&&(L.inserted[t.name]=!0)};var L={key:C,sheet:new n({key:C,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:O,registered:{},insert:m};return L.sheet.hydrate(T),L}},79284:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}},34556:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}},1424:(e,t,r)=>{"use strict";r.d(t,{T:()=>u,a:()=>d,w:()=>l});var n=r(14041),i=r(30150);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";r.d(t,{i7:()=>c,mL:()=>l});var n=r(14041);r(30150);var i=r(1424);r(75985);var o=r(85780),a=r(11914),s=r(16558),l=(0,i.w)(function(e,t){var r=e.styles,l=(0,a.J)([r],void 0,(0,n.useContext)(i.T)),u=(0,n.useRef)();return(0,s.i)(function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(n=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),u.current=[r,n],function(){r.flush()}},[t]),(0,s.i)(function(){var e=u.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==l.next&&(0,o.sk)(t,l.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",l,r,!1)},[t,l.name]),null});function u(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";r.d(t,{J:()=>m});var n,i=r(79284),o=r(84700),a=r(34556),s=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},d=(0,a.A)(function(e){return u(e)?e:e.replace(s,"-$&").toLowerCase()}),h=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(l,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===o.A[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)n={name:i.name,styles:i.styles,next:n},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i{"use strict";r.d(t,{A:()=>n});let n={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},16558:(e,t,r)=>{"use strict";r.d(t,{i:()=>s,s:()=>a});var n,i=r(14041),o=!!(n||(n=r.t(i,2))).useInsertionEffect&&(n||(n=r.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},85780:(e,t,r)=>{"use strict";function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}r.d(t,{Rk:()=>n,SF:()=>i,sk:()=>o});var i=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},o=function(e,t,r){i(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},10479:(e,t,r)=>{"use strict";function n(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}r.d(t,{V1:()=>n})},14912:(e,t,r)=>{"use strict";function n(e,t){var r=t&&t.cache?t.cache:l,n=t&&t.serializer?t.serializer:a;return(t&&t.strategy?t.strategy:function(e,t){var r,n,a=1===e.length?i:o;return r=t.cache.create(),n=t.serializer,a.bind(this,e,r,n)})(e,{cache:r,serializer:n})}function i(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),o=t.get(i);return void 0===o&&(o=e.call(this,n),t.set(i,o)),o}function o(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}r.d(t,{A:()=>n,W:()=>u});var a=function(){return JSON.stringify(arguments)};function s(){this.cache=Object.create(null)}s.prototype.get=function(e){return this.cache[e]},s.prototype.set=function(e,t){this.cache[e]=t};var l={create:function(){return new s}},u={variadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,o.bind(this,e,r,n)},monadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,i.bind(this,e,r,n)}}},78631:(e,t,r)=>{"use strict";r.d(t,{ZE:()=>i,Im:()=>c,tv:()=>h,Tu:()=>b,eW:()=>u,oF:()=>d,N1:()=>y,N6:()=>m,jA:()=>g,Jp:()=>f,xm:()=>v,Qh:()=>p,qg:()=>et});var n,i,o,a,s,l=function(){return(l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=Math.abs(e)},q=!0;try{var H=X("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");q=(null===(a=H.exec("a"))||void 0===a?void 0:a[0])==="a"}catch(e){q=!1}var V=N?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},$=F?String.fromCodePoint:function(){for(var e,t=[],r=0;ro;){if((e=t[o++])>1114111)throw RangeError(e+" is not a valid code point");n+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return n},W=I?Object.fromEntries:function(e){for(var t={},r=0;r=n)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},G=B?function(e){return e.trimStart()}:function(e){return e.replace(P,"")},K=z?function(e){return e.trimEnd()}:function(e){return e.replace(R,"")};function X(e,t){return new RegExp(e,t)}if(q){var J=X("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");s=function(e,t){var r;return J.lastIndex=t,null!==(r=J.exec(e)[1])&&void 0!==r?r:""}}else s=function(e,t){for(var r=[];;){var n,i=Y(e,t);if(void 0===i||ee(i)||(n=i)>=33&&n<=35||36===n||n>=37&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||n>=162&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||n>=8208&&n<=8213||n>=8214&&n<=8215||8216===n||8217===n||8218===n||n>=8219&&n<=8220||8221===n||8222===n||8223===n||n>=8224&&n<=8231||n>=8240&&n<=8248||8249===n||8250===n||n>=8251&&n<=8254||n>=8257&&n<=8259||8260===n||8261===n||8262===n||n>=8263&&n<=8273||8274===n||8275===n||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||8608===n||n>=8609&&n<=8610||8611===n||n>=8612&&n<=8613||8614===n||n>=8615&&n<=8621||8622===n||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||8658===n||8659===n||8660===n||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||8968===n||8969===n||8970===n||8971===n||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||9001===n||9002===n||n>=9003&&n<=9083||9084===n||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||9655===n||n>=9656&&n<=9664||9665===n||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||9839===n||n>=9840&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||n>=10132&&n<=10175||n>=10176&&n<=10180||10181===n||10182===n||n>=10183&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||n>=10649&&n<=10711||10712===n||10713===n||10714===n||10715===n||n>=10716&&n<=10747||10748===n||10749===n||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||11158===n||n>=11159&&n<=11263||n>=11776&&n<=11777||11778===n||11779===n||11780===n||11781===n||n>=11782&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||n>=11790&&n<=11798||11799===n||n>=11800&&n<=11801||11802===n||11803===n||11804===n||11805===n||n>=11806&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||n>=11818&&n<=11822||11823===n||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||11840===n||11841===n||11842===n||n>=11843&&n<=11855||n>=11856&&n<=11857||11858===n||n>=11859&&n<=11903||n>=12289&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||n>=12306&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||n>=12318&&n<=12319||12320===n||12336===n||64830===n||64831===n||n>=65093&&n<=65094)break;r.push(i),t+=i>=65536?2:1}return $.apply(void 0,r)};var Q=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var o=[];!this.isEOF();){var a=this.char();if(123===a){var s=this.parseArgument(e,r);if(s.err)return s;o.push(s.val)}else if(125===a&&e>0)break;else if(35===a&&("plural"===t||"selectordinal"===t)){var l=this.clonePosition();this.bump(),o.push({type:i.pound,location:M(l,this.clonePosition())})}else if(60!==a||this.ignoreTag||47!==this.peek()){if(60===a&&!this.ignoreTag&&Z(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;o.push(s.val)}}else{if(!r)return this.error(n.UNMATCHED_CLOSING_TAG,M(this.clonePosition(),this.clonePosition()));break}}return{val:o,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(o,"/>"),location:M(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(n.INVALID_TAG,M(r,this.clonePosition()));var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var s=a.val,l=this.clonePosition();if(!this.bumpIf(""))?{val:{type:i.tag,value:o,children:s,location:M(r,this.clonePosition())},err:null}:this.error(n.INVALID_TAG,M(l,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o){n+=o;continue}var a=this.tryParseUnquoted(e,t);if(a){n+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){n+=s;continue}break}var l=M(r,this.clonePosition());return{val:{type:i.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Z(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(r);this.bump()}return $.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),$(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,M(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(n.EMPTY_ARGUMENT,M(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(n.MALFORMED_ARGUMENT,M(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,M(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:o,location:M(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,M(r,this.clonePosition()));return this.parseArgumentOptions(e,t,o,r);default:return this.error(n.MALFORMED_ARGUMENT,M(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=s(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:M(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,a){var s,u=this.clonePosition(),c=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(c){case"":return this.error(n.EXPECT_ARGUMENT_TYPE,M(u,d));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var m=K(f.val);if(0===m.length)return this.error(n.EXPECT_ARGUMENT_STYLE,M(this.clonePosition(),this.clonePosition()));h={style:m,styleLocation:M(p,this.clonePosition())}}var g=this.tryParseArgumentClose(a);if(g.err)return g;var v=M(a,this.clonePosition());if(h&&V(null==h?void 0:h.style,"::",0)){var y,b=G(h.style.slice(2));if("number"===c){var f=this.parseNumberSkeletonFromString(b,h.styleLocation);if(f.err)return f;return{val:{type:i.number,value:r,location:v,style:f.val},err:null}}if(0===b.length)return this.error(n.EXPECT_DATE_TIME_SKELETON,v);var w=b;this.locale&&(w=function(e,t){for(var r="",n=0;n>1),l=function(e){var t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n=e.language;return"root"!==n&&(t=e.maximize().region),(T[t||""]||T[n||""]||T["".concat(n,"-001")]||T["001"])[0]}(t);for(("H"==l||"k"==l)&&(s=0);s-- >0;)r+="a";for(;a-- >0;)r=l+r}else"J"===i?r+="H":r+=i}return r}(b,this.locale));var m={type:o.dateTime,pattern:w,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?(y={},w.replace(k,function(e){var t=e.length;switch(e[0]){case"G":y.era=4===t?"long":5===t?"narrow":"short";break;case"y":y.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":y.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":y.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":y.weekday=4===t?"short":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");y.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");y.weekday=["short","long","narrow","short"][t-4];break;case"a":y.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":y.hourCycle="h12",y.hour=["numeric","2-digit"][t-1];break;case"H":y.hourCycle="h23",y.hour=["numeric","2-digit"][t-1];break;case"K":y.hourCycle="h11",y.hour=["numeric","2-digit"][t-1];break;case"k":y.hourCycle="h24",y.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":y.minute=["numeric","2-digit"][t-1];break;case"s":y.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":y.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),y):{}};return{val:{type:"date"===c?i.date:i.time,value:r,location:v,style:m},err:null}}return{val:{type:"number"===c?i.number:"date"===c?i.date:i.time,value:r,location:v,style:null!==(s=null==h?void 0:h.style)&&void 0!==s?s:null},err:null};case"plural":case"selectordinal":case"select":var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(n.EXPECT_SELECT_ARGUMENT_OPTIONS,M(x,l({},x)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),S=0;if("select"!==c&&"offset"===_.value){if(!this.bumpIf(":"))return this.error(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),_=this.parseIdentifierIfPossible(),S=f.val}var E=this.tryParsePluralOrSelectOptions(e,c,t,_);if(E.err)return E;var g=this.tryParseArgumentClose(a);if(g.err)return g;var C=M(a,this.clonePosition());if("select"===c)return{val:{type:i.select,value:r,options:W(E.val),location:C},err:null};return{val:{type:i.plural,value:r,options:W(E.val),offset:S,pluralType:"plural"===c?"cardinal":"ordinal",location:C},err:null};default:return this.error(n.INVALID_ARGUMENT_TYPE,M(u,d))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,M(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,M(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(_).filter(function(e){return e.length>0}),r=[],n=0;n1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(C,function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else if(i&&o)throw Error("We currently do not support maximum integer digits");else if(a)throw Error("We currently do not support exact integer digits");return""});continue}if(D.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(S.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(S,function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var i=n.options[0];"w"===i?t=x(x({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=x(x({},t),A(i)));continue}if(E.test(n.stem)){t=x(x({},t),A(n.stem));continue}var o=j(n.stem);o&&(t=x(x({},t),o));var a=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!D.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem);a&&(t=x(x({},t),a))}return t}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var o,a=!1,s=[],l=new Set,u=i.value,c=i.location;;){if(0===u.length){var d=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_SELECTOR,n.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=M(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error("select"===t?n.DUPLICATE_SELECT_ARGUMENT_SELECTOR:n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,M(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,r);if(f.err)return f;var m=this.tryParseArgumentClose(p);if(m.err)return m;s.push([u,{value:f.val,location:M(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===s.length?this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR:n.EXPECT_PLURAL_ARGUMENT_SELECTOR,M(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(n.MISSING_OTHER_CLAUSE,M(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,o=10*o+(a-48),this.bump();else break}var s=M(n,this.clonePosition());return i?U(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Y(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(V(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ee(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Z(e){return e>=97&&e<=122||e>=65&&e<=90}function ee(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function et(e,t){void 0===t&&(t={});var r=new Q(e,t=l({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(r.err){var i=SyntaxError(n[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,f(t)||m(t))for(var r in t.options)delete t.options[r].location,e(t.options[r].value);else d(t)&&y(t.style)?delete t.style.location:(h(t)||p(t))&&b(t.style)?delete t.style.location:v(t)&&e(t.children)})}(r.val),r.val}},86679:(e,t,r)=>{"use strict";r.d(t,{Ar:()=>o,Ho:()=>c,OC:()=>a,hr:()=>l,lo:()=>n,pg:()=>u,sb:()=>d,uo:()=>s});var n,i=r(93460);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(n||(n={}));var o=function(e){function t(r,n,i){var o=this,a=i?i instanceof Error?i:Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return(0,i.C6)(t,e),t}(Error),a=function(e){function t(t,r){return e.call(this,n.UNSUPPORTED_FORMATTER,t,r)||this}return(0,i.C6)(t,e),t}(o),s=function(e){function t(t,r){return e.call(this,n.INVALID_CONFIG,t,r)||this}return(0,i.C6)(t,e),t}(o),l=function(e){function t(t,r){return e.call(this,n.MISSING_DATA,t,r)||this}return(0,i.C6)(t,e),t}(o),u=function(e){function t(t,r,i){return e.call(this,n.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),i)||this}return(0,i.C6)(t,e),t}(o),c=function(e){function t(t,r,n,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return o.descriptor=n,o}return(0,i.C6)(t,e),t}(u),d=function(e){function t(t,r){var i=e.call(this,n.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map(function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=t,i}return(0,i.C6)(t,e),t}(o)},20280:(e,t,r)=>{"use strict";r.d(t,{F3:()=>h,GT:()=>d,J9:()=>s,JF:()=>l,MT:()=>u});var n=r(93460),i=r(6502),o=r(14912),a=r(86679);function s(e,t,r){return void 0===r&&(r={}),t.reduce(function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t},{})}var l={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function u(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function c(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function d(e){void 0===e&&(e=u());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,a=Intl.DisplayNames,s=(0,o.A)(function(){for(var e,t=[],r=0;r{"use strict";r.d(t,{C6:()=>i,Cl:()=>o,fX:()=>a});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{"use strict";r.d(t,{g:()=>y});var n=r(3564),i=r(39067),o=r.n(i),a=r(14041);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0||!Array.isArray(t)&&t?c({},e,t):{}}var y=a.forwardRef(function(e,t){var r,i,o,a,s,u,h,p,f,w,k,x,_,S,E,C,D,A,j,O=e.icon,T=e.mask,P=e.symbol,R=e.className,M=e.title,N=e.titleId,F=e.maskId,I=g(O),L=v("classes",[].concat(d((i=e.beat,o=e.fade,a=e.beatFade,s=e.bounce,u=e.shake,h=e.flash,p=e.spin,f=e.spinPulse,w=e.spinReverse,k=e.pulse,x=e.fixedWidth,_=e.inverse,S=e.border,E=e.listItem,C=e.flip,D=e.size,A=e.rotation,j=e.pull,Object.keys((c(r={"fa-beat":i,"fa-fade":o,"fa-beat-fade":a,"fa-bounce":s,"fa-shake":u,"fa-flash":h,"fa-spin":p,"fa-spin-reverse":w,"fa-spin-pulse":f,"fa-pulse":k,"fa-fw":x,"fa-inverse":_,"fa-border":S,"fa-li":E,"fa-flip":!0===C,"fa-flip-horizontal":"horizontal"===C||"both"===C,"fa-flip-vertical":"vertical"===C||"both"===C},"fa-".concat(D),null!=D),c(r,"fa-rotate-".concat(A),null!=A&&0!==A),c(r,"fa-pull-".concat(j),null!=j),c(r,"fa-swap-opacity",e.swapOpacity),r)).map(function(e){return r[e]?e:null}).filter(function(e){return e}))),d(R.split(" ")))),B=v("transform","string"==typeof e.transform?n.qg.transform(e.transform):e.transform),z=v("mask",g(T)),U=(0,n.Kk)(I,l(l(l(l({},L),B),z),{},{symbol:P,title:M,titleId:N,maskId:F}));if(!U)return!function(){if(!m&&console&&"function"==typeof console.error){var e;(e=console).error.apply(e,arguments)}}("Could not find icon",I),null;var q=U.abstract,H={ref:t};return Object.keys(e).forEach(function(t){y.defaultProps.hasOwnProperty(t)||(H[t]=e[t])}),b(q[0],H)});y.displayName="FontAwesomeIcon",y.propTypes={beat:o().bool,border:o().bool,beatFade:o().bool,bounce:o().bool,className:o().string,fade:o().bool,flash:o().bool,mask:o().oneOfType([o().object,o().array,o().string]),maskId:o().string,fixedWidth:o().bool,inverse:o().bool,flip:o().oneOf([!0,!1,"horizontal","vertical","both"]),icon:o().oneOfType([o().object,o().array,o().string]),listItem:o().bool,pull:o().oneOf(["right","left"]),pulse:o().bool,rotation:o().oneOf([0,90,180,270]),shake:o().bool,size:o().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:o().bool,spinPulse:o().bool,spinReverse:o().bool,symbol:o().oneOfType([o().bool,o().string]),title:o().string,titleId:o().string,transform:o().oneOfType([o().string,o().object]),swapOpacity:o().bool},y.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var b=(function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof r)return r;var i=(r.children||[]).map(function(r){return e(t,r)}),o=Object.keys(r.attributes||{}).reduce(function(e,t){var n=r.attributes[t];switch(t){case"class":e.attrs.className=n,delete r.attributes.class;break;case"style":e.attrs.style=n.split(";").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var r=t.indexOf(":"),n=p(t.slice(0,r)),i=t.slice(r+1).trim();return n.startsWith("webkit")?e[n.charAt(0).toUpperCase()+n.slice(1)]=i:e[n]=i,e},{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=n:e.attrs[p(t)]=n}return e},{attrs:{}}),a=n.style,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(n,f);return o.attrs.style=l(l({},o.attrs.style),void 0===a?{}:a),t.apply(void 0,[r.tag,l(l({},o.attrs),s)].concat(d(i)))}).bind(null,a.createElement)},63887:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s});var n=r(24416),i=r(14041);let{useSyncExternalStoreWithSelector:o}=r(37121),a=e=>{let t="function"==typeof e?(0,n.A)(e):e,r=(e,r)=>(function(e,t=e.getState,r){let n=o(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,i.useDebugValue)(n),n})(t,e,r);return Object.assign(r,t),r};var s=e=>e?a(e):a},24416:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let n=e=>{let t;let r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(i!==t){let e=t;t=(null!=n?n:"object"!=typeof i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,o={setState:n,getState:i,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>r.clear()};return t=e(n,i,o),o},i=e=>e?n(e):n},44455:(e,t,r)=>{"use strict";function n(e){return e?(e.nodeName||"").toLowerCase():null}r.d(t,{A:()=>n})},89328:(e,t,r)=>{"use strict";function n(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}r.d(t,{A:()=>n})},2324:(e,t,r)=>{"use strict";r.d(t,{Ng:()=>a,sb:()=>o,vq:()=>i});var n=r(89328);function i(e){var t=(0,n.A)(e).Element;return e instanceof t||e instanceof Element}function o(e){var t=(0,n.A)(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a(e){if("undefined"==typeof ShadowRoot)return!1;var t=(0,n.A)(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}},26084:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(44455),i=r(2324);let o={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},o=t.attributes[e]||{},a=t.elements[e];(0,i.sb)(a)&&(0,n.A)(a)&&(Object.assign(a.style,r),Object.keys(o).forEach(function(e){var t=o[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],a=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});(0,i.sb)(o)&&(0,n.A)(o)&&(Object.assign(o.style,s),Object.keys(a).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]}},59980:(e,t,r)=>{"use strict";r.d(t,{n4:()=>et});var n=r(2324),i=Math.max,o=Math.min,a=Math.round;function s(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect(),i=1,o=1;if((0,n.sb)(e)&&t){var s=e.offsetHeight,l=e.offsetWidth;l>0&&(i=a(r.width)/l||1),s>0&&(o=a(r.height)/s||1)}return{width:r.width/i,height:r.height/o,top:r.top/o,right:r.right/i,bottom:r.bottom/o,left:r.left/i,x:r.left/i,y:r.top/o}}var l=r(89328);function u(e){var t=(0,l.A)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}var c=r(44455);function d(e){return(((0,n.vq)(e)?e.ownerDocument:e.document)||window.document).documentElement}function h(e){return s(d(e)).left+u(e).scrollLeft}function p(e){return(0,l.A)(e).getComputedStyle(e)}function f(e){var t=p(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function m(e){var t=s(e),r=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function g(e){return"html"===(0,c.A)(e)?e:e.assignedSlot||e.parentNode||((0,n.Ng)(e)?e.host:null)||d(e)}function v(e,t){void 0===t&&(t=[]);var r,i=function e(t){return["html","body","#document"].indexOf((0,c.A)(t))>=0?t.ownerDocument.body:(0,n.sb)(t)&&f(t)?t:e(g(t))}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=(0,l.A)(i),s=o?[a].concat(a.visualViewport||[],f(i)?i:[]):i,u=t.concat(s);return o?u:u.concat(v(g(s)))}function y(e){return(0,n.sb)(e)&&"fixed"!==p(e).position?e.offsetParent:null}function b(e){for(var t,r=(0,l.A)(e),i=y(e);i&&(t=i,["table","td","th"].indexOf((0,c.A)(t))>=0)&&"static"===p(i).position;)i=y(i);return i&&("html"===(0,c.A)(i)||"body"===(0,c.A)(i)&&"static"===p(i).position)?r:i||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&(0,n.sb)(e)&&"fixed"===p(e).position)return null;for(var r=g(e);(0,n.sb)(r)&&0>["html","body"].indexOf((0,c.A)(r));){var i=p(r);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return r;r=r.parentNode}return null}(e)||r}var w="bottom",k="right",x="left",_="auto",S=["top",w,k,x],E="start",C="viewport",D="popper",A=S.reduce(function(e,t){return e.concat([t+"-"+E,t+"-end"])},[]),j=[].concat(S,[_]).reduce(function(e,t){return e.concat([t,t+"-"+E,t+"-end"])},[]),O=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],T={placement:"bottom",modifiers:[],strategy:"absolute"};function P(){for(var e=arguments.length,t=Array(e),r=0;r=0?"x":"y"}function I(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?M(i):null,a=i?N(i):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(o){case"top":t={x:s,y:r.y-n.height};break;case w:t={x:s,y:r.y+r.height};break;case k:t={x:r.x+r.width,y:l};break;case x:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var u=o?F(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case E:t[u]=t[u]-(r[c]/2-n[c]/2);break;case"end":t[u]=t[u]+(r[c]/2-n[c]/2)}}return t}var L={top:"auto",right:"auto",bottom:"auto",left:"auto"};function B(e){var t,r,n,i,o,s=e.popper,u=e.popperRect,c=e.placement,h=e.variation,f=e.offsets,m=e.position,g=e.gpuAcceleration,v=e.adaptive,y=e.roundOffsets,_=e.isFixed,S=!0===y?(t=f.x,r=f.y,{x:a(t*(n=window.devicePixelRatio||1))/n||0,y:a(r*n)/n||0}):"function"==typeof y?y(f):f,E=S.x,C=void 0===E?0:E,D=S.y,A=void 0===D?0:D,j=f.hasOwnProperty("x"),O=f.hasOwnProperty("y"),T=x,P="top",R=window;if(v){var M=b(s),N="clientHeight",F="clientWidth";M===(0,l.A)(s)&&"static"!==p(M=d(s)).position&&"absolute"===m&&(N="scrollHeight",F="scrollWidth"),("top"===c||(c===x||c===k)&&"end"===h)&&(P=w,A-=(_&&R.visualViewport?R.visualViewport.height:M[N])-u.height,A*=g?1:-1),(c===x||("top"===c||c===w)&&"end"===h)&&(T=k,C-=(_&&R.visualViewport?R.visualViewport.width:M[F])-u.width,C*=g?1:-1)}var I=Object.assign({position:m},v&&L);return g?Object.assign({},I,((o={})[P]=O?"0":"",o[T]=j?"0":"",o.transform=1>=(R.devicePixelRatio||1)?"translate("+C+"px, "+A+"px)":"translate3d("+C+"px, "+A+"px, 0)",o)):Object.assign({},I,((i={})[P]=O?A+"px":"",i[T]=j?C+"px":"",i.transform="",i))}var z=r(26084),U={left:"right",right:"left",bottom:"top",top:"bottom"};function q(e){return e.replace(/left|right|bottom|top/g,function(e){return U[e]})}var H={start:"end",end:"start"};function V(e){return e.replace(/start|end/g,function(e){return H[e]})}function $(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&(0,n.Ng)(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function W(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Y(e,t){var r,o,a,c,f,m,g,v,y,b,w,k,x,_,S,E,D;return t===C?W((r=(0,l.A)(e),o=d(e),a=r.visualViewport,c=o.clientWidth,f=o.clientHeight,m=0,g=0,a&&(c=a.width,f=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(m=a.offsetLeft,g=a.offsetTop)),{width:c,height:f,x:m+h(e),y:g})):(0,n.vq)(t)?((v=s(t)).top=v.top+t.clientTop,v.left=v.left+t.clientLeft,v.bottom=v.top+t.clientHeight,v.right=v.left+t.clientWidth,v.width=t.clientWidth,v.height=t.clientHeight,v.x=v.left,v.y=v.top,v):W((y=d(e),w=d(y),k=u(y),x=null==(b=y.ownerDocument)?void 0:b.body,_=i(w.scrollWidth,w.clientWidth,x?x.scrollWidth:0,x?x.clientWidth:0),S=i(w.scrollHeight,w.clientHeight,x?x.scrollHeight:0,x?x.clientHeight:0),E=-k.scrollLeft+h(y),D=-k.scrollTop,"rtl"===p(x||w).direction&&(E+=i(w.clientWidth,x?x.clientWidth:0)-_),{width:_,height:S,x:E,y:D}))}function G(){return{top:0,right:0,bottom:0,left:0}}function K(e){return Object.assign({},G(),e)}function X(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function J(e,t){void 0===t&&(t={});var r,a,l,u,h,f,m,y,x,_=t,E=_.placement,A=void 0===E?e.placement:E,j=_.boundary,O=_.rootBoundary,T=_.elementContext,P=void 0===T?D:T,R=_.altBoundary,M=_.padding,N=void 0===M?0:M,F=K("number"!=typeof N?N:X(N,S)),L=e.rects.popper,B=e.elements[void 0!==R&&R?P===D?"reference":D:P],z=(r=(0,n.vq)(B)?B:B.contextElement||d(e.elements.popper),a=void 0===j?"clippingParents":j,l=void 0===O?C:O,y=(m=[].concat("clippingParents"===a?(u=v(g(r)),f=(h=["absolute","fixed"].indexOf(p(r).position)>=0)&&(0,n.sb)(r)?b(r):r,(0,n.vq)(f)?u.filter(function(e){return(0,n.vq)(e)&&$(e,f)&&"body"!==(0,c.A)(e)&&(!h||"static"!==p(e).position)}):[]):[].concat(a),[l]))[0],(x=m.reduce(function(e,t){var n=Y(r,t);return e.top=i(n.top,e.top),e.right=o(n.right,e.right),e.bottom=o(n.bottom,e.bottom),e.left=i(n.left,e.left),e},Y(r,y))).width=x.right-x.left,x.height=x.bottom-x.top,x.x=x.left,x.y=x.top,x),U=s(e.elements.reference),q=I({reference:U,element:L,strategy:"absolute",placement:A}),H=W(Object.assign({},L,q)),V=P===D?H:U,G={top:z.top-V.top+F.top,bottom:V.bottom-z.bottom+F.bottom,left:z.left-V.left+F.left,right:V.right-z.right+F.right},J=e.modifiersData.offset;if(P===D&&J){var Q=J[A];Object.keys(G).forEach(function(e){var t=[k,w].indexOf(e)>=0?1:-1,r=["top",w].indexOf(e)>=0?"y":"x";G[e]+=Q[r]*t})}return G}function Q(e,t,r){return i(e,o(t,r))}function Z(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ee(e){return["top",k,w,x].some(function(t){return e[t]>=0})}var et=function(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,i=void 0===r?[]:r,o=t.defaultOptions,p=void 0===o?T:o;return function(e,t,r){void 0===r&&(r=p);var o,g,y={placement:"bottom",orderedModifiers:[],options:Object.assign({},T,p),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},w=[],k=!1,x={state:y,setOptions:function(r){var o,a,s,l,u,c="function"==typeof r?r(y.options):r;_(),y.options=Object.assign({},p,y.options,c),y.scrollParents={reference:(0,n.vq)(e)?v(e):e.contextElement?v(e.contextElement):[],popper:v(t)};var d=(a=Object.keys(o=[].concat(i,y.options.modifiers).reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{})).map(function(e){return o[e]}),s=new Map,l=new Set,u=[],a.forEach(function(e){s.set(e.name,e)}),a.forEach(function(e){l.has(e.name)||function e(t){l.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!l.has(t)){var r=s.get(t);r&&e(r)}}),u.push(t)}(e)}),O.reduce(function(e,t){return e.concat(u.filter(function(e){return e.phase===t}))},[]));return y.orderedModifiers=d.filter(function(e){return e.enabled}),y.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=e.effect;if("function"==typeof n){var i=n({state:y,name:t,instance:x,options:void 0===r?{}:r});w.push(i||function(){})}}),x.update()},forceUpdate:function(){if(!k){var e,t,r,i,o,p,g,v,w,_,S,E,C=y.elements,D=C.reference,A=C.popper;if(P(D,A)){y.rects={reference:(t=b(A),r="fixed"===y.options.strategy,i=(0,n.sb)(t),v=(0,n.sb)(t)&&(p=a((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,g=a(o.height)/t.offsetHeight||1,1!==p||1!==g),w=d(t),_=s(D,v),S={scrollLeft:0,scrollTop:0},E={x:0,y:0},(i||!i&&!r)&&(("body"!==(0,c.A)(t)||f(w))&&(S=(e=t)!==(0,l.A)(e)&&(0,n.sb)(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:u(e)),(0,n.sb)(t)?(E=s(t,!0),E.x+=t.clientLeft,E.y+=t.clientTop):w&&(E.x=h(w))),{x:_.left+S.scrollLeft-E.x,y:_.top+S.scrollTop-E.y,width:_.width,height:_.height}),popper:m(A)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(e){return y.modifiersData[e.name]=Object.assign({},e.data)});for(var j=0;j=0?-1:1,l=(s="function"==typeof o?o(Object.assign({},n,{placement:r})):o)[0],u=s[1],l=l||0,u=(u||0)*a,[x,k].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,h=r.altBoundary,p=r.flipVariations,f=void 0===p||p,m=r.allowedAutoPlacements,g=t.options.placement,v=M(g)===g,y=l||(v||!f?[q(g)]:function(e){if(M(e)===_)return[];var t=q(e);return[V(e),t,V(t)]}(g)),b=[g].concat(y).reduce(function(e,r){var n,i,o,a,s,l,h,p,g,v,y,b;return e.concat(M(r)===_?(i=(n={placement:r,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:m}).placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,p=void 0===(h=n.allowedAutoPlacements)?j:h,0===(y=(v=(g=N(i))?l?A:A.filter(function(e){return N(e)===g}):S).filter(function(e){return p.indexOf(e)>=0})).length&&(y=v),Object.keys(b=y.reduce(function(e,r){return e[r]=J(t,{placement:r,boundary:o,rootBoundary:a,padding:s})[M(r)],e},{})).sort(function(e,t){return b[e]-b[t]})):r)},[]),C=t.rects.reference,D=t.rects.popper,O=new Map,T=!0,P=b[0],R=0;R=0,z=B?"width":"height",U=J(t,{placement:F,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),H=B?L?k:x:L?w:"top";C[z]>D[z]&&(H=q(H));var $=q(H),W=[];if(o&&W.push(U[I]<=0),s&&W.push(U[H]<=0,U[$]<=0),W.every(function(e){return e})){P=F,T=!1;break}O.set(F,W)}if(T)for(var Y=f?3:1,G=function(e){var t=b.find(function(t){var r=O.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return P=t,"break"},K=Y;K>0&&"break"!==G(K);K--);t.placement!==P&&(t.modifiersData[n]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,s=r.altAxis,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,h=r.tether,p=void 0===h||h,f=r.tetherOffset,g=void 0===f?0:f,v=J(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=M(t.placement),_=N(t.placement),S=!_,C=F(y),D="x"===C?"y":"x",A=t.modifiersData.popperOffsets,j=t.rects.reference,O=t.rects.popper,T="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,P="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(A){if(void 0===a||a){var L,B="y"===C?"top":x,z="y"===C?w:k,U="y"===C?"height":"width",q=A[C],H=q+v[B],V=q-v[z],$=p?-O[U]/2:0,W=_===E?j[U]:O[U],Y=_===E?-O[U]:-j[U],K=t.elements.arrow,X=p&&K?m(K):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:G(),ee=Z[B],et=Z[z],er=Q(0,j[U],X[U]),en=S?j[U]/2-$-er-ee-P.mainAxis:W-er-ee-P.mainAxis,ei=S?-j[U]/2+$+er+et+P.mainAxis:Y+er+et+P.mainAxis,eo=t.elements.arrow&&b(t.elements.arrow),ea=eo?"y"===C?eo.clientTop||0:eo.clientLeft||0:0,es=null!=(L=null==R?void 0:R[C])?L:0,el=Q(p?o(H,q+en-es-ea):H,q,p?i(V,q+ei-es):V);A[C]=el,I[C]=el-q}if(void 0!==s&&s){var eu,ec,ed="x"===C?"top":x,eh="x"===C?w:k,ep=A[D],ef="y"===D?"height":"width",em=ep+v[ed],eg=ep-v[eh],ev=-1!==["top",x].indexOf(y),ey=null!=(ec=null==R?void 0:R[D])?ec:0,eb=ev?em:ep-j[ef]-O[ef]-ey+P.altAxis,ew=ev?ep+j[ef]+O[ef]-ey-P.altAxis:eg,ek=p&&ev?(eu=Q(eb,ep,ew))>ew?ew:eu:Q(p?eb:em,ep,p?ew:eg);A[D]=ek,I[D]=ek-ep}t.modifiersData[n]=I}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r,n=e.state,i=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=M(n.placement),u=F(l),c=[x,k].indexOf(l)>=0?"height":"width";if(a&&s){var d=K("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:X(t,S)),h=m(a),p="y"===u?"top":x,f="y"===u?w:k,g=n.rects.reference[c]+n.rects.reference[u]-s[u]-n.rects.popper[c],v=s[u]-n.rects.reference[u],y=b(a),_=y?"y"===u?y.clientHeight||0:y.clientWidth||0:0,E=d[p],C=_-h[c]-d[f],D=_/2-h[c]/2+(g/2-v/2),A=Q(E,D,C);n.modifiersData[i]=((r={})[u]=A,r.centerOffset=A-D,r)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&$(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=J(t,{elementContext:"reference"}),s=J(t,{altBoundary:!0}),l=Z(a,n),u=Z(s,i,o),c=ee(l),d=ee(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]})},2241:(e,t,r)=>{"use strict";r.d(t,{DY:()=>s,G_:()=>o,mg:()=>a});var n=r(14041);let i=(0,n.createContext)(null);function o({clientId:e,onScriptLoadSuccess:t,onScriptLoadError:r,children:o}){let a=function(e={}){let{onScriptLoadSuccess:t,onScriptLoadError:r}=e,[i,o]=(0,n.useState)(!1),a=(0,n.useRef)(t);a.current=t;let s=(0,n.useRef)(r);return s.current=r,(0,n.useEffect)(()=>{let e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,e.onload=()=>{var e;o(!0),null===(e=a.current)||void 0===e||e.call(a)},e.onerror=()=>{var e;o(!1),null===(e=s.current)||void 0===e||e.call(s)},document.body.appendChild(e),()=>{document.body.removeChild(e)}},[]),i}({onScriptLoadSuccess:t,onScriptLoadError:r}),s=(0,n.useMemo)(()=>({clientId:e,scriptLoadedSuccessfully:a}),[e,a]);return n.createElement(i.Provider,{value:s},o)}function a({flow:e="implicit",scope:t="",onSuccess:r,onError:o,...a}){let{clientId:s,scriptLoadedSuccessfully:l}=function(){let e=(0,n.useContext)(i);if(!e)throw Error("Google OAuth components must be used within GoogleOAuthProvider");return e}(),u=(0,n.useRef)(),c=(0,n.useRef)(r);c.current=r;let d=(0,n.useRef)(o);d.current=o,(0,n.useEffect)(()=>{var r;if(!l)return;let n="implicit"===e?"initTokenClient":"initCodeClient",i=null===(r=window.google)||void 0===r?void 0:r.accounts.oauth2[n]({client_id:s,scope:`openid profile email ${t}`,callback:e=>{var t,r;if(e.error)return null===(t=d.current)||void 0===t?void 0:t.call(d,e);null===(r=c.current)||void 0===r||r.call(c,e)},...a});u.current=i},[s,l,e,t]);let h=(0,n.useCallback)(e=>u.current.requestAccessToken(e),[]),p=(0,n.useCallback)(()=>u.current.requestCode(),[]);return"implicit"===e?h:p}function s(e,t,...r){return!!window.google&&window.google.accounts.oauth2.hasGrantedAllScopes(e,t,...r)}},8796:(e,t,r)=>{"use strict";function n(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:h(e)?3:0}function l(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t,r){var n=s(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function c(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return I&&e instanceof Map}function h(e){return L&&e instanceof Set}function p(e){return e.o||e.t}function f(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=$(e);delete t[q];for(var r=V(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&a(e,function(e,t){return m(t,!0)},!0)),e}function g(){n(2)}function v(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function y(e){var t=W[e];return t||n(18,e),t}function b(e,t){t&&(y("Patches"),e.u=[],e.s=[],e.v=t)}function w(e){k(e),e.p.forEach(_),e.p=null}function k(e){e===N&&(N=e.l)}function x(e){return N={p:[],l:N,h:e,m:!0,_:0}}function _(e){var t=e[q];0===t.i||1===t.i?t.j():t.O=!0}function S(e,t){t._=t.p.length;var r=t.p[0],i=void 0!==e&&e!==r;return t.h.g||y("ES5").S(t,e,i),i?(r[q].P&&(w(t),n(4)),o(e)&&(e=E(t,e),t.l||D(t,e)),t.u&&y("Patches").M(r[q].t,e,t.u,t.s)):e=E(t,r,[]),w(t),t.u&&t.v(t.u,t.s),e!==z?e:void 0}function E(e,t,r){if(v(t))return t;var n=t[q];if(!n)return a(t,function(i,o){return C(e,n,t,i,o,r)},!0),t;if(n.A!==e)return t;if(!n.P)return D(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=4===n.i||5===n.i?n.o=f(n.k):n.o;a(3===n.i?new Set(i):i,function(t,o){return C(e,n,i,t,o,r)}),D(e,i,!1),r&&e.u&&y("Patches").R(n,r,e.u,e.s)}return n.o}function C(e,t,r,n,a,s){if(i(a)){var c=E(e,a,s&&t&&3!==t.i&&!l(t.D,n)?s.concat(n):void 0);if(u(r,n,c),!i(c))return;e.m=!1}if(o(a)&&!v(a)){if(!e.h.F&&e._<1)return;E(e,a),t&&t.A.l||D(e,a)}}function D(e,t,r){void 0===r&&(r=!1),e.h.F&&e.m&&m(t,r)}function A(e,t){var r=e[q];return(r?p(r):e)[t]}function j(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function O(e){e.P||(e.P=!0,e.l&&O(e.l))}function T(e){e.o||(e.o=f(e.t))}function P(e,t,r){var n,i,o,a,s,l,u,c=d(t)?y("MapSet").N(t,r):h(t)?y("MapSet").T(t,r):e.g?(o=i={i:(n=Array.isArray(t))?1:0,A:r?r.A:N,P:!1,I:!1,D:{},l:r,t:t,k:null,o:null,j:null,C:!1},a=Y,n&&(o=[i],a=G),l=(s=Proxy.revocable(o,a)).revoke,u=s.proxy,i.k=u,i.j=l,u):y("ES5").J(t,r);return(r?r.A:N).p.push(c),c}function R(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return f(e)}r.d(t,{U1:()=>eh,Z0:()=>eg});var M,N,F="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),I="undefined"!=typeof Map,L="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,z=F?Symbol.for("immer-nothing"):((M={})["immer-nothing"]=!0,M),U=F?Symbol.for("immer-draftable"):"__$immer_draftable",q=F?Symbol.for("immer-state"):"__$immer_state",H=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),V="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,$=Object.getOwnPropertyDescriptors||function(e){var t={};return V(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},W={},Y={get:function(e,t){if(t===q)return e;var r,n,i=p(e);if(!l(i,t))return(n=j(i,t))?"value"in n?n.value:null===(r=n.get)||void 0===r?void 0:r.call(e.k):void 0;var a=i[t];return e.I||!o(a)?a:a===A(e.t,t)?(T(e),e.o[t]=P(e.A.h,a,e)):a},has:function(e,t){return t in p(e)},ownKeys:function(e){return Reflect.ownKeys(p(e))},set:function(e,t,r){var n=j(p(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=A(p(e),t),o=null==i?void 0:i[q];if(o&&o.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(c(r,i)&&(void 0!==r||l(e.t,t)))return!0;T(e),O(e)}return e.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==A(e.t,t)||t in e.t?(e.D[t]=!1,T(e),O(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=p(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){n(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){n(12)}},G={};a(Y,function(e,t){G[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),G.deleteProperty=function(e,t){return G.set.call(this,e,t,void 0)},G.set=function(e,t,r){return Y.set.call(this,e[0],t,r,e[0])};var K=new(function(){function e(e){var t=this;this.g=B,this.F=!0,this.produce=function(e,r,i){if("function"==typeof e&&"function"!=typeof r){var a,s=r;return r=e,function(e){var n=this;void 0===e&&(e=s);for(var i=arguments.length,o=Array(i>1?i-1:0),a=1;a1?n-1:0),o=1;o=0;r--){var r,n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));var o=y("Patches").$;return i(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},e}()),X=K.produce;K.produceWithPatches.bind(K),K.setAutoFreeze.bind(K),K.setUseProxies.bind(K),K.applyPatches.bind(K),K.createDraft.bind(K),K.finishDraft.bind(K);var J=r(70747);function Q(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(i){return"function"==typeof i?i(r,n,e):t(i)}}}}var Z=Q();Z.withExtraArgument=Q,r(39907);var ee=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),et=function(e,t){for(var r=0,n=t.length,i=e.length;r-1}function em(e){var t,r={},n=[],i={addCase:function(e,t){var n="string"==typeof e?e:e.type;if(n in r)throw Error("addCase cannot be called with two reducers for the same action type");return r[n]=t,i},addMatcher:function(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase:function(e){return t=e,i}};return e(i),[r,n,t]}function eg(e){var t,r=e.name;if(!r)throw Error("`name` is a required option for createSlice");var n="function"==typeof e.initialState?e.initialState:ed(e.initialState),a=e.reducers||{},s=Object.keys(a),l={},u={},c={};function d(){var t="function"==typeof e.extraReducers?em(e.extraReducers):[e.extraReducers],r=t[0],a=t[1],s=t[2];return function(e,t,r,n){void 0===r&&(r=[]);var a,s="function"==typeof t?em(t):[t,r,n],l=s[0],u=s[1],c=s[2];if("function"==typeof e)a=function(){return ed(e())};else{var d=ed(e);a=function(){return d}}function h(e,t){void 0===e&&(e=a());var r=et([l[t.type]],u.filter(function(e){return(0,e.matcher)(t)}).map(function(e){return e.reducer}));return 0===r.filter(function(e){return!!e}).length&&(r=[c]),r.reduce(function(e,r){if(r){if(i(e)){var n=r(e,t);return void 0===n?e:n}if(o(e))return X(e,function(e){return r(e,t)});var n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return e},e)}return h.getInitialState=a,h}(n,es(es({},void 0===r?{}:r),u),void 0===a?[]:a,void 0===s?void 0:s)}return s.forEach(function(e){var t,n,i=a[e],o=r+"/"+e;"reducer"in i?(t=i.reducer,n=i.prepare):t=i,l[e]=t,u[o]=t,c[e]=n?ep(o,n):ep(o)}),{name:r,reducer:function(e,r){return t||(t=d()),t(e,r)},actions:c,caseReducers:l,getInitialState:function(){return t||(t=d()),t.getInitialState()}}}var ev=function(e,t){if("function"!=typeof e)throw TypeError(t+" is not a function")},ey=function(){},eb="cancelled",ew=function(e){this.code=e,this.name="TaskAbortError",this.message="task "+eb+" (reason: "+e+")"},ek=(Object.assign,"listenerMiddleware");ep(ek+"/add"),ep(ek+"/removeAll"),ep(ek+"/remove"),function(){function e(e,t){var r=s[e];return r?r.enumerable=t:s[e]=r={configurable:!0,enumerable:t,get:function(){var t=this[q];return Y.get(t,e)},set:function(t){var r=this[q];Y.set(r,e,t)}},r}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][q];if(!i.P)switch(i.i){case 5:n(i)&&O(i);break;case 4:r(i)&&O(i)}}}function r(e){for(var t=e.t,r=e.k,n=V(r),i=n.length-1;i>=0;i--){var o=n[i];if(o!==q){var a=t[o];if(void 0===a&&!l(t,o))return!0;var s=r[o],u=s&&s[q];if(u?u.t!==a:!c(s,a))return!0}}var d=!!t[q];return n.length!==V(t).length+(d?0:1)}function n(e){var t=e.k;if(t.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);if(r&&!r.get)return!0;for(var n=0;n{"use strict";r.d(t,{A:()=>s});var n=r(13941),i=r(74672),o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;rn-o?(l[1]>s.top||nl[1])&&(u[1]=1),s.left>r-o?(l[0]>s.left||rl[0])&&(u[0]=1),clearTimeout(this._timer),(!!u[0]||!!u[1])&&this._continueDrag(a(a({},t),{direction:u,inputEvent:e,isDrag:!0}))},r.checkScroll=function(e){var t=this;if(this._isWait)return!1;var r=e.prevScrollPos,n=void 0===r?this._prevScrollPos:r,i=e.direction,o=e.throttleTime,a=void 0===o?0:o,s=e.inputEvent,l=e.isDrag,u=this._getScrollPosition(i||[0,0],e),c=u[0]-n[0],d=u[1]-n[1],h=i||[c?Math.abs(c)/c:0,d?Math.abs(d)/d:0];return this._prevScrollPos=u,(!!c||!!d)&&(this.trigger("move",{offsetX:h[0]?c:0,offsetY:h[1]?d:0,inputEvent:s}),a&&l&&(this._timer=window.setTimeout(function(){t._continueDrag(e)},a)),!0)},r.dragEnd=function(){clearTimeout(this._timer)},r._getScrollPosition=function(e,t){var r=t.container,n=t.getScrollPosition;return(void 0===n?function(e){var t=e.container;return t===document.body?[t.scrollLeft||document.documentElement.scrollLeft,t.scrollTop||document.documentElement.scrollTop]:[t.scrollLeft,t.scrollTop]}:n)({container:r,direction:e})},r._continueDrag=function(e){var t=this,r=e.container,n=e.direction,o=e.throttleTime,s=e.useScroll,l=e.isDrag,u=e.inputEvent;if(!l||!this._isWait){var c=(0,i.tB)(),d=Math.max(o+this._prevTime-c,0);if(d>0)return this._timer=window.setTimeout(function(){t._continueDrag(e)},d),!1;this._prevTime=c;var h=this._getScrollPosition(n,e);return this._prevScrollPos=h,l&&(this._isWait=!0),this.trigger("scroll",{container:r,direction:n,inputEvent:u}),this._isWait=!1,s||this.checkScroll(a(a({},e),{prevScrollPos:h,direction:n,inputEvent:u}))}},t}(n.A)},13941:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(74672),i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1&&i.splice(o,1)}}else this._events[e]=[]}else this._events={};return this},t.once=function(e,t){var r=this;return t&&this._addEvent(e,t,{once:!0}),new Promise(function(t){r._addEvent(e,t,{once:!0})})},t.emit=function(e,t){var r=this;void 0===t&&(t={});var n=this._events[e];if(!e||!n)return!0;var i=!1;return t.eventType=e,t.stop=function(){i=!0},t.currentTarget=this,(function(){for(var e=0,t=0,r=arguments.length;t{"use strict";r.d(t,{$z:()=>a,B4:()=>c,B8:()=>o,Di:()=>g,GD:()=>D,Rd:()=>p,XI:()=>S,YO:()=>w,ZB:()=>m,Zt:()=>b,_C:()=>u,bn:()=>i,e$:()=>k,ez:()=>l,iv:()=>x,k8:()=>E,kN:()=>s,kb:()=>C,lw:()=>d,n_:()=>_,pE:()=>v,qL:()=>A,qh:()=>y,tY:()=>h,zs:()=>f});var n=r(74672);function i(e,t,r){void 0===r&&(r=Math.sqrt(e.length));for(var n=e.slice(),i=0;i{"use strict";r.d(t,{v:()=>n});var n=function(){function e(){this.callbacks={}}return e.prototype.on=function(e,t){return this.callbacks[e]?this.callbacks[e].push(t):this.callbacks[e]=[t],this},e.prototype.once=function(e,t){var r=this,n=function(){for(var i=[],o=0;o{"use strict";r.d(t,{N:()=>eO});var n,i=r(13946),o=r(39907);function a(){return void 0!==o&&o.env?o.env:{}}var s=r(74695),l=r(91095),u=r.n(l);function c(e){return"string"==typeof e}function d(e){return"number"==typeof e}function h(e){return"function"==typeof e}function p(e){return"object"===Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}var f=function(e){function t(t,r){var n=e.call(this,r)||this;return n.field=t,n}return(0,i.C6)(t,e),t}(Error);function m(e){var t,r,n,i,o=e&&e.event&&e.event.type,a=e.event;if(void 0===a)throw new f("event","Event is missing");if(!c(o)||"track"===o&&!c(a.event))throw new f("event","Event is not a string");var s=null!==(i=a.properties)&&void 0!==i?i:a.traits;if("alias"!==o&&!p(s))throw new f("properties","properties is not an object");if(!c(null!==(n=null!==(r=null!==(t=a.userId)&&void 0!==t?t:a.anonymousId)&&void 0!==r?r:a.groupId)&&void 0!==n?n:a.previousId))throw new f("userId","Missing userId or anonymousId");return e}var g={name:"Event Validation",type:"before",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:m,identify:m,page:m,alias:m,group:m,screen:m};function v(e,t,r,n){var i,o=[e,t,r,n],a=p(e)?e.event:e;if(!a||!c(a))throw Error("Event missing");var s=p(e)?null!==(i=e.properties)&&void 0!==i?i:{}:p(t)?t:{},l={};return h(r)||(l=null!=r?r:{}),p(e)&&!h(t)&&(l=null!=t?t:{}),[a,s,l,o.find(h)]}function y(e,t,r,n,i){var o,a,s=null,l=null,u=[e,t,r,n,i],d=u.filter(c);void 0!==d[0]&&void 0!==d[1]&&(s=d[0],l=d[1]),1===d.length&&(s=null,l=d[0]);var f=u.find(h),m=u.filter(function(e){return null===l?p(e):p(e)||null===e}),g=null!==(o=m[0])&&void 0!==o?o:{},v=null!==(a=m[1])&&void 0!==a?a:{};return[s,l,g,v,f]}var b=function(e){return function(){for(var t,r,n,i,o,a=[],s=0;s0&&!(0,x.a)()},function(){return(0,i.sH)(n,void 0,void 0,function(){var n;return(0,i.YH)(this,function(i){switch(i.label){case 0:if(!(n=t.pop()))return[2];return[4,(0,M.C)(n,e)];case 1:return i.sent()instanceof _.o||r.push(n),[2]}})})})];case 1:return o.sent(),r.map(function(e){return t.pushWithBackoff(e)}),[2,t]}})})}(r,t)];case 1:return o=a.sent(),e=!1,t.todo>0&&n(e,o,r,n),[2]}})})},5e3*Math.random())}var ek=function(e,t,r){r.getCalls(e).forEach(function(e){eC(t,e).catch(console.error)})},ex=ek.bind(void 0,"on"),e_=ek.bind(void 0,"setAnonymousId"),eS=function(e,t){t.toArray().forEach(function(t){setTimeout(function(){eC(e,t).catch(console.error)},0)})},eE=function(){function e(){this._value={}}return e.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this._value))},e.prototype.getCalls=function(e){var t;return null!==(t=this._value[e])&&void 0!==t?t:[]},e.prototype.push=function(){for(var e=this,t=[],r=0;r0))return[3,2];return[4,r.e(9010).then(r.bind(r,76243)).then(function(t){return t.tsubMiddleware(e.middlewareSettings.routingRules)})];case 1:return p=E.sent(),[3,3];case 2:p=void 0,E.label=3;case 3:if(h=p,"test"===a().NODE_ENV||!(Object.keys(e.integrations).length>1))return[3,5];return[4,r.e(5050).then(r.bind(r,95742)).then(function(r){return r.ajsDestinations(e,t.integrations,n,h)})];case 4:return m=E.sent(),[3,6];case 5:m=[],E.label=6;case 6:if(f=m,!e.legacyVideoPluginsEnabled)return[3,8];return[4,r.e(9694).then(r.bind(r,97470)).then(function(e){return e.loadLegacyVideoPlugins(t)})];case 7:E.sent(),E.label=8;case 8:if(!(null===(u=n.plan)||void 0===u?void 0:u.track))return[3,10];return[4,r.e(3104).then(r.bind(r,33322)).then(function(t){var r;return t.schemaFilter(null===(r=n.plan)||void 0===r?void 0:r.track,e)})];case 9:return y=E.sent(),[3,11];case 10:y=void 0,E.label=11;case 11:return v=y,b=(0,en.J)(e,o),[4,(function(e,t,r,n,o){var a,l,u;return(0,i.sH)(this,void 0,void 0,function(){var c,d,h,p=this;return(0,i.YH)(this,function(f){switch(f.label){case 0:return c=[],d=(0,s.I2)(),h=null!==(l=null===(a=e.middlewareSettings)||void 0===a?void 0:a.routingRules)&&void 0!==l?l:[],[4,Promise.all((null!==(u=e.remotePlugins)&&void 0!==u?u:[]).map(function(e){return(0,i.sH)(p,void 0,void 0,function(){var a,s,l,u,p,f,m,g;return(0,i.YH)(this,function(v){switch(v.label){case 0:if(!1===t.All&&!t[e.name]||!1===t[e.name])return[2];v.label=1;case 1:if(v.trys.push([1,12,,13]),!n)return[3,7];s=(a=e.url.split("/"))[a.length-2],l=e.url.replace(s,btoa(s).replace(/=/g,"")),v.label=2;case 2:return v.trys.push([2,4,,6]),[4,(0,ec.k)(l.replace("https://cdn.segment.com",d))];case 3:case 5:return v.sent(),[3,6];case 4:return v.sent(),[4,(0,ec.k)(e.url.replace("https://cdn.segment.com",d))];case 6:return[3,9];case 7:return[4,(0,ec.k)(e.url.replace("https://cdn.segment.com",d))];case 8:v.sent(),v.label=9;case 9:if(u=e.libraryName,"function"!=typeof window[u])return[3,11];return p=window[u],[4,(0,eu.m)(p((0,i.Cl)((0,i.Cl)({},e.settings),r[e.name])))];case 10:(function(e){if(!Array.isArray(e))throw Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];e.forEach(function(e){t.forEach(function(t){var r;if(void 0===e[t])throw Error("Plugin: ".concat(null!==(r=e.name)&&void 0!==r?r:"unknown"," missing required function ").concat(t))})})})(m=Array.isArray(f=v.sent())?f:[f]),g=h.filter(function(t){return t.destinationName===e.creationName}),m.forEach(function(t){var r=new eh(e.creationName,t);g.length&&o&&"destination"===t.type&&r.addMiddleware(o),c.push(r)}),v.label=11;case 11:return[3,13];case 12:return console.warn("Failed to load Remote Plugin",v.sent()),[3,13];case 13:return[2]}})})}))];case 1:return f.sent(),[2,c.filter(Boolean)]}})})})(e,t.integrations,b,o.obfuscate,h).catch(function(){return[]})];case 12:return w=E.sent(),k=(0,i.fX)((0,i.fX)((0,i.fX)([g,el],l,!0),f,!0),w,!0),v&&k.push(v),(null===(c=n.integrations)||void 0===c?void 0:c.All)===!1&&!n.integrations["Segment.io"]||n.integrations&&!1===n.integrations["Segment.io"]||k.push(function(e,t,r){var n,o,a,s,l=e.options.disableClientPersistence?new O.M(e.queue.queue.maxAttempts,[]):new T.x(e.queue.queue.maxAttempts,"dest-Segment.io"),u=null!==(n=null==t?void 0:t.apiHost)&&void 0!==n?n:"api.segment.io/v1",c=null!==(o=null==t?void 0:t.protocol)&&void 0!==o?o:"https",d="".concat(c,"://").concat(u),h=(null===(a=null==t?void 0:t.deliveryStrategy)||void 0===a?void 0:a.strategy)==="batching"?function(e,t){var r,n,o,a=[],s=!1,l=null!==(r=null==t?void 0:t.size)&&void 0!==r?r:10,u=null!==(n=null==t?void 0:t.timeout)&&void 0!==n?n:5e3;function c(t){if(0!==t.length){var r,n=null===(r=t[0])||void 0===r?void 0:r.writeKey;return em("https://".concat(e,"/b"),{keepalive:s,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({batch:t,writeKey:n})})}}function d(){return(0,i.sH)(this,void 0,void 0,function(){var e;return(0,i.YH)(this,function(t){return a.length?(e=a,a=[],[2,c(e)]):[2]})})}return ef(function(){if(s=!0,a.length){var e,t;Promise.all((e=[],t=0,a.forEach(function(r){eg(e[t])>=64&&t++,e[t]?e[t].push(r):e[t]=[r]}),e).map(c)).catch(console.error)}}),{dispatch:function(e,t){return(0,i.sH)(this,void 0,void 0,function(){return(0,i.YH)(this,function(e){return a.push(t),[2,a.length>=l||eg(a)>=450||s?d():void(o||(o=setTimeout(function(){o=void 0,d().catch(console.error)},u)))]})})}}}(u,null===(s=null==t?void 0:t.deliveryStrategy)||void 0===s?void 0:s.config):{dispatch:function(e,t){return ev(e,{headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(t)})}};function p(n){return(0,i.sH)(this,void 0,void 0,function(){var o,a;return(0,i.YH)(this,function(i){if((0,x.a)())return l.push(n),ew(!1,l,f,ew),[2,n];if(o=n.event.type.charAt(0),a=(0,ep.W)(n.event).json(),"track"===n.event.type&&delete a.traits,"alias"===n.event.type){var s,u,c,p,m,g;s=a,g=e.user(),s.previousId=null!==(p=null!==(c=null!==(u=s.previousId)&&void 0!==u?u:s.from)&&void 0!==c?c:g.id())&&void 0!==p?p:g.anonymousId(),s.userId=null!==(m=s.userId)&&void 0!==m?m:s.to,delete s.from,delete s.to,a=s}return[2,h.dispatch("".concat(d,"/").concat(o),(0,ey.S8)(e,a,t,r)).then(function(){return n}).catch(function(e){return("error"===e.type||"Failed to fetch"===e.message)&&(l.push(n),ew(!1,l,f,ew)),n})]})})}var f={name:"Segment.io",type:"after",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:p,identify:p,page:p,alias:p,group:p};return f}(t,b["Segment.io"],e.integrations)),[4,t.register.apply(t,k)];case 13:if(_=E.sent(),!Object.entries(null!==(d=e.enabledMiddleware)&&void 0!==d?d:{}).some(function(e){return e[1]}))return[3,15];return[4,r.e(521).then(r.bind(r,90247)).then(function(r){var n=r.remoteMiddlewares;return(0,i.sH)(S,void 0,void 0,function(){return(0,i.YH)(this,function(r){switch(r.label){case 0:return[4,n(_,e,o.obfuscate)];case 1:return[2,Promise.all(r.sent().map(function(e){return t.addSourceMiddleware(e)}))]}})})})];case 14:E.sent(),E.label=15;case 15:return[2,_]}})})}(m,w,b,t,k)];case 4:if(S=A.sent(),E=null!==(p=window.location.search)&&void 0!==p?p:"",C=null!==(f=window.location.hash)&&void 0!==f?f:"",!(D=E.length?E:C.replace(/(?=#).*(?=\?)/,"")).includes("ajs_"))return[3,6];return[4,w.queryString(D).catch(console.error)];case 5:A.sent(),A.label=6;case 6:return w.initialized=!0,w.emit("initialize",e,t),t.initialPageview&&w.page().catch(console.error),[4,function(e,t){return(0,i.sH)(this,void 0,void 0,function(){return(0,i.YH)(this,function(r){switch(r.label){case 0:return t.push.apply(t,ej()),[4,(0,i.sH)(void 0,void 0,void 0,function(){var r,n;return(0,i.YH)(this,function(i){switch(i.label){case 0:r=0,n=t.getCalls("addSourceMiddleware"),i.label=1;case 1:if(!(r{"use strict";r.d(t,{s:()=>i,w:()=>o});var n=r(93980);function i(e,t){return new Promise(function(r,n){var i=setTimeout(function(){n(Error("Promise timed out"))},t);e.then(function(e){return clearTimeout(i),r(e)}).catch(n)})}function o(e,t,r,o){var a=function(){try{return(0,n.m)(t(e))}catch(e){return Promise.reject(e)}};return new Promise(function(e){return setTimeout(e,r)}).then(function(){return i(a(),null!=o?o:1e3)}).catch(function(t){null==e||e.log("warn","Callback Error",{error:t}),null==e||e.stats.increment("callback_error")}).then(function(){return e})}},15621:(e,t,r)=>{"use strict";r.d(t,{a:()=>o,s:()=>i});var n=r(38730);function i(){return!(0,n.B)()||window.navigator.onLine}function o(){return!i()}},30044:(e,t,r)=>{"use strict";r.d(t,{o:()=>g,d:()=>m});var n,i=r(29659),o=r(83435),a=r(13946),s=function(){function e(){var e=this;this._logs=[],this.log=function(t,r,n){var i=new Date;e._logs.push({level:t,message:r,time:i,extras:n})}}return Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce(function(e,t){var r,n,i,o=(0,a.Cl)((0,a.Cl)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete o.time;var s=null!==(i=null===(n=t.time)||void 0===n?void 0:n.toISOString())&&void 0!==i?i:"";return e[s]&&(s="".concat(s,"-").concat(Math.random())),(0,a.Cl)((0,a.Cl)({},e),((r={})[s]=o,r))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(e){var t=e.level,r=e.message,n=e.extras;"info"===t||"debug"===t?console.log(r,null!=n?n:""):console[t](r,null!=n?n:"")});this._logs=[]},e}(),l=function(){function e(e){this.metrics=[],this.remoteMetrics=e}return e.prototype.increment=function(e,t,r){var n;void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!=r?r:[],type:"counter",timestamp:Date.now()}),null===(n=this.remoteMetrics)||void 0===n||n.increment(e,null!=r?r:[])},e.prototype.gauge=function(e,t,r){this.metrics.push({metric:e,value:t,tags:null!=r?r:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map(function(e){return(0,a.Cl)((0,a.Cl)({},e),{tags:e.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:({gauge:"g",counter:"c"})[e.type],e:e.timestamp}})},e}(),u=r(91095),c=r.n(u),d=r(22136),h=r(35192);function p(e){console.error("Error sending segment performance metrics",e)}var f=function(){function e(e){var t,r,n,i,o=this;if(this.host=null!==(t=null==e?void 0:e.host)&&void 0!==t?t:"api.segment.io/v1",this.sampleRate=null!==(r=null==e?void 0:e.sampleRate)&&void 0!==r?r:1,this.flushTimer=null!==(n=null==e?void 0:e.flushTimer)&&void 0!==n?n:3e4,this.maxQueueSize=null!==(i=null==e?void 0:e.maxQueueSize)&&void 0!==i?i:20,this.queue=[],this.sampleRate>0){var a=!1,s=function(){a||(a=!0,o.flush().catch(p),a=!1,setTimeout(s,o.flushTimer))};s()}}return e.prototype.increment=function(e,t){if(!(!e.includes("analytics_js.")||0===t.length||Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var r=t.reduce(function(e,t){var r=t.split(":"),n=r[0],i=r[1];return e[n]=i,e},{});r.library="analytics.js","web"===(0,h.XZ)()?r.library_version="next-".concat(d.r):r.library_version="npm:next-".concat(d.r),this.queue.push({type:"Counter",metric:e,value:1,tags:r}),e.includes("error")&&this.flush().catch(p)}},e.prototype.flush=function(){return(0,a.sH)(this,void 0,void 0,function(){var e=this;return(0,a.YH)(this,function(t){switch(t.label){case 0:if(this.queue.length<=0)return[2];return[4,this.send().catch(function(t){p(t),e.sampleRate=0})];case 1:return t.sent(),[2]}})})},e.prototype.send=function(){return(0,a.sH)(this,void 0,void 0,function(){var e,t,r;return(0,a.YH)(this,function(n){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},r="https://".concat(this.host,"/m"),[2,c()(r,{headers:t,body:JSON.stringify(e),method:"POST"})]})})},e}(),m=function(e){var t,r,n;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(r=e.type)&&void 0!==r?r:"plugin Error",this.reason=null!==(n=e.reason)&&void 0!==n?n:""},g=function(){function e(e,t){this.logger=new s,this.cancel=function(e){if(e)throw e;throw new m({reason:"Context Cancel"})},this._attempts=0,this._event=e,this._id=null!=t?t:(0,i.v4)(),this.stats=new l(n)}return e.initMetrics=function(e){n=new f(e)},e.system=function(){return new e({type:"track",event:"system"})},e.prototype.isSame=function(e){return e._id===this._id},e.prototype.log=function(e,t,r){this.logger.log(e,t,r)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"event",{get:function(){return this._event},set:function(e){this._event=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attempts",{get:function(){return this._attempts},set:function(e){this._attempts=e},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var r;if("integrations"===e.split(".")[0]){var n=e.split(".")[1];if((null===(r=this._event.integrations)||void 0===r?void 0:r[n])===!1)return this._event}return(0,o.J)(this._event,e,t),this._event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this._event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},38730:(e,t,r)=>{"use strict";function n(){return"undefined"!=typeof window}function i(){return!n()}r.d(t,{B:()=>n,S:()=>i})},53031:(e,t,r)=>{"use strict";function n(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}r.d(t,{p:()=>n})},50282:(e,t,r)=>{"use strict";r.d(t,{C:()=>o,D:()=>a});var n=r(13946),i=r(30044);function o(e,t){var r="action"in t?t.action.name:t.name;e.log("debug","plugin",{plugin:r});var o=new Date().getTime(),a=t[e.event.type];return void 0===a?Promise.resolve(e):(function(e){return(0,n.sH)(this,void 0,void 0,function(){return(0,n.YH)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e()];case 1:return[2,t.sent()];case 2:return[2,Promise.reject(t.sent())];case 3:return[2]}})})})(function(){return a.apply(t,[e])}).then(function(e){var t=new Date().getTime()-o;return e.stats.gauge("plugin_time",t,["plugin:".concat(r)]),e}).catch(function(t){if(t instanceof i.d&&"middleware_cancellation"===t.type)throw t;return t instanceof i.d?e.log("warn",t.type,{plugin:r,error:t}):(e.log("error","plugin Error",{plugin:r,error:t}),e.stats.increment("plugin_error",1,["plugin:".concat(r)])),t})}function a(e,t){return o(e,t).then(function(t){if(t instanceof i.o)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)})}},43742:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var n=r(3478);function i(e){var t=function(e){try{return new URL(e)}catch(e){return}}(e);if(t)for(var r=function(e){var t=e.hostname.split("."),r=t[t.length-1],n=[];if(4===t.length&&parseInt(r,10)>0||t.length<=1)return n;for(var i=t.length-2;i>=0;--i)n.push(t.slice(i).join("."));return n}(t),i=0;i{"use strict";r.d(t,{r:()=>n});var n="1.46.4"},93980:(e,t,r)=>{"use strict";function n(e){return Promise.resolve(e)}r.d(t,{m:()=>n})},20162:(e,t,r)=>{"use strict";function n(e){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find(function(t){return t.src===e})}function i(e,t){var r=n(e);if(void 0!==r){var i=null==r?void 0:r.getAttribute("status");if("loaded"===i)return Promise.resolve(r);if("loading"===i)return new Promise(function(e,t){r.addEventListener("load",function(){return e(r)}),r.addEventListener("error",function(e){return t(e)})})}return new Promise(function(r,n){var i,o=window.document.createElement("script");o.type="text/javascript",o.src=e,o.async=!0,o.setAttribute("status","loading");for(var a=0,s=Object.entries(null!=t?t:{});ao,k:()=>i})},23135:(e,t,r)=>{"use strict";r.d(t,{J:()=>i});var n=r(13946);function i(e,t){var r,i=Object.entries(null!==(r=t.integrations)&&void 0!==r?r:{}).reduce(function(e,t){var r,i,o=t[0],a=t[1];return"object"==typeof a?(0,n.Cl)((0,n.Cl)({},e),((r={})[o]=a,r)):(0,n.Cl)((0,n.Cl)({},e),((i={})[o]={},i))},{});return Object.entries(e.integrations).reduce(function(e,t){var r,o=t[0],a=t[1];return(0,n.Cl)((0,n.Cl)({},e),((r={})[o]=(0,n.Cl)((0,n.Cl)({},a),i[o]),r))},{})}},22634:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(13946),i=function(e,t){return(0,n.sH)(void 0,void 0,void 0,function(){var r;return(0,n.YH)(this,function(i){return[2,(r=function(i){return(0,n.sH)(void 0,void 0,void 0,function(){var o;return(0,n.YH)(this,function(n){switch(n.label){case 0:if(!e(i))return[3,2];return o=r,[4,t()];case 1:return[2,o.apply(void 0,[n.sent()])];case 2:return[2]}})})})(void 0)]})})}},74695:(e,t,r)=>{"use strict";r.d(t,{I2:()=>l,YM:()=>u,qQ:()=>s});var n,i=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,o=function(){var e;return Array.prototype.slice.call(document.querySelectorAll("script")).forEach(function(t){var r,n=null!==(r=t.getAttribute("src"))&&void 0!==r?r:"",o=i.exec(n);o&&o[1]&&(e=o[1])}),e},a=function(){var e;return null!=n?n:null===(e=window.analytics)||void 0===e?void 0:e._cdn},s=function(e){window.analytics&&(window.analytics._cdn=e),n=e},l=function(){var e=a();return e?e:o()||"https://cdn.segment.com"},u=function(){var e=l();return"".concat(e,"/next-integrations")}},98025:(e,t,r)=>{"use strict";r.d(t,{g:()=>o,M:()=>a});var n=r(13946),i=r(90924),o="onRemoveFromFuture",a=function(e){function t(t,r,n){var i=e.call(this)||this;return i.future=[],i.maxAttempts=t,i.queue=r,i.seen=null!=n?n:{},i}return(0,n.C6)(t,e),t.prototype.push=function(){for(var e=this,t=[],r=0;re.maxAttempts||e.includes(t))&&(e.queue.push(t),!0)});return this.queue=this.queue.sort(function(t,r){return e.getAttempts(t)-e.getAttempts(r)}),n},t.prototype.pushWithBackoff=function(e){var t,r,n,i,a,s=this;if(0===this.getAttempts(e))return this.push(e)[0];var l=this.updateAttempts(e);return!(l>this.maxAttempts||this.includes(e))&&(setTimeout(function(){s.queue.push(e),s.future=s.future.filter(function(t){return t.id!==e.id}),s.emit(o)},(t={attempt:l-1},r=Math.random()+1,n=t.minTimeout,Math.min(r*(void 0===n?500:n)*Math.pow(void 0===(i=t.factor)?2:i,t.attempt),void 0===(a=t.maxTimeout)?1/0:a))),this.future.push(e),!0)},t.prototype.getAttempts=function(e){var t;return null!==(t=this.seen[e.id])&&void 0!==t?t:0},t.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},t.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||!!this.queue.find(function(t){return t.id===e.id})||!!this.future.find(function(t){return t.id===e.id})},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(i.v)},15140:(e,t,r)=>{"use strict";r.d(t,{x:()=>h});var n=r(13946),i=r(98025),o=r(30044),a=r(38730),s={getItem:function(){},setItem:function(){},removeItem:function(){}};try{s=(0,a.B)()&&window.localStorage?window.localStorage:s}catch(e){console.warn("Unable to access localStorage",e)}function l(e){var t=s.getItem(e);return(t?JSON.parse(t):[]).map(function(e){return new o.o(e.event,e.id)})}function u(e){var t=s.getItem(e);return t?JSON.parse(t):{}}function c(e){s.removeItem(e)}function d(e,t,r){void 0===r&&(r=0);var n="persisted-queue:v1:".concat(e,":lock"),i=s.getItem(n),o=i?JSON.parse(i):null,a=null===o||new Date().getTime()>o;if(a){s.setItem(n,JSON.stringify(new Date().getTime()+50)),t(),s.removeItem(n);return}!a&&r<3?setTimeout(function(){d(e,t,r+1)},50):console.error("Unable to retrieve lock")}var h=function(e){function t(t,r){var i=e.call(this,t,[])||this,o="persisted-queue:v1:".concat(r,":items"),a="persisted-queue:v1:".concat(r,":seen"),h=[],p={};return d(r,function(){try{h=l(o),p=u(a),c(o),c(a),i.queue=(0,n.fX)((0,n.fX)([],h,!0),i.queue,!0),i.seen=(0,n.Cl)((0,n.Cl)({},p),i.seen)}catch(e){console.error(e)}}),document.addEventListener("pagehide",function(){if(i.todo>0){var e=(0,n.fX)((0,n.fX)([],i.queue,!0),i.future,!0);try{d(r,function(){var t,r,c,d;t=l(o),r=(0,n.fX)((0,n.fX)([],e,!0),t,!0).reduce(function(e,t){var r;return(0,n.Cl)((0,n.Cl)({},e),((r={})[t.id]=t,r))},{}),s.setItem(o,JSON.stringify(Object.values(r))),c=i.seen,d=u(a),s.setItem(a,JSON.stringify((0,n.Cl)((0,n.Cl)({},d),c)))})}catch(e){console.error(e)}}}),i}return(0,n.C6)(t,e),t}(i.M)},9252:(e,t,r)=>{"use strict";r.d(t,{W:()=>i});var n=r(24303);function i(e,t){var r=new n.Facade(e,t);return"track"===e.type&&(r=new n.Track(e,t)),"identify"===e.type&&(r=new n.Identify(e,t)),"page"===e.type&&(r=new n.Page(e,t)),"alias"===e.type&&(r=new n.Alias(e,t)),"group"===e.type&&(r=new n.Group(e,t)),"screen"===e.type&&(r=new n.Screen(e,t)),Object.defineProperty(r,"obj",{value:e,writable:!0}),r}},61290:(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyDestinationMiddleware:()=>s,sourceMiddlewarePlugin:()=>l});var n=r(13946),i=r(30044),o=r(93980),a=r(9252);function s(e,t,r){return(0,n.sH)(this,void 0,void 0,function(){var i,s,l,u,c;return(0,n.YH)(this,function(d){switch(d.label){case 0:i=(0,a.W)(t,{clone:!0,traverse:!1}).rawEvent(),s=0,l=r,d.label=1;case 1:if(!(s{"use strict";r.d(t,{S8:()=>c,XZ:()=>u});var n,i=r(13946),o=r(3478),a=r(53031),s=r(43742),l=r(22136);function u(){return"npm"}function c(e,t,r,u){var c,d,h,p,f,m,g,v,y=e.user(),b=window.location.search;t.context=null!==(m=null!==(f=t.context)&&void 0!==f?f:t.options)&&void 0!==m?m:{};var w=t.context;delete t.options,t.writeKey=null==r?void 0:r.apiKey,w.userAgent=window.navigator.userAgent;var k=navigator.userLanguage||navigator.language;void 0===w.locale&&void 0!==k&&(w.locale=k),w.library||(w.library={name:"analytics.js",version:"npm:next-".concat(l.r)}),b&&!w.campaign&&(w.campaign=((p=b).startsWith("?")&&(p=p.substring(1)),(p=p.replace(/\?/g,"&")).split("&").reduce(function(e,t){var r=t.split("="),n=r[0],i=r[1];if(n.includes("utm_")&&n.length>4){var o=n.substr(4);"campaign"===o&&(o="name"),e[o]=(0,a.p)(void 0===i?"":i)}return e},{}))),c=null!==(g=e.options.disableClientPersistence)&&void 0!==g&&g,d=o.A.get("s:context.referrer"),h=function(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1));for(var r=(e=e.replace(/\?/g,"&")).split("&"),n=0;n0&&(t._metadata={failedInitializations:x});var _=[],S=[];for(var E in u){var C=u[E];"Segment.io"===E&&_.push(E),"bundled"===C.bundlingStatus&&_.push(E),"unbundled"===C.bundlingStatus&&S.push(E)}for(var D=0,A=(null==r?void 0:r.unbundledIntegrations)||[];D{"use strict";r.d(t,{C6:()=>i,Cl:()=>o,Tt:()=>a,YH:()=>l,fX:()=>u,sH:()=>s});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function l(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t){if("[object Object]"===Object.prototype.toString.call(t)){var r={};for(var n in t)r[n]=e(t[n]);return r}return Array.isArray(t)?t.map(e):t}},37532:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=void 0;var i=n(r(35615)),o=r(42265);function a(e,t){o.Facade.call(this,e,t)}t.Delete=a,i.default(a,o.Facade),a.prototype.type=function(){return"delete"}},42265:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Facade=void 0;var i=n(r(38971)),o=r(93194),a=n(r(77751)),s=n(r(87639)),l=n(r(48578)),u=n(r(50518));function c(e,t){t=t||{},this.raw=o.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=o.clone(e)),"traverse"in t||(t.traverse=!0),"timestamp"in e?e.timestamp=s.default(e.timestamp):e.timestamp=new Date,t.traverse&&u.default(e),this.opts=t,this.obj=e}t.Facade=c;var d=c.prototype;function h(e){return o.clone(e)}d.proxy=function(e){var t,r=e.split("."),n=this[e=r.shift()]||this.field(e);return n?("function"==typeof n&&(n=n.call(this)||{}),0===r.length||(n=l.default(n,r.join("."))),this.opts.clone?(t=n,o.clone(t)):n):n},d.field=function(e){var t,r=this.obj[e];return this.opts.clone?(t=r,o.clone(t)):r},c.proxy=function(e){return function(){return this.proxy(e)}},c.field=function(e){return function(){return this.field(e)}},c.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var r=this.proxy(e);return r&&(r=[this.opts.clone?o.clone(r):r]),r||[]}},c.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var r=this.proxy(e+"s");if(Array.isArray(r))return r[0]}},d.json=function(){var e=this.opts.clone?o.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e},d.rawEvent=function(){return this.raw},d.options=function(e){var t=this.obj.options||this.obj.context||{},r=this.opts.clone?o.clone(t):t;if(!e)return r;if(this.enabled(e)){var n=this.integrations(),i=n[e]||l.default(n,e);return"object"!=typeof i&&(i=l.default(this.options(),e)),"object"==typeof i?i:{}}},d.context=d.options,d.enabled=function(e){var t=this.proxy("options.providers.all");"boolean"!=typeof t&&(t=this.proxy("options.all")),"boolean"!=typeof t&&(t=this.proxy("integrations.all")),"boolean"!=typeof t&&(t=!0);var r=t&&a.default(e),n=this.integrations();if(n.providers&&n.providers.hasOwnProperty(e)&&(r=n.providers[e]),n.hasOwnProperty(e)){var i=n[e];r="boolean"!=typeof i||i}return!!r},d.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},d.active=function(){var e=this.proxy("options.active");return null==e&&(e=!0),e},d.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},d.sessionId=d.anonymousId,d.groupId=c.proxy("options.groupId"),d.traits=function(e){var t=this.proxy("options.traits")||{},r=this.userId();for(var n in e=e||{},r&&(t.id=r),e){var i=null==this[n]?this.proxy("options.traits."+n):this[n]();null!=i&&(t[e[n]]=i,delete t[n])}return t},d.library=function(){var e=this.proxy("options.library");return e?"string"==typeof e?{name:e,version:null}:e:{name:"unknown",version:null}},d.device=function(){var e=this.proxy("context.device");("object"!=typeof e||null===e)&&(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e},d.userAgent=c.proxy("context.userAgent"),d.timezone=c.proxy("context.timezone"),d.timestamp=c.field("timestamp"),d.channel=c.field("channel"),d.ip=c.proxy("context.ip"),d.userId=c.field("userId"),i.default(d)},7748:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var i=n(r(35615)),o=n(r(86362)),a=n(r(87639)),s=r(42265);function l(e,t){s.Facade.call(this,e,t)}t.Group=l,i.default(l,s.Facade);var u=l.prototype;u.action=function(){return"group"},u.type=u.action,u.groupId=s.Facade.field("groupId"),u.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return a.default(e)},u.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();if(o.default(t))return t},u.traits=function(e){var t=this.properties(),r=this.groupId();for(var n in e=e||{},r&&(t.id=r),e){var i=null==this[n]?this.proxy("traits."+n):this[n]();null!=i&&(t[e[n]]=i,delete t[n])}return t},u.name=s.Facade.proxy("traits.name"),u.industry=s.Facade.proxy("traits.industry"),u.employees=s.Facade.proxy("traits.employees"),u.properties=function(){return this.field("traits")||this.field("properties")||{}}},65543:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Identify=void 0;var i=r(42265),o=n(r(48578)),a=n(r(35615)),s=n(r(86362)),l=n(r(87639)),u=function(e){return e.trim()};function c(e,t){i.Facade.call(this,e,t)}t.Identify=c,a.default(c,i.Facade);var d=c.prototype;d.action=function(){return"identify"},d.type=d.action,d.traits=function(e){var t=this.field("traits")||{},r=this.userId();for(var n in e=e||{},r&&(t.id=r),e){var i=null==this[n]?this.proxy("traits."+n):this[n]();null!=i&&(t[e[n]]=i,n!==e[n]&&delete t[n])}return t},d.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();if(s.default(t))return t},d.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return l.default(e)},d.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return l.default(e)},d.companyName=function(){return this.proxy("traits.company.name")},d.name=function(){var e=this.proxy("traits.name");if("string"==typeof e)return u(e);var t=this.firstName(),r=this.lastName();if(t&&r)return u(t+" "+r)},d.firstName=function(){var e=this.proxy("traits.firstName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");if("string"==typeof t)return u(t).split(" ")[0]},d.lastName=function(){var e=this.proxy("traits.lastName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");if("string"==typeof t){var r=u(t).indexOf(" ");if(-1!==r)return u(t.substr(r+1))}},d.uid=function(){return this.userId()||this.username()||this.email()},d.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},d.age=function(){var e=this.birthday(),t=o.default(this.traits(),"age");return null!=t?t:e instanceof Date?new Date().getFullYear()-e.getFullYear():void 0},d.avatar=function(){var e=this.traits();return o.default(e,"avatar")||o.default(e,"photoUrl")||o.default(e,"avatarUrl")},d.position=function(){var e=this.traits();return o.default(e,"position")||o.default(e,"jobTitle")},d.username=i.Facade.proxy("traits.username"),d.website=i.Facade.one("traits.website"),d.websites=i.Facade.multi("traits.website"),d.phone=i.Facade.one("traits.phone"),d.phones=i.Facade.multi("traits.phone"),d.address=i.Facade.proxy("traits.address"),d.gender=i.Facade.proxy("traits.gender"),d.birthday=i.Facade.proxy("traits.birthday")},24303:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/.+\@.+\..+/;t.default=function(e){return r.test(e)}},77751:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={Salesforce:!0};t.default=function(e){return!r[e]}},13644:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var i=n(r(35615)),o=r(42265),a=r(85616),s=n(r(86362));function l(e,t){o.Facade.call(this,e,t)}t.Page=l,i.default(l,o.Facade);var u=l.prototype;u.action=function(){return"page"},u.type=u.action,u.category=o.Facade.field("category"),u.name=o.Facade.field("name"),u.title=o.Facade.proxy("properties.title"),u.path=o.Facade.proxy("properties.path"),u.url=o.Facade.proxy("properties.url"),u.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},u.properties=function(e){var t=this.field("properties")||{},r=this.category(),n=this.name();for(var i in e=e||{},r&&(t.category=r),n&&(t.name=n),e){var o=null==this[i]?this.proxy("properties."+i):this[i]();null!=o&&(t[e[i]]=o,i!==e[i]&&delete t[i])}return t},u.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();if(s.default(t))return t},u.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t},u.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},u.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},66871:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Screen=void 0;var i=n(r(35615)),o=r(13644),a=r(85616);function s(e,t){o.Page.call(this,e,t)}t.Screen=s,i.default(s,o.Page),s.prototype.action=function(){return"screen"},s.prototype.type=s.prototype.action,s.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"},s.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},85616:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var i=n(r(35615)),o=r(42265),a=r(65543),s=n(r(86362)),l=n(r(48578));function u(e,t){o.Facade.call(this,e,t)}t.Track=u,i.default(u,o.Facade);var c=u.prototype;c.action=function(){return"track"},c.type=c.action,c.event=o.Facade.field("event"),c.value=o.Facade.proxy("properties.value"),c.category=o.Facade.proxy("properties.category"),c.id=o.Facade.proxy("properties.id"),c.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},c.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},c.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},c.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},c.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},c.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},c.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},c.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},c.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},c.sku=o.Facade.proxy("properties.sku"),c.tax=o.Facade.proxy("properties.tax"),c.name=o.Facade.proxy("properties.name"),c.price=o.Facade.proxy("properties.price"),c.total=o.Facade.proxy("properties.total"),c.repeat=o.Facade.proxy("properties.repeat"),c.coupon=o.Facade.proxy("properties.coupon"),c.shipping=o.Facade.proxy("properties.shipping"),c.discount=o.Facade.proxy("properties.discount"),c.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},c.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},c.description=o.Facade.proxy("properties.description"),c.plan=o.Facade.proxy("properties.plan"),c.subtotal=function(){var e=l.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var r=this.tax();r&&(t-=r),(r=this.shipping())&&(t-=r),(r=this.discount())&&(t+=r)}return t},c.products=function(){var e=this.properties(),t=l.default(e,"products");return Array.isArray(t)?t.filter(function(e){return null!==e}):[]},c.quantity=function(){return(this.obj.properties||{}).quantity||1},c.currency=function(){return(this.obj.properties||{}).currency||"USD"},c.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},c.query=o.Facade.proxy("options.query"),c.properties=function(e){var t=this.field("properties")||{};for(var r in e=e||{}){var n=null==this[r]?this.proxy("properties."+r):this[r]();null!=n&&(t[e[r]]=n,delete t[r])}return t},c.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},c.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();if(s.default(t))return t},c.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event();return!e&&t&&t.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(e=this.proxy("properties.total")),function(e){if(e&&("number"==typeof e||"string"==typeof e&&!isNaN(e=parseFloat(e=e.replace(/\$/g,"")))))return e}(e)},c.cents=function(){var e=this.revenue();return"number"!=typeof e?this.value()||0:100*e},c.identify=function(){var e=this.json();return e.traits=this.traits(),new a.Identify(e,this.opts)}},50518:(e,t,r)=>{"use strict";var n=r(27237);e.exports=function e(t,r){var i,o;return(void 0===r&&(r=!0),t&&"object"==typeof t)?(i=r,Object.keys(t).forEach(function(r){t[r]=e(t[r],i)}),t):Array.isArray(t)?(o=r,t.forEach(function(r,n){t[n]=e(r,o)}),t):n.is(t,r)?n.parse(t):t}},27237:(e,t)=>{"use strict";var r=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;t.parse=function(e){var t=[1,5,6,7,11,12],n=r.exec(e),i=0;if(!n)return new Date(e);for(var o,a=0;o=t[a];a++)n[o]=parseInt(n[o],10)||0;return n[2]=parseInt(n[2],10)||1,n[3]=parseInt(n[3],10)||1,n[2]--,n[8]=n[8]?(n[8]+"00").substring(0,3):0," "===n[4]?i=new Date().getTimezoneOffset():"Z"!==n[9]&&n[10]&&(i=60*n[11]+n[12],"+"===n[10]&&(i=0-i)),new Date(Date.UTC(n[1],n[2],n[3],n[5],n[6]+i,n[7],n[8]))},t.is=function(e,t){return"string"==typeof e&&(!t||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&r.test(e)}},25369:(e,t,r)=>{"use strict";let n;r.d(t,{Cp:()=>C,l7:()=>D});var i,o=r(18436);function a(){var e=(0,o.V)(),t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");var r=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&r())>>e/4).toString(16))}var s=r(22234),l=(0,o.V)(),u=["debug","info","warn","error","log","assert","trace"];function c(e){var t=(0,o.V)();if(!("console"in t))return e();var r=t.console,n={};u.forEach(e=>{var i=r[e]&&r[e].__sentry_original__;e in t.console&&i&&(n[e]=r[e],r[e]=i)});try{return e()}finally{Object.keys(n).forEach(e=>{r[e]=n[e]})}}function d(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?u.forEach(r=>{t[r]=(...t)=>{e&&c(()=>{l.console[r](`Sentry Logger [${r}]:`,...t)})}}):u.forEach(e=>{t[e]=()=>void 0}),t}"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?n=(0,o.B)("logger",d):n=d();var h=r(52615),p=Object.prototype.toString;function f(e){return"[object Object]"===p.call(e)}function m(e){return!!(e&&e.then&&"function"==typeof e.then)}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(i||(i={}));class g{__init(){this._state=i.PENDING}__init2(){this._handlers=[]}constructor(e){g.prototype.__init.call(this),g.prototype.__init2.call(this),g.prototype.__init3.call(this),g.prototype.__init4.call(this),g.prototype.__init5.call(this),g.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new g((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new g((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{if(i){r(n);return}t(n)})})}__init3(){this._resolve=e=>{this._setResult(i.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(i.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{if(this._state===i.PENDING){if(m(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state!==i.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===i.RESOLVED&&e[1](this._value),this._state===i.REJECTED&&e[2](this._value),e[0]=!0)})}}}}function v(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,s.zf)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:a()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var r=e.timestamp-e.started;e.duration=r>=0?r:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}class y{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new y;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&v(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){var t=e(this);return t instanceof y?t:this}return e instanceof y?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):f(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var r="number"==typeof t?Math.min(t,100):100;if(r<=0)return this;var n={timestamp:(0,s.lu)(),...e};return this._breadcrumbs=[...this._breadcrumbs,n].slice(-r),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var r=this._span.transaction&&this._span.transaction.name;r&&(e.tags={transaction:r,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...(0,o.B)("globalEventProcessors",()=>[]),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,r,i=0){return new g((o,a)=>{var s=e[i];if(null===t||"function"!=typeof s)o(t);else{var l=s({...t},r);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.id&&null===l&&n.log(`Event processor "${s.id}" dropped event`),m(l)?l.then(t=>this._notifyEventProcessors(e,t,r,i+1).then(o)).then(null,a):this._notifyEventProcessors(e,l,r,i+1).then(o).then(null,a)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}class b{__init(){this._stack=[{}]}constructor(e,t=new y,r=4){this._version=r,b.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version{i.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},o)}),r}captureMessage(e,t,r){var n=this._lastEventId=r&&r.event_id?r.event_id:a(),i=Error(e);return this._withClient((o,a)=>{o.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},a)}),n}captureEvent(e,t){var r=t&&t.event_id?t.event_id:a();return"transaction"!==e.type&&(this._lastEventId=r),this._withClient((n,i)=>{n.captureEvent(e,{...t,event_id:r},i)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:r,client:n}=this.getStackTop();if(!r||!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=n.getOptions&&n.getOptions()||{};if(!(o<=0)){var a={timestamp:(0,s.lu)(),...e},l=i?c(()=>i(a,t)):a;null!==l&&r.addBreadcrumb(l,o)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var r=this.getScope();r&&r.setTag(e,t)}setExtra(e,t){var r=this.getScope();r&&r.setExtra(e,t)}setContext(e,t){var r=this.getScope();r&&r.setContext(e,t)}configureScope(e){let{scope:t,client:r}=this.getStackTop();t&&r&&e(t)}run(e){var t=k(this);try{e(this)}finally{k(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,r=t&&t.getSession();if(r){let e;e={},"ok"===r.status&&(e={status:"exited"}),v(r,e)}this._sendSessionUpdate(),t&&t.setSession()}startSession(e){let{scope:t,client:r}=this.getStackTop(),{release:n,environment:i}=r&&r.getOptions()||{},{userAgent:l}=(0,o.V)().navigator||{};var u,c,d,h=(u={release:n,environment:i,...t&&{user:t.getUser()},...l&&{userAgent:l},...e},c=(0,s.zf)(),d={sid:a(),init:!0,timestamp:c,started:c,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=d,function e(t,r){if(f(t)){var n=r.get(t);if(void 0!==n)return n;var i={};for(var o of(r.set(t,i),Object.keys(t)))void 0!==t[o]&&(i[o]=e(t[o],r));return i}if(Array.isArray(t)){var n=r.get(t);if(void 0!==n)return n;var i=[];return r.set(t,i),t.forEach(t=>{i.push(e(t,r))}),i}return t}({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}},new Map)}},u&&v(d,u),d);if(t){var p=t.getSession&&t.getSession();p&&"ok"===p.status&&v(p,{status:"exited"}),this.endSession(),t.setSession(h)}return h}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop();if(e){var r=e.getSession();r&&t&&t.captureSession&&t.captureSession(r)}}_withClient(e){let{scope:t,client:r}=this.getStackTop();r&&e(r,t)}_callExtensionMethod(e,...t){var r=w().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function w(){var e=(0,o.V)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function k(e){var t=w(),r=S(t);return E(t,e),r}function x(){var e=w();return((!_(e)||S(e).isOlderThan(4))&&E(e,new b),(0,h.wD)())?function(e){try{var t=w().__SENTRY__,r=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!r)return S(e);if(!_(r)||S(r).isOlderThan(4)){var n=S(e).getStackTop();E(r,new b(n.client,y.clone(n.scope)))}return S(r)}catch(t){return S(e)}}(e):S(e)}function _(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function S(e){return(0,o.B)("hub",()=>new b,e)}function E(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}function C(e,t){return x().captureException(e,{captureContext:t})}function D(e,t){x().setExtra(e,t)}},18436:(e,t,r)=>{"use strict";r.d(t,{B:()=>a,V:()=>o});var n=r(52615),i={};function o(){return(0,n.wD)()?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(e,t,r){var n=r||o(),i=n.__SENTRY__=n.__SENTRY__||{};return i[e]||(i[e]=t())}},52615:(e,t,r)=>{"use strict";r.d(t,{fj:()=>o,wD:()=>i}),e=r.hmd(e);var n=r(39907);function i(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==n?n:0)}function o(e,t){return e.require(t)}},22234:(e,t,r)=>{"use strict";r.d(t,{lu:()=>l,zf:()=>u});var n=r(18436),i=r(52615);e=r.hmd(e);var o={nowSeconds:()=>Date.now()/1e3},a=(0,i.wD)()?function(){try{return(0,i.fj)(e,"perf_hooks").performance}catch(e){return}}():function(){let{performance:e}=(0,n.V)();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},l=o.nowSeconds.bind(o),u=s.nowSeconds.bind(s);(()=>{let{performance:e}=(0,n.V)();if(e&&e.now){var t=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-r):36e5,o=e.timing&&e.timing.navigationStart,a="number"==typeof o?Math.abs(o+t-r):36e5;return i<36e5||a<36e5?i<=a?e.timeOrigin:o:r}})()},48761:e=>{e.exports=function(e){if("number"!=typeof e||isNaN(e))throw TypeError(`Expected a number, got ${typeof e}`);let t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return`${(t?"-":"")+e} B`;let n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,n));let i=r[n];return e>=10||e%1==0?`${(t?"-":"")+e.toFixed(0)} ${i}`:`${(t?"-":"")+e.toFixed(1)} ${i}`}},60002:e=>{e.exports=function(e){if("number"!=typeof e||isNaN(e))throw TypeError("Expected a number, got "+typeof e);var t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,n));var i=r[n];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+i:(t?"-":"")+e.toFixed(1)+" "+i}},23990:(e,t,r)=>{"use strict";r.d(t,{A:()=>O});var n=r(14041),i=r(99870),o=r.n(i),a=r(77447),s=r(69651),l=r(40520),u=r.n(l),c=r(69011),d=r.n(c),h="__react_svg_text_measurement_id";let p=d()(function(e,t){try{var r=document.getElementById(h);if(!r){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.style.width="0",n.style.height="0",n.style.position="absolute",n.style.top="-100%",n.style.left="-100%",(r=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",h),n.appendChild(r),document.body.appendChild(n)}return Object.assign(r.style,t),r.textContent=e,r.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)});var f=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function m(e){return"number"==typeof e}function g(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}var v=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function y(){return(y=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,v)),q=U.x,H=void 0===q?0:q,V=U.fontSize,$=(r=void 0===(t=e.verticalAnchor)?"end":t,o=void 0!==(i=e.scaleToFit)&&i,a=e.angle,s=e.width,c=void 0===(l=e.lineHeight)?"1em":l,h=void 0===(d=e.capHeight)?"0.71em":d,w=e.children,k=e.style,S=void 0===(_=(x=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,f)).x)?0:_,C=void 0===(E=x.y)?0:E,D=!g(S)||!g(C),j=(A=(0,n.useMemo)(function(){return{wordsWithWidth:(null==w?[]:w.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:p(e,k)||0}}),spaceWidth:p("\xa0",k)||0}},[w,k])).wordsWithWidth,O=A.spaceWidth,T=(0,n.useMemo)(function(){return D?[]:s||o?j.reduce(function(e,t){var r=t.word,n=t.wordWidth,i=e[e.length-1];return i&&(null==s||o||(i.width||0)+n+O0){var t=T[0].width||1,r="shrink-only"===o?Math.min(s/t,1):s/t,n=S-r*S,i=C-r*C;e.push("matrix("+r+", 0, 0, "+r+", "+n+", "+i+")")}return a&&e.push("rotate("+a+", "+S+", "+C+")"),e.length>0?e.join(" "):""},[D,S,C,s,o,T,a]),{wordsByLines:T,startDy:P,transform:R}),W=$.wordsByLines,Y=$.startDy,G=$.transform;return n.createElement("svg",{ref:I,x:void 0===M?0:M,y:void 0===N?0:N,fontSize:V,style:b},W.length>0?n.createElement("text",y({ref:L,transform:G},U,{textAnchor:void 0===F?"start":F}),W.map(function(e,t){return n.createElement("tspan",{key:t,x:H,dy:0===t?Y:z},e.words.join(" "))})):null)}var k=r(3708);function x(){return(x=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,A),M=null!=b?b:"tickFormat"in y?y.tickFormat():E,N=m===k.A.left,F=m===k.A.top,I=F||m===k.A.bottom,L=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var r=e.bandwidth();return"center"===t&&(r/=2),e.round()&&(r=Math.round(r)),function(t){var n=e(t);return"number"==typeof n?n+r:n}}return e}(y),B=N||F?-1:1,z=y.range(),U=D({x:Number(z[0])+.5-v,y:0},I),q=D({x:Number(z[z.length-1])+.5+v,y:0},I),H=(null!=T?T:"ticks"in y?y.ticks(p):y.domain().filter(function(e,t,r){return null==p||r.length<=p||t%Math.round((r.length-1)/p)==0})).filter(function(e){return!c||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),V=H.map(function(e){var t=e.value,r=e.index,n=function(e){if(("function"==typeof e||"object"==typeof e&&e)&&"valueOf"in e){var t=e.valueOf();if("number"==typeof t)return t}return e}(L(t));return{value:t,index:r,from:D({x:n,y:0},I),to:D({x:n,y:O*B},I),formattedValue:M(t,r,H)}});return n.createElement(a.A,{className:o()("visx-axis",r),top:void 0===P?0:P,left:void 0===d?0:d},(void 0===t?function(e){var t=e.axisFromPoint,r=e.axisLineClassName,i=e.axisToPoint,l=e.hideAxisLine,u=e.hideTicks,c=e.horizontal,d=e.label,h=void 0===d?"":d,p=e.labelClassName,f=e.labelOffset,m=e.labelProps,g=void 0===m?S:m,v=e.orientation,y=void 0===v?k.A.bottom:v,b=e.scale,E=e.stroke,C=e.strokeDasharray,D=e.strokeWidth,A=void 0===D?1:D,j=e.tickClassName,O=e.tickComponent,T=e.tickLineProps,P=e.tickLabelProps,R=void 0===P?function(){return S}:P,M=e.tickLength,N=e.tickStroke,F=e.tickTransform,I=e.ticks,L=e.ticksComponent,B=I.map(function(e){return R(e.value,e.index,I)}),z=Math.max.apply(Math,[10].concat(B.map(function(e){return"number"==typeof e.fontSize?e.fontSize:0})));return n.createElement(n.Fragment,null,(void 0===L?function(e){var t=e.hideTicks,r=e.horizontal,i=e.orientation,l=e.tickClassName,u=e.tickComponent,c=e.tickLabelProps,d=e.tickStroke,h=void 0===d?"#222":d,p=e.tickTransform,f=e.ticks,m=e.strokeWidth,g=e.tickLineProps;return f.map(function(e){var d,f=e.value,v=e.index,y=e.from,b=e.to,_=e.formattedValue,S=null!=(d=c[v])?d:{},E=Math.max(10,"number"==typeof S.fontSize&&S.fontSize||0),C=b.y+(r&&i!==k.A.top?E:0);return n.createElement(a.A,{key:"visx-tick-"+f+"-"+v,className:o()("visx-axis-tick",l),transform:p},!t&&n.createElement(s.A,x({from:y,to:b,stroke:h,strokeWidth:m,strokeLinecap:"square"},g)),u?u(x({},S,{x:b.x,y:C,formattedValue:_})):n.createElement(w,x({x:b.x,y:C},S),_))})}:L)({hideTicks:u,horizontal:c,orientation:y,scale:b,tickClassName:j,tickComponent:O,tickLabelProps:B,tickStroke:void 0===N?"#222":N,tickTransform:F,ticks:I,strokeWidth:A,tickLineProps:T}),!l&&n.createElement(s.A,{className:o()("visx-axis-line",r),from:t,to:i,stroke:void 0===E?"#222":E,strokeWidth:A,strokeDasharray:C}),h&&n.createElement(w,_({className:o()("visx-axis-label",p)},function(e){var t,r,n,i=e.labelOffset,o=e.labelProps,a=e.orientation,s=e.range,l=e.tickLabelFontSize,u=e.tickLength,c=a===k.A.left||a===k.A.top?-1:1;if(a===k.A.top||a===k.A.bottom){var d=a===k.A.bottom&&"number"==typeof o.fontSize?o.fontSize:0;t=(Number(s[0])+Number(s[s.length-1]))/2,r=c*(u+i+l+d)}else t=c*((Number(s[0])+Number(s[s.length-1]))/2),r=-(u+i),n="rotate("+90*c+")";return{x:t,y:r,transform:n}}({labelOffset:void 0===f?14:f,labelProps:g,orientation:y,range:b.range(),tickLabelFontSize:z,tickLength:void 0===M?8:M}),g),h))}:t)(j({},R,{axisFromPoint:U,axisToPoint:q,hideAxisLine:void 0!==i&&i,hideTicks:void 0!==l&&l,hideZero:c,horizontal:I,numTicks:p,orientation:m,rangePadding:v,scale:y,tickFormat:M,tickLength:O,tickPosition:L,tickSign:B,ticks:V})))}},33780:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(14041),i=r(99870),o=r.n(i),a=r(23990),s=r(3708),l=["axisClassName","labelOffset","tickLabelProps","tickLength"];function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,l);return n.createElement(a.A,u({axisClassName:o()("visx-axis-bottom",t),labelOffset:void 0===r?8:r,orientation:s.A.bottom,tickLabelProps:void 0===i?c:i,tickLength:void 0===d?8:d},h))}},32598:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(14041),i=r(99870),o=r.n(i),a=r(23990),s=r(3708),l=["axisClassName","labelOffset","tickLabelProps","tickLength"];function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,l);return n.createElement(a.A,u({axisClassName:o()("visx-axis-left",t),labelOffset:void 0===r?36:r,orientation:s.A.left,tickLabelProps:void 0===i?c:i,tickLength:void 0===d?8:d},h))}},3708:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n={top:"top",left:"left",right:"right",bottom:"bottom"}},28466:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(43155);function i(){return(i=Object.assign||function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:i({},o);if(e&&"clientX"in e)return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,r=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return r?{x:r.x+r.width/2,y:r.y+r.height/2}:i({},o)}(t),a=e&&(e instanceof SVGElement||"ownerSVGElement"in e)?e.ownerSVGElement:e,s=a&&"getScreenCTM"in a?a.getScreenCTM():null;if(a&&"createSVGPoint"in a&&s){var l=a.createSVGPoint();return l.x=r.x,l.y=r.y,l=l.matrixTransform(s.inverse()),new n.A({x:l.x,y:l.y})}var u=e.getBoundingClientRect();return new n.A({x:r.x-u.left-e.clientLeft,y:r.y-u.top-e.clientTop})}function s(e,t){if(e&&e instanceof Element&&t)return a(e,t);if(e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)){var r=e.target;if(r)return a(r,e)}return null}},77447:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(39067),i=r.n(n),o=r(14041),a=r(99870),s=r.n(a),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,l);return o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:n||"translate("+(void 0===r?0:r)+", "+(void 0===t?0:t)+")"},d),a)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},30740:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Group:()=>n.A});var n=r(77447)},43155:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{A:()=>i});var i=function(){function e(e){var t=e.x,r=e.y;n(this,"x",0),n(this,"y",0),this.x=void 0===t?0:t,this.y=void 0===r?0:r}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},6228:(e,t,r)=>{"use strict";r.d(t,{A:()=>ee});var n,i,o=r(39067),a=r.n(o),s=r(12784),l=r.n(s),u=r(14041),c=[],d="ResizeObserver loop completed with undelivered notifications.",h=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:d}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=d),window.dispatchEvent(e)};!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(n||(n={}));var p=function(e){return Object.freeze(e)},f=function(e,t){this.inlineSize=e,this.blockSize=t,p(this)},m=function(){function e(e,t,r,n){return this.x=e,this.y=t,this.width=r,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,p(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),g=function(e){return e instanceof SVGElement&&"getBBox"in e},v=function(e){if(g(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},y=function(e){if(e instanceof Element)return!0;var t,r=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},b=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},w="undefined"!=typeof window?window:{},k=new WeakMap,x=/auto|scroll/,_=/^tb|vertical/,S=/msie|trident/i.test(w.navigator&&w.navigator.userAgent),E=function(e){return parseFloat(e||"0")},C=function(e,t,r){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=!1),new f((r?t:e)||0,(r?e:t)||0)},D=p({devicePixelContentBoxSize:C(),borderBoxSize:C(),contentBoxSize:C(),contentRect:new m(0,0,0,0)}),A=function(e,t){if(void 0===t&&(t=!1),k.has(e)&&!t)return k.get(e);if(v(e))return k.set(e,D),D;var r=getComputedStyle(e),n=g(e)&&e.ownerSVGElement&&e.getBBox(),i=!S&&"border-box"===r.boxSizing,o=_.test(r.writingMode||""),a=!n&&x.test(r.overflowY||""),s=!n&&x.test(r.overflowX||""),l=n?0:E(r.paddingTop),u=n?0:E(r.paddingRight),c=n?0:E(r.paddingBottom),d=n?0:E(r.paddingLeft),h=n?0:E(r.borderTopWidth),f=n?0:E(r.borderRightWidth),y=n?0:E(r.borderBottomWidth),b=n?0:E(r.borderLeftWidth),w=d+u,A=l+c,j=b+f,O=h+y,T=s?e.offsetHeight-O-e.clientHeight:0,P=a?e.offsetWidth-j-e.clientWidth:0,R=n?n.width:E(r.width)-(i?w+j:0)-P,M=n?n.height:E(r.height)-(i?A+O:0)-T,N=R+w+P+j,F=M+A+T+O,I=p({devicePixelContentBoxSize:C(Math.round(R*devicePixelRatio),Math.round(M*devicePixelRatio),o),borderBoxSize:C(N,F,o),contentBoxSize:C(R,M,o),contentRect:new m(d,l,R,M)});return k.set(e,I),I},j=function(e,t,r){var i=A(e,r),o=i.borderBoxSize,a=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(t){case n.DEVICE_PIXEL_CONTENT_BOX:return s;case n.BORDER_BOX:return o;default:return a}},O=function(e){var t=A(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=p([t.borderBoxSize]),this.contentBoxSize=p([t.contentBoxSize]),this.devicePixelContentBoxSize=p([t.devicePixelContentBoxSize])},T=function(e){if(v(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},P=function(){var e=1/0,t=[];c.forEach(function(r){if(0!==r.activeTargets.length){var n=[];r.activeTargets.forEach(function(t){var r=new O(t.target),i=T(t.target);n.push(r),t.lastReportedSize=j(t.target,t.observedBox),ie?t.activeTargets.push(r):t.skippedTargets.push(r))})})},M=function(){var e=0;for(R(0);c.some(function(e){return e.activeTargets.length>0});)R(e=P());return c.some(function(e){return e.skippedTargets.length>0})&&h(),e>0},N=[],F=function(e){if(!i){var t=0,r=document.createTextNode("");new MutationObserver(function(){return N.splice(0).forEach(function(e){return e()})}).observe(r,{characterData:!0}),i=function(){r.textContent=""+(t?t--:t++)}}N.push(e),i()},I=function(e){F(function(){requestAnimationFrame(e)})},L=0,B={attributes:!0,characterData:!0,childList:!0,subtree:!0},z=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],U=function(e){return void 0===e&&(e=0),Date.now()+e},q=!1,H=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!q){q=!0;var r=U(e);I(function(){var n=!1;try{n=M()}finally{if(q=!1,e=r-U(),!L)return;n?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,B)};document.body?t():w.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),z.forEach(function(t){return w.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),z.forEach(function(t){return w.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),V=function(e){!L&&e>0&&H.start(),(L+=e)||H.stop()},$=function(){function e(e,t){this.target=e,this.observedBox=t||n.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=j(this.target,this.observedBox,!0);return g(e=this.target)||b(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),W=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Y=new WeakMap,G=function(e,t){for(var r=0;rG(n.observationTargets,t)&&(i&&c.push(n),n.observationTargets.push(new $(t,r&&r.box)),V(1),H.schedule())},e.unobserve=function(e,t){var r=Y.get(e),n=G(r.observationTargets,t),i=1===r.observationTargets.length;n>=0&&(i&&c.splice(c.indexOf(r),1),r.observationTargets.splice(n,1),V(-1))},e.disconnect=function(e){var t=this,r=Y.get(e);r.observationTargets.slice().forEach(function(r){return t.unobserve(e,r.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),X=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");K.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!y(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");K.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!y(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");K.unobserve(this,e)},e.prototype.disconnect=function(){K.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),J=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];function Q(){return(Q=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,J),p=(0,u.useRef)(null),f=(0,u.useRef)(0),m=(0,u.useState)({width:0,height:0,top:0,left:0}),g=m[0],v=m[1],y=(0,u.useMemo)(function(){var e=Array.isArray(a)?a:[a];return l()(function(t){v(function(r){return Object.keys(r).filter(function(e){return r[e]!==t[e]}).every(function(t){return e.includes(t)})?r:t})},i,{leading:d})},[i,d,a]);return(0,u.useEffect)(function(){var e=new X(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,r=t.left,n=t.top,i=t.width,o=t.height;f.current=window.requestAnimationFrame(function(){y({width:i,height:o,top:n,left:r})})})});return p.current&&e.observe(p.current),function(){window.cancelAnimationFrame(f.current),e.disconnect(),null!=y&&y.cancel&&y.cancel()}},[y]),u.createElement("div",Q({style:void 0===s?{width:"100%",height:"100%"}:s,ref:p,className:t},h),r(Q({},g,{ref:p.current,resize:y})))}ee.propTypes={className:a().string,debounceTime:a().number,enableDebounceLeadingCall:a().bool,ignoreDimensions:a().oneOfType([a().any,a().arrayOf(a().any)]),children:a().func.isRequired}},15601:(e,t,r)=>{"use strict";function n(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function i(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function o(){}r.d(t,{A:()=>eJ});var a="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3,8})$/,c=RegExp("^rgb\\("+[a,a,a]+"\\)$"),d=RegExp("^rgb\\("+[l,l,l]+"\\)$"),h=RegExp("^rgba\\("+[a,a,a,s]+"\\)$"),p=RegExp("^rgba\\("+[l,l,l,s]+"\\)$"),f=RegExp("^hsl\\("+[s,l,l]+"\\)$"),m=RegExp("^hsla\\("+[s,l,l,s]+"\\)$"),g={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function v(){return this.rgb().formatHex()}function y(){return this.rgb().formatRgb()}function b(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=u.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?w(t):3===r?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?k(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?k(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=c.exec(e))?new S(t[1],t[2],t[3],1):(t=d.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?k(t[1],t[2],t[3],t[4]):(t=p.exec(e))?k(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=f.exec(e))?A(t[1],t[2]/100,t[3]/100,1):(t=m.exec(e))?A(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function w(e){return new S(e>>16&255,e>>8&255,255&e,1)}function k(e,t,r,n){return n<=0&&(e=t=r=NaN),new S(e,t,r,n)}function x(e){return(e instanceof o||(e=b(e)),e)?new S((e=e.rgb()).r,e.g,e.b,e.opacity):new S}function _(e,t,r,n){return 1==arguments.length?x(e):new S(e,t,r,null==n?1:n)}function S(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function E(){return"#"+D(this.r)+D(this.g)+D(this.b)}function C(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function D(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function A(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new T(e,t,r,n)}function j(e){if(e instanceof T)return new T(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=b(e)),!e)return new T;if(e instanceof T)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),s=NaN,l=a-i,u=(a+i)/2;return l?(s=t===a?(r-n)/l+(r0&&u<1?0:s,new T(s,l,u,e.opacity)}function O(e,t,r,n){return 1==arguments.length?j(e):new T(e,t,r,null==n?1:n)}function T(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function P(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}n(o,b,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:v,formatHex:v,formatHsl:function(){return j(this).formatHsl()},formatRgb:y,toString:y}),n(S,_,i(o,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:C,toString:C})),n(T,O,i(o,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new T(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new T(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new S(P(e>=240?e-240:e+120,i,n),P(e,i,n),P(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var R=Math.PI/180,M=180/Math.PI,N=4/29,F=6/29,I=6/29*3*(6/29),L=6/29*(6/29)*(6/29);function B(e){if(e instanceof U)return new U(e.l,e.a,e.b,e.opacity);if(e instanceof Y)return G(e);e instanceof S||(e=x(e));var t,r,n=$(e.r),i=$(e.g),o=$(e.b),a=q((.2225045*n+.7168786*i+.0606169*o)/1);return n===i&&i===o?t=r=a:(t=q((.4360747*n+.3850649*i+.1430804*o)/.96422),r=q((.0139322*n+.0971045*i+.7141733*o)/.82521)),new U(116*a-16,500*(t-a),200*(a-r),e.opacity)}function z(e,t,r,n){return 1==arguments.length?B(e):new U(e,t,r,null==n?1:n)}function U(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function q(e){return e>L?Math.pow(e,1/3):e/I+N}function H(e){return e>F?e*e*e:I*(e-N)}function V(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function $(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function W(e,t,r,n){return 1==arguments.length?function(e){if(e instanceof Y)return new Y(e.h,e.c,e.l,e.opacity);if(e instanceof U||(e=B(e)),0===e.a&&0===e.b)return new Y(NaN,0180||r<-180?r-360*Math.round(r/360):r):K(isNaN(e)?t:e)}function Q(e,t){var r=t-e;return r?X(e,r):K(isNaN(e)?t:e)}function Z(e){return function(t,r){var n=e((t=W(t)).h,(r=W(r)).h),i=Q(t.c,r.c),o=Q(t.l,r.l),a=Q(t.opacity,r.opacity);return function(e){return t.h=n(e),t.c=i(e),t.l=o(e),t.opacity=a(e),t+""}}}n(U,z,i(o,{brighter:function(e){return new U(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new U(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new S(V(3.1338561*(t=.96422*H(t))-1.6168667*(e=1*H(e))-.4906146*(r=.82521*H(r))),V(-.9787684*t+1.9161415*e+.033454*r),V(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),n(Y,W,i(o,{brighter:function(e){return new Y(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Y(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return G(this).rgb()}}));let ee=Z(J);var et=Z(Q);function er(e){return function(t,r){var n=e((t=O(t)).h,(r=O(r)).h),i=Q(t.s,r.s),o=Q(t.l,r.l),a=Q(t.opacity,r.opacity);return function(e){return t.h=n(e),t.s=i(e),t.l=o(e),t.opacity=a(e),t+""}}}let en=er(J);var ei=er(Q),eo=-1.78277*.29227-.1347134789;function ea(e,t,r,n){return 1==arguments.length?function(e){if(e instanceof es)return new es(e.h,e.s,e.l,e.opacity);e instanceof S||(e=x(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(eo*n+-1.7884503806*t-3.5172982438*r)/(eo+-1.7884503806-3.5172982438),o=n-i,a=-((1.97294*(r-i)- -.29227*o)/.90649),s=Math.sqrt(a*a+o*o)/(1.97294*i*(1-i)),l=s?Math.atan2(a,o)*M-120:NaN;return new es(l<0?l+360:l,s,i,e.opacity)}(e):new es(e,t,r,null==n?1:n)}function es(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function el(e){return function t(r){function n(t,n){var i=e((t=ea(t)).h,(n=ea(n)).h),o=Q(t.s,n.s),a=Q(t.l,n.l),s=Q(t.opacity,n.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,r)),t.opacity=s(e),t+""}}return r=+r,n.gamma=t,n}(1)}n(es,ea,i(o,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new es(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new es(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*R,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new S(255*(t+r*(-.14861*n+1.78277*i)),255*(t+r*(-.29227*n+-.90649*i)),255*(t+1.97294*n*r),this.opacity)}}));let eu=el(J);var ec=el(Q);function ed(e,t,r,n,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*r+(1+3*e+3*o-3*a)*n+a*i)/6}let eh=function e(t){var r,n=1==(r=+(r=t))?Q:function(e,t){var n,i,o;return t-e?(n=e,i=t,n=Math.pow(n,o=r),i=Math.pow(i,o)-n,o=1/o,function(e){return Math.pow(n+e*i,o)}):K(isNaN(e)?t:e)};function i(e,t){var r=n((e=_(e)).r,(t=_(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Q(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function ep(e){return function(t){var r,n,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(r=0;r=1?(r=1,t-1):Math.floor(r*t),i=e[n],o=e[n+1],a=n>0?e[n-1]:2*i-o,s=n0))return s;do s.push(a=new Date(+r)),t(r,o),e(r);while(a=t)for(;e(t),!r(t);)t.setTime(t-1)},function(e,n){if(e>=e){if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}})},r&&(i.count=function(t,n){return em.setTime(+t),eg.setTime(+n),e(em),e(eg),Math.floor(r(em,eg))},i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(n?function(t){return n(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var ey=ev(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);ey.range;var eb=ev(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()});eb.range;var ew=ev(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getMinutes()});ew.range;var ek=ev(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});ek.range;var ex=ev(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()});function e_(e){return ev(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5})}ex.range;var eS=e_(0),eE=e_(1),eC=e_(2),eD=e_(3),eA=e_(4),ej=e_(5),eO=e_(6);eS.range,eE.range,eC.range,eD.range,eA.range,ej.range,eO.range;var eT=ev(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});eT.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ev(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)}):null},eT.range;var eP=ev(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1});eP.range;var eR=ev(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()});eR.range;var eM=ev(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getUTCMinutes()});eM.range;var eN=ev(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});function eF(e){return ev(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/6048e5})}eN.range;var eI=eF(0),eL=eF(1),eB=eF(2),ez=eF(3),eU=eF(4),eq=eF(5),eH=eF(6);eI.range,eL.range,eB.range,ez.range,eU.range,eq.range,eH.range;var eV=ev(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});eV.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ev(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null},eV.range;var e$=new Date(Date.UTC(2020,1,2,3,4,5)),eW={day:ey,hour:eb,minute:ew,month:ek,second:ex,week:eS,year:eT},eY={day:eP,hour:eR,minute:eM,month:eN,second:ex,week:eI,year:eV};function eG(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var eK=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],eX={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var r=t.nice;if("boolean"==typeof r)r&&e.nice();else if("number"==typeof r)e.nice(r);else{var n="2020-02-02 03:04"===e.tickFormat(1,"%Y-%m-%d %H:%M")(e$);if("string"==typeof r)e.nice(n?eY[r]:eW[r]);else{var i=r.interval,o=r.step,a=(n?eY[i]:eW[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var r=e.domain(),n=r[0],i=r[1],o=i{"use strict";r.d(t,{A:()=>a});var n=r(19291);let i=Symbol("implicit");var o=(0,r(15601).A)("domain","range","reverse","align","padding","round");function a(e){return o(function e(){var t,r,o=(function e(){var t=new Map,r=[],o=[],a=i;function s(e){var n=e+"",s=t.get(n);if(!s){if(a!==i)return a;t.set(n,s=r.push(e))}return o[(s-1)%o.length]}return s.domain=function(e){if(!arguments.length)return r.slice();for(let n of(r=[],t=new Map,e)){let e=n+"";t.has(e)||t.set(e,r.push(n))}return s},s.range=function(e){return arguments.length?(o=Array.from(e),s):o.slice()},s.unknown=function(e){return arguments.length?(a=e,s):a},s.copy=function(){return e(r,o).unknown(a)},n.C.apply(s,arguments),s})().unknown(void 0),a=o.domain,s=o.range,l=0,u=1,c=!1,d=0,h=0,p=.5;function f(){var e=a().length,n=u{"use strict";r.d(t,{A:()=>eg});var n,i,o,a,s=Math.sqrt(50),l=Math.sqrt(10),u=Math.sqrt(2);function c(e,t,r){var n=(t-e)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),o=n/Math.pow(10,i);return i>=0?(o>=s?10:o>=l?5:o>=u?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=s?10:o>=l?5:o>=u?2:1)}function d(e,t){return et?1:e>=t?0:NaN}function h(e){let t=e,r=e;function n(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;0>r(e[o],t)?n=o+1:i=o}return n}return 1===e.length&&(t=(t,r)=>e(t)-r,r=(t,r)=>d(e(t),r)),{left:n,center:function(e,r,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=n(e,r,i,o-1);return a>i&&t(e[a-1],r)>-t(e[a],r)?a-1:a},right:function(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n>>1;r(e[o],t)>0?i=o:n=o+1}return n}}}let p=h(d),f=p.right;function m(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function g(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function v(){}p.left,h(function(e){return null===e?NaN:+e}).center;var y="\\s*([+-]?\\d+)\\s*",b="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",w="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",k=/^#([0-9a-f]{3,8})$/,x=RegExp("^rgb\\("+[y,y,y]+"\\)$"),_=RegExp("^rgb\\("+[w,w,w]+"\\)$"),S=RegExp("^rgba\\("+[y,y,y,b]+"\\)$"),E=RegExp("^rgba\\("+[w,w,w,b]+"\\)$"),C=RegExp("^hsl\\("+[b,w,w]+"\\)$"),D=RegExp("^hsla\\("+[b,w,w,b]+"\\)$"),A={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function j(){return this.rgb().formatHex()}function O(){return this.rgb().formatRgb()}function T(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=k.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?P(t):3===r?new N(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?R(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?R(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=x.exec(e))?new N(t[1],t[2],t[3],1):(t=_.exec(e))?new N(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=S.exec(e))?R(t[1],t[2],t[3],t[4]):(t=E.exec(e))?R(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=C.exec(e))?B(t[1],t[2]/100,t[3]/100,1):(t=D.exec(e))?B(t[1],t[2]/100,t[3]/100,t[4]):A.hasOwnProperty(e)?P(A[e]):"transparent"===e?new N(NaN,NaN,NaN,0):null}function P(e){return new N(e>>16&255,e>>8&255,255&e,1)}function R(e,t,r,n){return n<=0&&(e=t=r=NaN),new N(e,t,r,n)}function M(e,t,r,n){var i;return 1==arguments.length?((i=e)instanceof v||(i=T(i)),i)?new N((i=i.rgb()).r,i.g,i.b,i.opacity):new N:new N(e,t,r,null==n?1:n)}function N(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function F(){return"#"+L(this.r)+L(this.g)+L(this.b)}function I(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function L(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function B(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new U(e,t,r,n)}function z(e){if(e instanceof U)return new U(e.h,e.s,e.l,e.opacity);if(e instanceof v||(e=T(e)),!e)return new U;if(e instanceof U)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(r-n)/s+(r0&&l<1?0:a,new U(a,s,l,e.opacity)}function U(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function q(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function H(e,t,r,n,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*r+(1+3*e+3*o-3*a)*n+a*i)/6}m(v,T,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:j,formatHex:j,formatHsl:function(){return z(this).formatHsl()},formatRgb:O,toString:O}),m(N,M,g(v,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new N(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new N(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:F,formatHex:F,formatRgb:I,toString:I})),m(U,function(e,t,r,n){return 1==arguments.length?z(e):new U(e,t,r,null==n?1:n)},g(v,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new U(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new U(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new N(q(e>=240?e-240:e+120,i,n),q(e,i,n),q(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));let V=e=>()=>e;function $(e,t){var r=t-e;return r?function(t){return e+t*r}:V(isNaN(e)?t:e)}let W=function e(t){var r,n=1==(r=+(r=t))?$:function(e,t){var n,i,o;return t-e?(n=e,i=t,n=Math.pow(n,o=r),i=Math.pow(i,o)-n,o=1/o,function(e){return Math.pow(n+e*i,o)}):V(isNaN(e)?t:e)};function i(e,t){var r=n((e=M(e)).r,(t=M(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=$(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function Y(e){return function(t){var r,n,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(r=0;r=1?(r=1,t-1):Math.floor(r*t),i=e[n],o=e[n+1],a=n>0?e[n-1]:2*i-o,s=n=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ea(e){var t;if(!(t=eo.exec(e)))throw Error("invalid format: "+e);return new es({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function es(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function el(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function eu(e){return(e=el(Math.abs(e)))?e[1]:NaN}function ec(e,t){var r=el(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.length+2).join("0")}ea.prototype=es.prototype,es.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let ed={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>ec(100*e,t),r:ec,s:function(e,t){var r=el(e,t);if(!r)return e+"";var i=r[0],o=r[1],a=o-(n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+el(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function eh(e){return e}var ep=Array.prototype.map,ef=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(i=function(e){var t,r,i,o=void 0===e.grouping||void 0===e.thousands?eh:(t=ep.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[a=(a+1)%t.length];return o.reverse().join(r)}),a=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",l=void 0===e.decimal?".":e.decimal+"",u=void 0===e.numerals?eh:(i=ep.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),c=void 0===e.percent?"%":e.percent+"",d=void 0===e.minus?"−":e.minus+"",h=void 0===e.nan?"NaN":e.nan+"";function p(e){var t=(e=ea(e)).fill,r=e.align,i=e.sign,p=e.symbol,f=e.zero,m=e.width,g=e.comma,v=e.precision,y=e.trim,b=e.type;"n"===b?(g=!0,b="g"):ed[b]||(void 0===v&&(v=12),y=!0,b="g"),(f||"0"===t&&"="===r)&&(f=!0,t="0",r="=");var w="$"===p?a:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",k="$"===p?s:/[%p]/.test(b)?c:"",x=ed[b],_=/[defgprs%]/.test(b);function S(e){var a,s,c,p=w,S=k;if("c"===b)S=x(e)+S,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?h:x(Math.abs(e),v),y&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==i&&(E=!1),p=(E?"("===i?i:d:"-"===i||"("===i?"":i)+p,S=("s"===b?ef[8+n/3]:"")+S+(E&&"("===i?")":""),_){for(a=-1,s=e.length;++a(c=e.charCodeAt(a))||c>57){S=(46===c?l+e.slice(a+1):e.slice(a))+S,e=e.slice(0,a);break}}}g&&!f&&(e=o(e,1/0));var C=p.length+e.length+S.length,D=C>1)+p+e+S+D.slice(C);break;default:e=D+p+e+S}return u(e)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return e+""},S}return{format:p,formatPrefix:function(e,t){var r=p(((e=ea(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(eu(t)/3))),i=Math.pow(10,-n),o=ef[8+n/3];return function(e){return r(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix;var em=(0,r(15601).A)("domain","range","reverse","clamp","interpolate","nice","round","zero");function eg(e){return em(function e(){var t,r=(function(){var e,t,r,n,i,o,a=Z,s=Z,l=function e(t,r){var n,i,o=typeof r;return null==r||"boolean"===o?V(r):("number"===o?G:"string"===o?(i=T(r))?(r=i,W):function(e,t){var r,n,i,o,a,s=K.lastIndex=X.lastIndex=0,l=-1,u=[],c=[];for(e+="",t+="";(i=K.exec(e))&&(o=X.exec(t));)(a=o.index)>s&&(a=t.slice(s,a),u[l]?u[l]+=a:u[++l]=a),(i=i[0])===(o=o[0])?u[l]?u[l]+=o:u[++l]=o:(u[++l]=null,c.push({i:l,x:G(i,o)})),s=X.lastIndex;return st&&(r=e,e=t,t=r),u=function(r){return Math.max(e,Math.min(t,r))}),n=l>2?en:er,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?r:(i||(i=n(a.map(e),s,l)))(e(u(t)))}return d.invert=function(r){return u(t((o||(o=n(s,a.map(e),G)))(r)))},d.domain=function(e){return arguments.length?(a=Array.from(e,Q),c()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=J,c()},d.clamp=function(e){return arguments.length?(u=!!e||ee,c()):u!==ee},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(r=e,d):r},function(r,n){return e=r,t=n,c()}})()(ee,ee);return r.copy=function(){return e().domain(r.domain()).range(r.range()).interpolate(r.interpolate()).clamp(r.clamp()).unknown(r.unknown())},ei.C.apply(r,arguments),t=r.domain,r.ticks=function(e){var r=t();return function(e,t,r){var n,i,o,a,s=-1;if(r=+r,(e=+e)==(t=+t)&&r>0)return[e];if((n=t0){let r=Math.round(e/a),n=Math.round(t/a);for(r*at&&--n,o=Array(i=n-r+1);++st&&--n,o=Array(i=n-r+1);++s=s?d*=10:h>=l?d*=5:h>=u&&(d*=2),t0;){if((i=c(l,u,e))===n)return o[a]=l,o[s]=u,t(o);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else if(i<0)l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i;else break;n=i}return r},r}(),e)}},21404:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(99870),o=r.n(i),a=["className","innerRef"];function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,a);return n.createElement("rect",s({ref:r,className:o()("visx-bar",t)},i))}},36227:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(99870),o=r.n(i),a=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,a),B=(r=(t={x:S,y:E,width:C,height:D,radius:A,all:void 0!==j&&j,top:void 0!==O&&O,bottom:void 0!==T&&T,left:void 0!==P&&P,right:void 0!==R&&R,topLeft:void 0!==M&&M,topRight:void 0!==N&&N,bottomLeft:void 0!==F&&F,bottomRight:void 0!==I&&I}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,h=t.radius,p=t.right,f=t.top,m=t.topLeft,g=t.topRight,v=t.width,y=t.x,b=t.y,g=r||f||p||g,u=r||i||p||u,l=r||i||d||l,m=r||f||d||m,w=2*(h=Math.max(1,Math.min(h,Math.min(v,c)/2))),("M"+(y+h)+","+b+" h"+(v-w)+"\n "+(g?"a"+h+","+h+" 0 0 1 "+h+","+h:"h"+h+"v"+h)+"\n v"+(c-w)+"\n "+(u?"a"+h+","+h+" 0 0 1 "+-h+","+h:"v"+h+"h"+-h)+"\n h"+(w-v)+"\n "+(l?"a"+h+","+h+" 0 0 1 "+-h+","+-h:"h"+-h+"v"+-h)+"\n v"+(w-c)+"\n "+(m?"a"+h+","+h+" 0 0 1 "+h+","+-h:"v"+-h+"h"+h)+"\nz").split("\n").join(""));return k?n.createElement(n.Fragment,null,k({path:B})):n.createElement("path",s({ref:_,className:o()("visx-bar-rounded",x),d:B},L))}},69651:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041),i=r(99870),o=r.n(i),a=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,a),p=r.x===l.x||r.y===l.y;return n.createElement("line",s({ref:d,className:o()("visx-line",c),x1:r.x,y1:r.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:p?"crispEdges":"auto"},h))}},74936:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(14041),i=r(99870),o=r.n(i),a=r(95197),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,s),g=(0,a.n8)({x:i,y:u,defined:void 0===f?function(){return!0}:f,curve:h});return t?n.createElement(n.Fragment,null,t({path:g})):n.createElement("path",l({ref:p,className:o()("visx-linepath",d),d:g(void 0===r?[]:r)||"",fill:void 0===c?"transparent":c,strokeLinecap:"round"},m))}},95197:(e,t,r)=>{"use strict";r.d(t,{JL:()=>a,n8:()=>s,rL:()=>l});var n=r(48858),i=r(57806),o=r(20330);function a(e){var t=void 0===e?{}:e,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.startAngle,s=t.endAngle,l=t.padAngle,u=t.padRadius,c=(0,n.A)();return null!=r&&(0,c.innerRadius)(r),null!=i&&(0,c.outerRadius)(i),null!=o&&(0,c.cornerRadius)(o),null!=a&&(0,c.startAngle)(a),null!=s&&(0,c.endAngle)(s),null!=l&&(0,c.padAngle)(l),null!=u&&(0,c.padRadius)(u),c}function s(e){var t=void 0===e?{}:e,r=t.x,n=t.y,o=t.defined,a=t.curve,s=(0,i.A)();return r&&(0,s.x)(r),n&&(0,s.y)(n),o&&s.defined(o),a&&s.curve(a),s}function l(e){var t=void 0===e?{}:e,r=t.startAngle,n=t.endAngle,i=t.padAngle,a=t.value,s=t.sort,l=t.sortValues,u=(0,o.A)();return null===s?u.sort(s):null!=s&&u.sort(s),null===l?u.sortValues(l):null!=l&&u.sortValues(l),null!=a&&u.value(a),null!=i&&(0,u.padAngle)(i),null!=r&&(0,u.startAngle)(r),null!=n&&(0,u.endAngle)(n),u}},13643:(e,t,r)=>{"use strict";t.A=function(e){var t=e.className,r=e.top,l=e.left,c=e.data,d=e.centroid,h=e.innerRadius,p=e.outerRadius,f=e.cornerRadius,m=e.startAngle,g=e.endAngle,v=e.padAngle,y=e.padRadius,b=e.pieSort,w=e.pieSortValues,k=e.pieValue,x=e.children,_=e.fill,S=void 0===_?"":_,E=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,s),C=(0,a.arc)({innerRadius:void 0===h?0:h,outerRadius:p,cornerRadius:f,padRadius:y}),D=(0,a.pie)({startAngle:m,endAngle:g,padAngle:v,value:k,sort:b,sortValues:w}),A=D(void 0===c?[]:c);return x?n.default.createElement(n.default.Fragment,null,x({arcs:A,path:C,pie:D})):n.default.createElement(o.Group,{className:"visx-pie-arcs-group",top:r,left:l},A.map(function(e,r){return n.default.createElement("g",{key:"pie-arc-"+r},n.default.createElement("path",u({className:(0,i.default)("visx-pie-arc",t),d:C(e)||"",fill:null==S||"string"==typeof S?S:S(e)},E)),null==d?void 0:d(C.centroid(e),e))}))};var n=l(r(14041)),i=l(r(99870)),o=r(30740),a=r(6171),s=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t{"use strict";t.__esModule=!0,t.arc=function(e){var t=void 0===e?{}:e,r=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.startAngle,l=t.endAngle,u=t.padAngle,c=t.padRadius,d=(0,n.arc)();return null!=r&&(0,i.default)(d.innerRadius,r),null!=o&&(0,i.default)(d.outerRadius,o),null!=a&&(0,i.default)(d.cornerRadius,a),null!=s&&(0,i.default)(d.startAngle,s),null!=l&&(0,i.default)(d.endAngle,l),null!=u&&(0,i.default)(d.padAngle,u),null!=c&&(0,i.default)(d.padRadius,c),d},t.area=function(e){var t=void 0===e?{}:e,r=t.x,o=t.x0,a=t.x1,s=t.y,l=t.y0,u=t.y1,c=t.defined,d=t.curve,h=(0,n.area)();return r&&(0,i.default)(h.x,r),o&&(0,i.default)(h.x0,o),a&&(0,i.default)(h.x1,a),s&&(0,i.default)(h.y,s),l&&(0,i.default)(h.y0,l),u&&(0,i.default)(h.y1,u),c&&h.defined(c),d&&h.curve(d),h},t.line=function(e){var t=void 0===e?{}:e,r=t.x,o=t.y,a=t.defined,s=t.curve,l=(0,n.line)();return r&&(0,i.default)(l.x,r),o&&(0,i.default)(l.y,o),a&&l.defined(a),s&&l.curve(s),l},t.pie=function(e){var t=void 0===e?{}:e,r=t.startAngle,o=t.endAngle,a=t.padAngle,s=t.value,l=t.sort,u=t.sortValues,c=(0,n.pie)();return null===l?c.sort(l):null!=l&&c.sort(l),null===u?c.sortValues(u):null!=u&&c.sortValues(u),null!=s&&c.value(s),null!=a&&(0,i.default)(c.padAngle,a),null!=r&&(0,i.default)(c.startAngle,r),null!=o&&(0,i.default)(c.endAngle,o),c},t.radialLine=function(e){var t=void 0===e?{}:e,r=t.angle,o=t.radius,a=t.defined,s=t.curve,l=(0,n.radialLine)();return r&&(0,i.default)(l.angle,r),o&&(0,i.default)(l.radius,o),a&&l.defined(a),s&&l.curve(s),l},t.stack=function(e){var t=e.keys,r=e.value,s=e.order,l=e.offset,u=(0,n.stack)();return t&&u.keys(t),r&&(0,i.default)(u.value,r),s&&u.order((0,o.default)(s)),l&&u.offset((0,a.default)(l)),u};var n=r(74890),i=s(r(37110)),o=s(r(87935)),a=s(r(80920));function s(e){return e&&e.__esModule?e:{default:e}}},37110:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){e(t)}},80920:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return e&&i[e]||i.none},t.STACK_OFFSET_NAMES=t.STACK_OFFSETS=void 0;var n=r(74890),i={expand:n.stackOffsetExpand,diverging:n.stackOffsetDiverging,none:n.stackOffsetNone,silhouette:n.stackOffsetSilhouette,wiggle:n.stackOffsetWiggle};t.STACK_OFFSETS=i;var o=Object.keys(i);t.STACK_OFFSET_NAMES=o},87935:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return e&&i[e]||i.none},t.STACK_ORDER_NAMES=t.STACK_ORDERS=void 0;var n=r(74890),i={ascending:n.stackOrderAscending,descending:n.stackOrderDescending,insideout:n.stackOrderInsideOut,none:n.stackOrderNone,reverse:n.stackOrderReverse};t.STACK_ORDERS=i;var o=Object.keys(i);t.STACK_ORDER_NAMES=o},28423:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(14041),i=r(40520),o=r.n(i),a=r(14356),s=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function l(e){return"number"==typeof e}function u(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}var c=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function d(){return(d=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,c)),q=U.x,H=void 0===q?0:q,V=U.fontSize,$=(r=void 0===(t=e.verticalAnchor)?"end":t,p=void 0!==(i=e.scaleToFit)&&i,f=e.angle,m=e.width,v=void 0===(g=e.lineHeight)?"1em":g,b=void 0===(y=e.capHeight)?"0.71em":y,w=e.children,k=e.style,S=void 0===(_=(x=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,s)).x)?0:_,C=void 0===(E=x.y)?0:E,D=!u(S)||!u(C),j=(A=(0,n.useMemo)(function(){return{wordsWithWidth:(null==w?[]:w.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,a.A)(e,k)||0}}),spaceWidth:(0,a.A)("\xa0",k)||0}},[w,k])).wordsWithWidth,O=A.spaceWidth,T=(0,n.useMemo)(function(){return D?[]:m||p?j.reduce(function(e,t){var r=t.word,n=t.wordWidth,i=e[e.length-1];return i&&(null==m||p||(i.width||0)+n+O0){var t=T[0].width||1,r="shrink-only"===p?Math.min(m/t,1):m/t,n=S-r*S,i=C-r*C;e.push("matrix("+r+", 0, 0, "+r+", "+n+", "+i+")")}return f&&e.push("rotate("+f+", "+S+", "+C+")"),e.length>0?e.join(" "):""},[D,S,C,m,p,T,f]),{wordsByLines:T,startDy:P,transform:R}),W=$.wordsByLines,Y=$.startDy,G=$.transform;return n.createElement("svg",{ref:I,x:void 0===M?0:M,y:void 0===N?0:N,fontSize:V,style:h},W.length>0?n.createElement("text",d({ref:L,transform:G},U,{textAnchor:void 0===F?"start":F}),W.map(function(e,t){return n.createElement("tspan",{key:t,x:H,dy:0===t?Y:z},e.words.join(" "))})):null)}},14356:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(69011),i=r.n(n),o="__react_svg_text_measurement_id";let a=i()(function(e,t){try{var r=document.getElementById(o);if(!r){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("aria-hidden","true"),n.style.width="0",n.style.height="0",n.style.position="absolute",n.style.top="-100%",n.style.left="-100%",(r=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",o),n.appendChild(r),document.body.appendChild(n)}return Object.assign(r.style,t),r.textContent=e,r.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)})},50089:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14041),i=["tooltipOpen"];function o(){return(o=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(t,i);return o({},e(r),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[a]),l=(0,n.useCallback)(function(){return a({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[a]);return{tooltipOpen:r.tooltipOpen,tooltipLeft:r.tooltipLeft,tooltipTop:r.tooltipTop,tooltipData:r.tooltipData,updateTooltip:a,showTooltip:s,hideTooltip:l}}},54306:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(14041),i=r(43144);function o(){return(o=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,f);return n.createElement("div",m({className:p()("visx-tooltip",t),style:m({top:null==r||null==l?r:r+l,left:null==i||null==a?i:i+a},void 0!==v&&v&&{position:"absolute"},!(void 0!==h&&h)&&c)},y),d)}v.propTypes={children:d().node,className:d().string,left:d().number,offsetLeft:d().number,offsetTop:d().number,top:d().number,applyPositionStyle:d().bool,unstyled:d().bool};var y=["children","getRects","left","offsetLeft","offsetTop","parentRect","rect","style","top","unstyled"];function b(){return(b=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,y);if(c&&u){var w=void 0===i?0:i,k=void 0===p?0:p,x=!1,_=!1;if(u.width){var S=w+a+c.width-u.width,E=c.width-w-a;x=S>0&&S>E}else{var C=w+a+c.width-window.innerWidth,D=c.width-w-a;x=C>0&&C>D}if(u.height){var A=k+l+c.height-u.height,j=c.height-k-l;_=A>0&&A>j}else _=k+l+c.height>window.innerHeight;w=x?w-c.width-a:w+a,k=_?k-c.height-l:k+l,t="translate("+(w=Math.round(w))+"px, "+(k=Math.round(k))+"px)"}return n.createElement(v,b({style:b({left:0,top:0,transform:t},!(void 0!==f&&f)&&h)},m),r)})},51520:(e,t,r)=>{"use strict";r.d(t,{DX:()=>l});var n=null,i={},o=1,a="@wry/context:Slot",s=Array,l=s[a]||function(){var e=function(){function e(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=n;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1},e.prototype.getValue=function(){if(this.hasValue())return n.slots[this.id]},e.prototype.withValue=function(e,t,r,i){var o,a=((o={__proto__:null})[this.id]=e,o),s=n;n={parent:s,slots:a};try{return t.apply(i,r)}finally{n=s}},e.bind=function(e){var t=n;return function(){var r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}},e.noContext=function(e,t,r){if(!n)return e.apply(r,t);var i=n;try{return n=null,e.apply(r,t)}finally{n=i}},e}();try{Object.defineProperty(s,a,{value:s[a]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();l.bind,l.noContext},9510:(e,t,r)=>{"use strict";r.d(t,{L:()=>l});var n=Object.prototype,i=n.toString,o=n.hasOwnProperty,a=Function.prototype.toString,s=new Map;function l(e,t){try{return function e(t,r){if(t===r)return!0;var n=i.call(t);if(n!==i.call(r))return!1;switch(n){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":if(h(t,r))return!0;var s=u(t),l=u(r),c=s.length;if(c!==l.length)break;for(var p=0;p=0)||_.indexOf(d,x)!==x}return!1}(e,t)}finally{s.clear()}}function u(e){return Object.keys(e).filter(c,e)}function c(e){return void 0!==this[e]}var d="{ [native code] }";function h(e,t){var r=s.get(e);if(r){if(r.has(t))return!0}else s.set(e,r=new Set);return r.add(t),!1}},80106:(e,t,r)=>{"use strict";r.d(t,{b:()=>s});var n=function(){return Object.create(null)},i=Array.prototype,o=i.forEach,a=i.slice,s=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=n),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t{"use strict";r.d(t,{Eq:()=>u});var n=new WeakMap,i=new WeakMap,o={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,r,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=s(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});o[r]||(o[r]=new WeakMap);var c=o[r],d=[],h=new Set,p=new Set(u),f=function(e){!e||h.has(e)||(h.add(e),f(e.parentNode))};u.forEach(f);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(h.has(e))m(e);else{var t=e.getAttribute(l),o=null!==t&&"false"!==t,a=(n.get(e)||0)+1,s=(c.get(e)||0)+1;n.set(e,a),c.set(e,s),d.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(r,"true"),o||e.setAttribute(l,"true")}})};return m(t),h.clear(),a++,function(){d.forEach(function(e){var t=n.get(e)-1,o=c.get(e)-1;n.set(e,t),c.set(e,o),t||(i.has(e)||e.removeAttribute(l),i.delete(e)),o||e.removeAttribute(r)}),--a||(n=new WeakMap,n=new WeakMap,i=new WeakMap,o={})}},u=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n,i=Array.from(Array.isArray(e)?e:[e]),o=t||(n=e,"undefined"==typeof document?null:(Array.isArray(n)?n[0]:n).ownerDocument.body);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),l(i,o,r,"aria-hidden")):function(){return null}}},99986:e=>{"use strict";function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,a,s,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(n=[],o=r.length;c>=0&&!s;)c==l?(n.push(c),l=r.indexOf(e,c+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())=0?l:u;n.length&&(s=[o,a])}return s}e.exports=t,t.range=n},7991:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(r=0;r>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},1048:(e,t,r)=>{"use strict";var n=r(7991),i=r(39318),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|f(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(j(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(j(e,SharedArrayBuffer)||e&&j(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var i=function(e){if(s.isBuffer(e)){var t,r=0|p(e.length),n=a(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),r=a(t),n=0;n=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return D(e).length;default:if(i)return n?-1:C(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;os&&(r=s-l),o=r;o>=0;o--){for(var d=!0,h=0;h239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function k(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function x(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function _(e,t,r,n,o){return t=+t,r>>>=0,o||x(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,o){return t=+t,r>>>=0,o||x(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.hp=s,t.IS=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(j(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),j(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);in.length?s.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(s.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},s.byteLength=f,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tr&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(j(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,l=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),d=0;d>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;k(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;k(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);k(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);k(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function D(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function A(e,t,r,n){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var O=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},79818:(e,t,r)=>{"use strict";var n=r(528),i=r(28498),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},28498:(e,t,r)=>{"use strict";var n=r(79138),i=r(528),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),l=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(n,a,arguments);return l&&u&&l(t,"length").configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))}),t};var d=function(){return s(n,o,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},99870:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t{function t(e){if(e)return function(e){for(var r in t.prototype)e[r]=t.prototype[r];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i{"use strict";var n=r(71761),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,o,a,s,l,u,c,d,h=!1;t||(t={}),a=t.debug||!1;try{if(l=n(),u=document.createRange(),c=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(r){if(r.stopPropagation(),t.format){if(r.preventDefault(),void 0===r.clipboardData){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=i[t.format]||i.default;window.clipboardData.setData(n,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e)}t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(d),u.selectNodeContents(d),c.addRange(u),!document.execCommand("copy"))throw Error("copy command was unsuccessful");h=!0}catch(n){a&&console.error("unable to copy using execCommand: ",n),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),h=!0}catch(n){a&&console.error("unable to copy using clipboardData: ",n),a&&console.error("falling back to prompt"),r="message"in t?t.message:"Copy to clipboard: #{key}, Enter",o=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",s=r.replace(/#{\s*key\s*}/g,o),window.prompt(s,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(u):c.removeAllRanges()),d&&document.body.removeChild(d),l()}return h}},93706:(e,t,r)=>{"use strict";r.d(t,{ap:()=>s,c4:()=>a,qg:()=>l,yV:()=>o});var n=r(74672),i=r(30927);function o(e){return s(l(e))}function a(e,t){var r=(0,i.Di)(e,[t[0],t[1]||0,t[2]||0,1],4),n=r[3]||1;return[r[0]/n,r[1]/n,r[2]/n]}function s(e){var t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach(function(e){var r=e.matrixFunction,n=e.functionValue;r&&(t=r(t,n))}),t}function l(e){return((0,n.cy)(e)?e:(0,n.Z3)(e)).map(function(e){var t=(0,n.ft)(e),r=t.prefix,o=t.value,a=null,s=r,l="";if("translate"===r||"translateX"===r||"translate3d"===r){var u=(0,n.cM)(o).map(function(e){return parseFloat(e)}),c=u[0],d=u[1],h=void 0===d?0:d,p=u[2],f=void 0===p?0:p;a=i.iv,l=[c,h,f]}else if("translateY"===r){var h=parseFloat(o);a=i.iv,l=[0,h,0]}else if("translateZ"===r){var f=parseFloat(o);a=i.iv,l=[0,0,f]}else if("scale"===r||"scale3d"===r){var m=(0,n.cM)(o).map(function(e){return parseFloat(e)}),g=m[0],v=m[1],y=void 0===v?g:v,b=m[2],w=void 0===b?1:b;a=i.YO,l=[g,y,w]}else if("scaleX"===r){var g=parseFloat(o);a=i.YO,l=[g,1,1]}else if("scaleY"===r){var y=parseFloat(o);a=i.YO,l=[1,y,1]}else if("scaleZ"===r){var w=parseFloat(o);a=i.YO,l=[1,1,w]}else if("rotate"===r||"rotateZ"===r||"rotateX"===r||"rotateY"===r){var k=(0,n.hg)(o),x=k.unit,_=k.value,S="rad"===x?_:_*Math.PI/180;"rotate"===r||"rotateZ"===r?(s="rotateZ",a=i.Zt):"rotateX"===r?a=i.pE:"rotateY"===r&&(a=i.qh),l=S}else if("matrix3d"===r)a=i.n_,l=(0,n.cM)(o).map(function(e){return parseFloat(e)});else if("matrix"===r){var E=(0,n.cM)(o).map(function(e){return parseFloat(e)});a=i.n_,l=[E[0],E[1],0,0,E[2],E[3],0,0,0,0,1,0,E[4],E[5],0,1]}else s="";return{name:r,functionName:s,value:o,matrixFunction:a,functionValue:l}})}},43205:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=Math.PI,i=2*n,o=i-1e-6;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function s(){return new a}a.prototype=s.prototype={constructor:a,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,r,n){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(e,t,r,n,i,o){this._+="C"+ +e+","+ +t+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,r,i,o){e=+e,t=+t,r=+r,i=+i,o=+o;var a=this._x1,s=this._y1,l=r-e,u=i-t,c=a-e,d=s-t,h=c*c+d*d;if(o<0)throw Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>1e-6){if(Math.abs(d*l-u*c)>1e-6&&o){var p=r-a,f=i-s,m=l*l+u*u,g=Math.sqrt(m),v=Math.sqrt(h),y=o*Math.tan((n-Math.acos((m+h-(p*p+f*f))/(2*g*v)))/2),b=y/v,w=y/g;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*d)),this._+="A"+o+","+o+",0,0,"+ +(d*p>c*f)+","+(this._x1=e+w*l)+","+(this._y1=t+w*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,r,a,s,l){e=+e,t=+t,r=+r,l=!!l;var u=r*Math.cos(a),c=r*Math.sin(a),d=e+u,h=t+c,p=1^l,f=l?a-s:s-a;if(r<0)throw Error("negative radius: "+r);null===this._x1?this._+="M"+d+","+h:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+d+","+h),r&&(f<0&&(f=f%i+i),f>o?this._+="A"+r+","+r+",0,1,"+p+","+(e-u)+","+(t-c)+"A"+r+","+r+",0,1,"+p+","+(this._x1=d)+","+(this._y1=h):f>1e-6&&(this._+="A"+r+","+r+",0,"+ +(f>=n)+","+p+","+(this._x1=e+r*Math.cos(s))+","+(this._y1=t+r*Math.sin(s))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}};let l=s},19291:(e,t,r)=>{"use strict";function n(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}r.d(t,{C:()=>n})},48858:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(43205),i=r(15056),o=r(36802);function a(e){return e.innerRadius}function s(e){return e.outerRadius}function l(e){return e.startAngle}function u(e){return e.endAngle}function c(e){return e&&e.padAngle}function d(e,t,r,n,i,a,s){var l=e-r,u=t-n,c=(s?a:-a)/(0,o.RZ)(l*l+u*u),d=c*u,h=-c*l,p=e+d,f=t+h,m=r+d,g=n+h,v=(p+m)/2,y=(f+g)/2,b=m-p,w=g-f,k=b*b+w*w,x=i-a,_=p*g-m*f,S=(w<0?-1:1)*(0,o.RZ)((0,o.T9)(0,x*x*k-_*_)),E=(_*w-b*S)/k,C=(-_*b-w*S)/k,D=(_*w+b*S)/k,A=(-_*b+w*S)/k,j=E-v,O=C-y,T=D-v,P=A-y;return j*j+O*O>T*T+P*P&&(E=D,C=A),{cx:E,cy:C,x01:-d,y01:-h,x11:E*(i/x-1),y11:C*(i/x-1)}}function h(){var e=a,t=s,r=(0,i.A)(0),h=null,p=l,f=u,m=c,g=null;function v(){var i,a,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=p.apply(this,arguments)-o.TW,c=f.apply(this,arguments)-o.TW,v=(0,o.tn)(c-u),y=c>u;if(g||(g=i=(0,n.A)()),lo.Ni){if(v>o.FA-o.Ni)g.moveTo(l*(0,o.gn)(u),l*(0,o.F8)(u)),g.arc(0,0,l,u,c,!y),s>o.Ni&&(g.moveTo(s*(0,o.gn)(c),s*(0,o.F8)(c)),g.arc(0,0,s,c,u,y));else{var b,w,k=u,x=c,_=u,S=c,E=v,C=v,D=m.apply(this,arguments)/2,A=D>o.Ni&&(h?+h.apply(this,arguments):(0,o.RZ)(s*s+l*l)),j=(0,o.jk)((0,o.tn)(l-s)/2,+r.apply(this,arguments)),O=j,T=j;if(A>o.Ni){var P=(0,o.qR)(A/s*(0,o.F8)(D)),R=(0,o.qR)(A/l*(0,o.F8)(D));(E-=2*P)>o.Ni?(P*=y?1:-1,_+=P,S-=P):(E=0,_=S=(u+c)/2),(C-=2*R)>o.Ni?(R*=y?1:-1,k+=R,x-=R):(C=0,k=x=(u+c)/2)}var M=l*(0,o.gn)(k),N=l*(0,o.F8)(k),F=s*(0,o.gn)(S),I=s*(0,o.F8)(S);if(j>o.Ni){var L,B=l*(0,o.gn)(x),z=l*(0,o.F8)(x),U=s*(0,o.gn)(_),q=s*(0,o.F8)(_);if(vo.Ni?T>o.Ni?(b=d(U,q,M,N,l,T,y),w=d(B,z,F,I,l,T,y),g.moveTo(b.cx+b.x01,b.cy+b.y01),To.Ni&&E>o.Ni?O>o.Ni?(b=d(F,I,B,z,s,-O,y),w=d(M,N,U,q,s,-O,y),g.lineTo(b.cx+b.x01,b.cy+b.y01),O{"use strict";function n(e){return function(){return e}}r.d(t,{A:()=>n})},56377:(e,t,r)=>{"use strict";function n(e){this._context=e}function i(e){return new n(e)}r.d(t,{A:()=>i}),n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}},74890:(e,t,r)=>{"use strict";r.r(t),r.d(t,{arc:()=>n.A,area:()=>u,areaRadial:()=>g,curveBasis:()=>X,curveBasisClosed:()=>Q,curveBasisOpen:()=>ee,curveBundle:()=>er,curveCardinal:()=>eo,curveCardinalClosed:()=>es,curveCardinalOpen:()=>eu,curveCatmullRom:()=>eh,curveCatmullRomClosed:()=>ef,curveCatmullRomOpen:()=>eg,curveLinear:()=>a.A,curveLinearClosed:()=>ey,curveMonotoneX:()=>eE,curveMonotoneY:()=>eC,curveNatural:()=>ej,curveStep:()=>eT,curveStepAfter:()=>eR,curveStepBefore:()=>eP,line:()=>s.A,lineRadial:()=>m,linkHorizontal:()=>E,linkRadial:()=>D,linkVertical:()=>C,pie:()=>c.A,pointRadial:()=>v,radialArea:()=>g,radialLine:()=>m,stack:()=>eI,stackOffsetDiverging:()=>eB,stackOffsetExpand:()=>eL,stackOffsetNone:()=>eM,stackOffsetSilhouette:()=>ez,stackOffsetWiggle:()=>eU,stackOrderAppearance:()=>eq,stackOrderAscending:()=>eV,stackOrderDescending:()=>eW,stackOrderInsideOut:()=>eY,stackOrderNone:()=>eN,stackOrderReverse:()=>eG,symbol:()=>W,symbolCircle:()=>j,symbolCross:()=>O,symbolDiamond:()=>R,symbolSquare:()=>L,symbolStar:()=>I,symbolTriangle:()=>z,symbolWye:()=>V,symbols:()=>$});var n=r(48858),i=r(43205),o=r(15056),a=r(56377),s=r(57806),l=r(12684);function u(){var e=l.x,t=null,r=(0,o.A)(0),n=l.y,u=(0,o.A)(!0),c=null,d=a.A,h=null;function p(o){var a,s,l,p,f,m=o.length,g=!1,v=Array(m),y=Array(m);for(null==c&&(h=d(f=(0,i.A)())),a=0;a<=m;++a){if(!(a=s;--l)h.point(v[l],y[l]);h.lineEnd(),h.areaEnd()}}g&&(v[a]=+e(p,a,o),y[a]=+r(p,a,o),h.point(t?+t(p,a,o):v[a],n?+n(p,a,o):y[a]))}if(f)return h=null,f+""||null}function f(){return(0,s.A)().defined(u).curve(d).context(c)}return p.x=function(r){return arguments.length?(e="function"==typeof r?r:(0,o.A)(+r),t=null,p):e},p.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.A)(+t),p):e},p.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:(0,o.A)(+e),p):t},p.y=function(e){return arguments.length?(r="function"==typeof e?e:(0,o.A)(+e),n=null,p):r},p.y0=function(e){return arguments.length?(r="function"==typeof e?e:(0,o.A)(+e),p):r},p.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:(0,o.A)(+e),p):n},p.lineX0=p.lineY0=function(){return f().x(e).y(r)},p.lineY1=function(){return f().x(e).y(n)},p.lineX1=function(){return f().x(t).y(r)},p.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,o.A)(!!e),p):u},p.curve=function(e){return arguments.length?(d=e,null!=c&&(h=d(c)),p):d},p.context=function(e){return arguments.length?(null==e?c=h=null:h=d(c=e),p):c},p}var c=r(20330),d=p(a.A);function h(e){this._curve=e}function p(e){function t(t){return new h(e(t))}return t._curve=e,t}function f(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(p(e)):t()._curve},e}function m(){return f((0,s.A)().curve(d))}function g(){var e=u().curve(d),t=e.curve,r=e.lineX0,n=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return f(r())},delete e.lineX0,e.lineEndAngle=function(){return f(n())},delete e.lineX1,e.lineInnerRadius=function(){return f(i())},delete e.lineY0,e.lineOuterRadius=function(){return f(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(p(e)):t()._curve},e}function v(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}h.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}};var y=Array.prototype.slice;function b(e){return e.source}function w(e){return e.target}function k(e){var t=b,r=w,n=l.x,a=l.y,s=null;function u(){var o,l=y.call(arguments),u=t.apply(this,l),c=r.apply(this,l);if(s||(s=o=(0,i.A)()),e(s,+n.apply(this,(l[0]=u,l)),+a.apply(this,l),+n.apply(this,(l[0]=c,l)),+a.apply(this,l)),o)return s=null,o+""||null}return u.source=function(e){return arguments.length?(t=e,u):t},u.target=function(e){return arguments.length?(r=e,u):r},u.x=function(e){return arguments.length?(n="function"==typeof e?e:(0,o.A)(+e),u):n},u.y=function(e){return arguments.length?(a="function"==typeof e?e:(0,o.A)(+e),u):a},u.context=function(e){return arguments.length?(s=null==e?null:e,u):s},u}function x(e,t,r,n,i){e.moveTo(t,r),e.bezierCurveTo(t=(t+n)/2,r,t,i,n,i)}function _(e,t,r,n,i){e.moveTo(t,r),e.bezierCurveTo(t,r=(r+i)/2,n,r,n,i)}function S(e,t,r,n,i){var o=v(t,r),a=v(t,r=(r+i)/2),s=v(n,r),l=v(n,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],l[0],l[1])}function E(){return k(x)}function C(){return k(_)}function D(){var e=k(S);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var A=r(36802);let j={draw:function(e,t){var r=Math.sqrt(t/A.pi);e.moveTo(r,0),e.arc(0,0,r,0,A.FA)}},O={draw:function(e,t){var r=Math.sqrt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}};var T=Math.sqrt(1/3),P=2*T;let R={draw:function(e,t){var r=Math.sqrt(t/P),n=r*T;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}};var M=Math.sin(A.pi/10)/Math.sin(7*A.pi/10),N=Math.sin(A.FA/10)*M,F=-Math.cos(A.FA/10)*M;let I={draw:function(e,t){var r=Math.sqrt(.8908130915292852*t),n=N*r,i=F*r;e.moveTo(0,-r),e.lineTo(n,i);for(var o=1;o<5;++o){var a=A.FA*o/5,s=Math.cos(a),l=Math.sin(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},L={draw:function(e,t){var r=Math.sqrt(t),n=-r/2;e.rect(n,n,r,r)}};var B=Math.sqrt(3);let z={draw:function(e,t){var r=-Math.sqrt(t/(3*B));e.moveTo(0,2*r),e.lineTo(-B*r,-r),e.lineTo(B*r,-r),e.closePath()}};var U=Math.sqrt(3)/2,q=1/Math.sqrt(12),H=(q/2+1)*3;let V={draw:function(e,t){var r=Math.sqrt(t/H),n=r/2,i=r*q,o=r*q+r,a=-n;e.moveTo(n,i),e.lineTo(n,o),e.lineTo(a,o),e.lineTo(-.5*n-U*i,U*n+-.5*i),e.lineTo(-.5*n-U*o,U*n+-.5*o),e.lineTo(-.5*a-U*o,U*a+-.5*o),e.lineTo(-.5*n+U*i,-.5*i-U*n),e.lineTo(-.5*n+U*o,-.5*o-U*n),e.lineTo(-.5*a+U*o,-.5*o-U*a),e.closePath()}};var $=[j,O,R,L,I,z,V];function W(){var e=(0,o.A)(j),t=(0,o.A)(64),r=null;function n(){var n;if(r||(r=n=(0,i.A)()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),n)return r=null,n+""||null}return n.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.A)(t),n):e},n.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,o.A)(+e),n):t},n.context=function(e){return arguments.length?(r=null==e?null:e,n):r},n}function Y(){}function G(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function K(e){this._context=e}function X(e){return new K(e)}function J(e){this._context=e}function Q(e){return new J(e)}function Z(e){this._context=e}function ee(e){return new Z(e)}function et(e,t){this._basis=new K(e),this._beta=t}K.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:G(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:G(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},J.prototype={areaStart:Y,areaEnd:Y,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:G(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:G(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},et.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n,i=e[0],o=t[0],a=e[r]-i,s=t[r]-o,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+n*a),this._beta*t[l]+(1-this._beta)*(o+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};let er=function e(t){function r(e){return 1===t?new K(e):new et(e,t)}return r.beta=function(t){return e(+t)},r}(.85);function en(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function ei(e,t){this._context=e,this._k=(1-t)/6}ei.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:en(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:en(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let eo=function e(t){function r(e){return new ei(e,t)}return r.tension=function(t){return e(+t)},r}(0);function ea(e,t){this._context=e,this._k=(1-t)/6}ea.prototype={areaStart:Y,areaEnd:Y,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:en(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let es=function e(t){function r(e){return new ea(e,t)}return r.tension=function(t){return e(+t)},r}(0);function el(e,t){this._context=e,this._k=(1-t)/6}el.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:en(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let eu=function e(t){function r(e){return new el(e,t)}return r.tension=function(t){return e(+t)},r}(0);function ec(e,t,r){var n=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>A.Ni){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>A.Ni){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-r*e._l12_2a)/c}e._context.bezierCurveTo(n,i,o,a,e._x2,e._y2)}function ed(e,t){this._context=e,this._alpha=t}ed.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ec(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let eh=function e(t){function r(e){return t?new ed(e,t):new ei(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);function ep(e,t){this._context=e,this._alpha=t}ep.prototype={areaStart:Y,areaEnd:Y,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ec(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let ef=function e(t){function r(e){return t?new ep(e,t):new ea(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);function em(e,t){this._context=e,this._alpha=t}em.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ec(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let eg=function e(t){function r(e){return t?new em(e,t):new el(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);function ev(e){this._context=e}function ey(e){return new ev(e)}function eb(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*n)/(n+i)))||0}function ew(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ek(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-n)/3;e._context.bezierCurveTo(n+s,i+s*t,o-s,a-s*r,o,a)}function ex(e){this._context=e}function e_(e){this._context=new eS(e)}function eS(e){this._context=e}function eE(e){return new ex(e)}function eC(e){return new e_(e)}function eD(e){this._context=e}function eA(e){var t,r,n=e.length-1,i=Array(n),o=Array(n),a=Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[n-1]=(e[n]+i[n-1])/2;t1)for(var r,n,i,o=1,a=e[t[0]],s=a.length;o=0;)r[t]=t;return r}function eF(e,t){return e[t]}function eI(){var e=(0,o.A)([]),t=eN,r=eM,n=eF;function i(i){var o,a,s=e.apply(this,arguments),l=i.length,u=s.length,c=Array(u);for(o=0;o0){for(var r,n,i,o=0,a=e[0].length;o0)for(var r,n,i,o,a,s,l=0,u=e[t[0]].length;l0?(n[0]=o,n[1]=o+=i):i<0?(n[1]=a,n[0]=a+=i):(n[0]=0,n[1]=i)}function ez(e,t){if((r=e.length)>0){for(var r,n=0,i=e[t[0]],o=i.length;n0&&(n=(r=e[t[0]]).length)>0){for(var r,n,i,o=0,a=1;ao&&(o=t,n=r);return n}function eV(e){var t=e.map(e$);return eN(e).sort(function(e,r){return t[e]-t[r]})}function e$(e){for(var t,r=0,n=-1,i=e.length;++n=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}}},57806:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(43205),i=r(15056),o=r(56377),a=r(12684);function s(){var e=a.x,t=a.y,r=(0,i.A)(!0),s=null,l=o.A,u=null;function c(i){var o,a,c,d=i.length,h=!1;for(null==s&&(u=l(c=(0,n.A)())),o=0;o<=d;++o)!(o{"use strict";r.d(t,{F8:()=>l,FA:()=>p,FP:()=>i,HQ:()=>f,Ni:()=>c,RZ:()=>u,T9:()=>a,TW:()=>h,gn:()=>o,jk:()=>s,pi:()=>d,qR:()=>m,tn:()=>n});var n=Math.abs,i=Math.atan2,o=Math.cos,a=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,c=1e-12,d=Math.PI,h=d/2,p=2*d;function f(e){return e>1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?h:e<=-1?-h:Math.asin(e)}},20330:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(15056);function i(e,t){return te?1:t>=e?0:NaN}function o(e){return e}var a=r(36802);function s(){var e=o,t=i,r=null,s=(0,n.A)(0),l=(0,n.A)(a.FA),u=(0,n.A)(0);function c(n){var i,o,c,d,h,p=n.length,f=0,m=Array(p),g=Array(p),v=+s.apply(this,arguments),y=Math.min(a.FA,Math.max(-a.FA,l.apply(this,arguments)-v)),b=Math.min(Math.abs(y)/p,u.apply(this,arguments)),w=b*(y<0?-1:1);for(i=0;i0&&(f+=h);for(null!=t?m.sort(function(e,r){return t(g[e],g[r])}):null!=r&&m.sort(function(e,t){return r(n[e],n[t])}),i=0,c=f?(y-p*w)/f:0;i0?h*c:0)+w,g[o]={data:n[o],index:i,value:h,startAngle:v,endAngle:d,padAngle:b};return g}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.A)(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,r=null,c):t},c.sort=function(e){return arguments.length?(r=e,t=null,c):r},c.startAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,n.A)(+e),c):s},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,n.A)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,n.A)(+e),c):u},c}},12684:(e,t,r)=>{"use strict";function n(e){return e[0]}function i(e){return e[1]}r.d(t,{x:()=>n,y:()=>i})},71651:function(e){var t;t=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,r){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,r)}function r(e,n,i){return(r=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?function(e,r,n){var i=[null];i.push.apply(i,r);var o=new(Function.bind.apply(e,i));return n&&t(o,n.prototype),o}:Reflect.construct).apply(null,arguments)}function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r1?r-1:0),i=1;i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}(s(e));try{for(n.s();!(t=n.n()).done;){var o,a=(o=t.value,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw n}}return o}}(o,2)||i(o,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=a[0],u=a[1];r[l]=u}}catch(e){n.e(e)}finally{n.f()}return r}function P(e,t){for(;null!==e;){var r=d(e,t);if(r){if(r.get)return j(r.get);if("function"==typeof r.value)return j(r.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var R=h(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M=h(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=h(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),F=h(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=h(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),L=h(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=h(["#text"]),z=h(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),U=h(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=h(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=h(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$=p(/<%[\w\W]*|[\w\W]*%>/gm),W=p(/\${[\w\W]*}/gm),Y=p(/^data-[\-\w.\u00B7-\uFFFF]/),G=p(/^aria-[\-\w]+$/),K=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=p(/^(?:\w+script|data):/i),J=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=p(/^html$/i),Z=function(t,r){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null,i="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(i)&&(n=r.currentScript.getAttribute(i));var o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){var r,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,a=function(e){return t(e)};if(a.version="3.0.0",a.removed=[],!o||!o.document||9!==o.document.nodeType)return a.isSupported=!1,a;var l=o.document,u=o.document,c=o.DocumentFragment,d=o.HTMLTemplateElement,p=o.Node,f=o.Element,m=o.NodeFilter,g=o.NamedNodeMap,v=void 0===g?o.NamedNodeMap||o.MozNamedAttrMap:g,j=o.HTMLFormElement,ee=o.DOMParser,et=o.trustedTypes,er=f.prototype,en=P(er,"cloneNode"),ei=P(er,"nextSibling"),eo=P(er,"childNodes"),ea=P(er,"parentNode");if("function"==typeof d){var es=u.createElement("template");es.content&&es.content.ownerDocument&&(u=es.content.ownerDocument)}var el=Z(et,l),eu=el?el.createHTML(""):"",ec=u,ed=ec.implementation,eh=ec.createNodeIterator,ep=ec.createDocumentFragment,ef=ec.getElementsByTagName,em=l.importNode,eg={};a.isSupported="function"==typeof s&&"function"==typeof ea&&ed&&void 0!==ed.createHTMLDocument;var ev=K,ey=null,eb=O({},[].concat(n(R),n(M),n(N),n(I),n(B))),ew=null,ek=O({},[].concat(n(z),n(U),n(q),n(H))),ex=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),e_=null,eS=null,eE=!0,eC=!0,eD=!1,eA=!0,ej=!1,eO=!1,eT=!1,eP=!1,eR=!1,eM=!1,eN=!1,eF=!0,eI=!1,eL=!0,eB=!1,ez={},eU=null,eq=O({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eH=null,eV=O({},["audio","video","img","source","image","track"]),e$=null,eW=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eY="http://www.w3.org/1998/Math/MathML",eG="http://www.w3.org/2000/svg",eK="http://www.w3.org/1999/xhtml",eX=eK,eJ=!1,eQ=null,eZ=O({},[eY,eG,eK],x),e0=["application/xhtml+xml","text/html"],e1=null,e2=u.createElement("form"),e3=function(e){return e instanceof RegExp||e instanceof Function},e5=function(t){e1&&e1===t||(t&&"object"===e(t)||(t={}),t=T(t),i="application/xhtml+xml"===(r=r=-1===e0.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?x:k,ey="ALLOWED_TAGS"in t?O({},t.ALLOWED_TAGS,i):eb,ew="ALLOWED_ATTR"in t?O({},t.ALLOWED_ATTR,i):ek,eQ="ALLOWED_NAMESPACES"in t?O({},t.ALLOWED_NAMESPACES,x):eZ,e$="ADD_URI_SAFE_ATTR"in t?O(T(eW),t.ADD_URI_SAFE_ATTR,i):eW,eH="ADD_DATA_URI_TAGS"in t?O(T(eV),t.ADD_DATA_URI_TAGS,i):eV,eU="FORBID_CONTENTS"in t?O({},t.FORBID_CONTENTS,i):eq,e_="FORBID_TAGS"in t?O({},t.FORBID_TAGS,i):{},eS="FORBID_ATTR"in t?O({},t.FORBID_ATTR,i):{},ez="USE_PROFILES"in t&&t.USE_PROFILES,eE=!1!==t.ALLOW_ARIA_ATTR,eC=!1!==t.ALLOW_DATA_ATTR,eD=t.ALLOW_UNKNOWN_PROTOCOLS||!1,eA=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ej=t.SAFE_FOR_TEMPLATES||!1,eO=t.WHOLE_DOCUMENT||!1,eR=t.RETURN_DOM||!1,eM=t.RETURN_DOM_FRAGMENT||!1,eN=t.RETURN_TRUSTED_TYPE||!1,eP=t.FORCE_BODY||!1,eF=!1!==t.SANITIZE_DOM,eI=t.SANITIZE_NAMED_PROPS||!1,eL=!1!==t.KEEP_CONTENT,eB=t.IN_PLACE||!1,ev=t.ALLOWED_URI_REGEXP||ev,eX=t.NAMESPACE||eK,t.CUSTOM_ELEMENT_HANDLING&&e3(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ex.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&e3(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ex.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ex.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ej&&(eC=!1),eM&&(eR=!0),ez&&(ey=O({},n(B)),ew=[],!0===ez.html&&(O(ey,R),O(ew,z)),!0===ez.svg&&(O(ey,M),O(ew,U),O(ew,H)),!0===ez.svgFilters&&(O(ey,N),O(ew,U),O(ew,H)),!0===ez.mathMl&&(O(ey,I),O(ew,q),O(ew,H))),t.ADD_TAGS&&(ey===eb&&(ey=T(ey)),O(ey,t.ADD_TAGS,i)),t.ADD_ATTR&&(ew===ek&&(ew=T(ew)),O(ew,t.ADD_ATTR,i)),t.ADD_URI_SAFE_ATTR&&O(e$,t.ADD_URI_SAFE_ATTR,i),t.FORBID_CONTENTS&&(eU===eq&&(eU=T(eU)),O(eU,t.FORBID_CONTENTS,i)),eL&&(ey["#text"]=!0),eO&&O(ey,["html","head","body"]),ey.table&&(O(ey,["tbody"]),delete e_.tbody),h&&h(t),e1=t)},e4=O({},["mi","mo","mn","ms","mtext"]),e6=O({},["foreignobject","desc","title","annotation-xml"]),e8=O({},["title","style","font","a","script"]),e9=O({},M);O(e9,N),O(e9,F);var e7=O({},I);O(e7,L);var te=function(e){var t=ea(e);t&&t.tagName||(t={namespaceURI:eX,tagName:"template"});var n=k(e.tagName),i=k(t.tagName);return!!eQ[e.namespaceURI]&&(e.namespaceURI===eG?t.namespaceURI===eK?"svg"===n:t.namespaceURI===eY?"svg"===n&&("annotation-xml"===i||e4[i]):!!e9[n]:e.namespaceURI===eY?t.namespaceURI===eK?"math"===n:t.namespaceURI===eG?"math"===n&&e6[i]:!!e7[n]:e.namespaceURI===eK?(t.namespaceURI!==eG||!!e6[i])&&(t.namespaceURI!==eY||!!e4[i])&&!e7[n]&&(e8[n]||!e9[n]):"application/xhtml+xml"===r&&!!eQ[e.namespaceURI])},tt=function(e){w(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},tr=function(e,t){try{w(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){w(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ew[e]){if(eR||eM)try{tt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},tn=function(e){if(eP)e=""+e;else{var t,n,i=_(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===r&&eX===eK&&(e=''+e+"");var o=el?el.createHTML(e):e;if(eX===eK)try{t=new ee().parseFromString(o,r)}catch(e){}if(!t||!t.documentElement){t=ed.createDocument(eX,"template",null);try{t.documentElement.innerHTML=eJ?eu:o}catch(e){}}var a=t.body||t.documentElement;return(e&&n&&a.insertBefore(u.createTextNode(n),a.childNodes[0]||null),eX===eK)?ef.call(t,eO?"html":"body")[0]:eO?t.documentElement:a},ti=function(e){return eh.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT,null,!1)},to=function(t){return"object"===e(p)?t instanceof p:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},ta=function(e,t,r){eg[e]&&y(eg[e],function(e){e.call(a,t,r,e1)})},ts=function(e){if(ta("beforeSanitizeElements",e,null),e instanceof j&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof v)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes))return tt(e),!0;var t,r=i(e.nodeName);if(ta("uponSanitizeElement",e,{tagName:r,allowedTags:ey}),e.hasChildNodes()&&!to(e.firstElementChild)&&(!to(e.content)||!to(e.content.firstElementChild))&&D(/<[/\w]/g,e.innerHTML)&&D(/<[/\w]/g,e.textContent))return tt(e),!0;if(!ey[r]||e_[r]){if(!e_[r]&&tu(r)&&(ex.tagNameCheck instanceof RegExp&&D(ex.tagNameCheck,r)||ex.tagNameCheck instanceof Function&&ex.tagNameCheck(r)))return!1;if(eL&&!eU[r]){var n=ea(e)||e.parentNode,o=eo(e)||e.childNodes;if(o&&n)for(var s=o.length,l=s-1;l>=0;--l)n.insertBefore(en(o[l],!0),ei(e))}return tt(e),!0}return e instanceof f&&!te(e)||("noscript"===r||"noembed"===r)&&D(/<\/no(script|embed)/i,e.innerHTML)?(tt(e),!0):(ej&&3===e.nodeType&&(t=S(t=e.textContent,V," "),t=S(t,$," "),t=S(t,W," "),e.textContent!==t&&(w(a.removed,{element:e.cloneNode()}),e.textContent=t)),ta("afterSanitizeElements",e,null),!1)},tl=function(e,t,r){if(eF&&("id"===t||"name"===t)&&(r in u||r in e2))return!1;if(eC&&!eS[t]&&D(Y,t));else if(eE&&D(G,t));else if(!ew[t]||eS[t]){if(!(tu(e)&&(ex.tagNameCheck instanceof RegExp&&D(ex.tagNameCheck,e)||ex.tagNameCheck instanceof Function&&ex.tagNameCheck(e))&&(ex.attributeNameCheck instanceof RegExp&&D(ex.attributeNameCheck,t)||ex.attributeNameCheck instanceof Function&&ex.attributeNameCheck(t))||"is"===t&&ex.allowCustomizedBuiltInElements&&(ex.tagNameCheck instanceof RegExp&&D(ex.tagNameCheck,r)||ex.tagNameCheck instanceof Function&&ex.tagNameCheck(r))))return!1}else if(e$[t]);else if(D(ev,S(r,J,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===E(r,"data:")&&eH[e]);else if(eD&&!D(X,S(r,J,"")));else if(r)return!1;return!0},tu=function(e){return e.indexOf("-")>0},tc=function(t){ta("beforeSanitizeAttributes",t,null);var r,n,o,s,l=t.attributes;if(l){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ew};for(s=l.length;s--;){var c=(r=l[s]).name,d=r.namespaceURI;if(n="value"===c?r.value:C(r.value),o=i(c),u.attrName=o,u.attrValue=n,u.keepAttr=!0,u.forceKeepAttr=void 0,ta("uponSanitizeAttribute",t,u),n=u.attrValue,!u.forceKeepAttr&&(tr(c,t),u.keepAttr)){if(!eA&&D(/\/>/i,n)){tr(c,t);continue}ej&&(n=S(n,V," "),n=S(n,$," "),n=S(n,W," "));var h=i(t.nodeName);if(tl(h,o,n)){if(eI&&("id"===o||"name"===o)&&(tr(c,t),n="user-content-"+n),el&&"object"===e(et)&&"function"==typeof et.getAttributeType){if(d);else switch(et.getAttributeType(h,o)){case"TrustedHTML":n=el.createHTML(n);break;case"TrustedScriptURL":n=el.createScriptURL(n)}}try{d?t.setAttributeNS(d,c,n):t.setAttribute(c,n),b(a.removed)}catch(e){}}}}ta("afterSanitizeAttributes",t,null)}},td=function e(t){var r,n=ti(t);for(ta("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)ta("uponSanitizeShadowNode",r,null),ts(r)||(r.content instanceof c&&e(r.content),tc(r));ta("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(e){var t,r,n,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((eJ=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!to(e)){if("function"!=typeof e.toString)throw A("toString is not a function");if("string"!=typeof(e=e.toString()))throw A("dirty is not a string, aborting")}if(!a.isSupported)return e;if(eT||e5(s),a.removed=[],"string"==typeof e&&(eB=!1),eB){if(e.nodeName){var u=i(e.nodeName);if(!ey[u]||e_[u])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof p)1===(r=(t=tn("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName?t=r:"HTML"===r.nodeName?t=r:t.appendChild(r);else{if(!eR&&!ej&&!eO&&-1===e.indexOf("<"))return el&&eN?el.createHTML(e):e;if(!(t=tn(e)))return eR?null:eN?eu:""}t&&eP&&tt(t.firstChild);for(var d=ti(eB?e:t);n=d.nextNode();)ts(n)||(n.content instanceof c&&td(n.content),tc(n));if(eB)return e;if(eR){if(eM)for(o=ep.call(t.ownerDocument);t.firstChild;)o.appendChild(t.firstChild);else o=t;return(ew.shadowroot||ew.shadowrootmod)&&(o=em.call(l,o,!0)),o}var h=eO?t.outerHTML:t.innerHTML;return eO&&ey["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&D(Q,t.ownerDocument.doctype.name)&&(h="\n"+h),ej&&(h=S(h,V," "),h=S(h,$," "),h=S(h,W," ")),el&&eN?el.createHTML(h):h},a.setConfig=function(e){e5(e),eT=!0},a.clearConfig=function(){e1=null,eT=!1},a.isValidAttribute=function(e,t,r){return e1||e5({}),tl(i(e),i(t),r)},a.addHook=function(e,t){"function"==typeof t&&(eg[e]=eg[e]||[],w(eg[e],t))},a.removeHook=function(e){if(eg[e])return b(eg[e])},a.removeHooks=function(e){eg[e]&&(eg[e]=[])},a.removeAllHooks=function(){eg={}},a}()},e.exports=t()},81354:e=>{e.exports=()=>/(?:[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDD-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF6](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC2\uDED0-\uDED9\uDEE0-\uDEE7]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?))/g},50046:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,i,o,a,s,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var u=Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(void 0===(i=this._events[e]))return!1;if(r(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),i.apply(this,a)}else if(n(i))for(s=0,a=Array.prototype.slice.call(arguments,1),o=(l=i.slice()).length;s0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(i=this._events[e]).length,o=-1,i===t||r(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(i)){for(s=a;s-- >0;)if(i[s]===t||i[s].listener&&i[s].listener===t){o=s;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0==arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0==arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},53842:(e,t,r)=>{var n;!function(){"use strict";var i=!!("undefined"!=typeof window&&window.document&&window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!!(window.addEventListener||window.attachEvent),canUseViewport:i&&!!window.screen};void 0!==(n=(function(){return o}).call(t,r,t,e))&&(e.exports=n)}()},38792:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var n,i,o,a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},2940:e=>{function t(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),o=t.get(i);return void 0===o&&(o=e.call(this,n),t.set(i,o)),o}function r(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function n(){return JSON.stringify(arguments)}function i(){this.cache=Object.create(null)}i.prototype.has=function(e){return e in this.cache},i.prototype.get=function(e){return this.cache[e]},i.prototype.set=function(e,t){this.cache[e]=t};var o={create:function(){return new i}};e.exports=function(e,i){var a=i&&i.cache?i.cache:o,s=i&&i.serializer?i.serializer:n;return(i&&i.strategy?i.strategy:function(e,n){var i,o,a=1===e.length?t:r;return i=n.cache.create(),o=n.serializer,a.bind(this,e,i,o)})(e,{cache:a,serializer:s})},e.exports.strategies={variadic:function(e,t){var n,i;return n=t.cache.create(),i=t.serializer,r.bind(this,e,n,i)},monadic:function(e,r){var n,i;return n=r.cache.create(),i=r.serializer,t.bind(this,e,n,i)}}},30282:e=>{e.exports=a,a.default=a,a.stable=u,a.stableStringify=u;var t="[...]",r="[Circular]",n=[],i=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,l,u){void 0===u&&(u=o()),function e(n,i,o,a,l,u,c){if(u+=1,"object"==typeof n&&null!==n){for(d=0;dc.depthLimit||void 0!==c.edgesLimit&&o+1>c.edgesLimit){s(t,n,i,l);return}if(a.push(n),Array.isArray(n))for(d=0;dt?1:0}function u(e,a,u,d){void 0===d&&(d=o());var h,p=function e(i,o,a,u,c,d,h){if(d+=1,"object"==typeof i&&null!==i){for(p=0;ph.depthLimit||void 0!==h.edgesLimit&&a+1>h.edgesLimit){s(t,i,o,c);return}if(u.push(i),Array.isArray(i))for(p=0;p0)for(var n=0;ni)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(r);)r=Math.floor(Math.random()*i);return n(e,r)}),r.addUniqueNumber=function(e){var t=a(e);return e.add(t),t},r.generateUniqueNumber=a,Object.defineProperty(r,"__esModule",{value:!0})},40699:(e,t,r)=>{"use strict";function n(e){for(var t=[],r=1;ra,KR:()=>o,RI:()=>s,SS:()=>i,T6:()=>n})},28794:e=>{"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n,i=this;if("function"!=typeof i||"[object Function]"!==r.call(i))throw TypeError("Function.prototype.bind called on incompatible "+i);for(var o=t.call(arguments,1),a=Math.max(0,i.length-o.length),s=[],l=0;l{"use strict";var n=r(28794);e.exports=Function.prototype.bind||n},82674:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(13941),i=r(74672),o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0?i:i+2*Math.PI)/Math.PI*180}function l(e){return e.touches?function(e){for(var t=Math.min(e.length,2),r=[],n=0;n-1,k=y.isContentEditable;if(w||k){if(h||v===y||v&&k&&v.isContentEditable&&v.contains(y))return!1}else if((d||"touchstart"===e.type)&&v){var x=v.tagName;(v.isContentEditable||f.indexOf(x)>-1)&&v.blur()}if(n.clientStores=[new p(l(e))],n.flag=!0,n.isDrag=!1,n._dragFlag=!0,n.datas={},c&&(3===e.which||2===e.button))return n.initDrag(),!1;n.doubleFlag=(0,i.tB)()-n.prevTime<200,!1===n.emit("dragStart",a({datas:n.datas,inputEvent:e,isTrusted:t,isDouble:n.doubleFlag},n.getCurrentStore().getPosition(),{preventDefault:function(){e.preventDefault()},preventDrag:function(){n._dragFlag=!1}}))&&n.initDrag(),n.flag&&d&&e.preventDefault()}if(!n.flag)return!1;var _=0;if(g&&m&&u&&(_=setTimeout(function(){(0,i.W2)(s,"touchstart",n.onDragStart,{passive:!1})})),!g&&m&&u&&(0,i.Nn)(s,"touchstart",n.onDragStart),n.flag&&(r=e).touches&&r.touches.length>=2){if(clearTimeout(_),g&&e.touches.length!==e.changedTouches.length)return;n.pinchFlag||n.onPinchStart(e)}}},n.onDrag=function(e,t){if(n.flag){var r=l(e),i=n.moveClients(r,e,!1);if(n._dragFlag){if((n.pinchFlag||i.deltaX||i.deltaY)&&!1===n.emit("drag",a({},i,{isScroll:!!t,inputEvent:e}))){n.stop();return}n.pinchFlag&&n.onPinch(e,r)}n.getCurrentStore().getPosition(r,!0)}},n.onDragEnd=function(e){if(n.flag){var t=n.options,r=t.pinchOutside,o=t.container;n.isTouch&&r&&(0,i.Nn)(o,"touchstart",n.onDragStart),n.pinchFlag&&n.onPinchEnd(e);var s=l(e);0!==s.length&&n.options.keepDragging?n._addStore(new p(s)):n.flag=!1;var u=n._getPosition(),c=(0,i.tB)(),d=!n.isDrag&&n.doubleFlag;n.prevTime=n.isDrag||d?0:c,n.flag||(n.emit("dragEnd",a({datas:n.datas,isDouble:d,isDrag:n.isDrag,isClick:!n.isDrag,inputEvent:e},u)),n.clientStores=[])}},n.onBlur=function(){n.onDragEnd()};var o=[].concat(t);n.options=a({checkInput:!1,container:o.length>1?window:o[0],preventRightClick:!0,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},r);var s=n.options,u=s.container,c=s.events,d=s.checkWindowBlur;if(n.isTouch=c.indexOf("touch")>-1,n.isMouse=c.indexOf("mouse")>-1,n.targets=o,n.isMouse&&(o.forEach(function(e){(0,i.W2)(e,"mousedown",n.onDragStart)}),(0,i.W2)(u,"mousemove",n.onDrag),(0,i.W2)(u,"mouseup",n.onDragEnd),(0,i.W2)(u,"contextmenu",n.onDragEnd)),d&&(0,i.W2)(window,"blur",n.onBlur),n.isTouch){var h={passive:!1};o.forEach(function(e){(0,i.W2)(e,"touchstart",n.onDragStart,h)}),(0,i.W2)(u,"touchmove",n.onDrag,h),(0,i.W2)(u,"touchend",n.onDragEnd,h),(0,i.W2)(u,"touchcancel",n.onDragEnd,h)}return n}!function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e);var r=t.prototype;return r.stop=function(){this.isDrag=!1,this.flag=!1,this.clientStores=[],this.datas={}},r.getMovement=function(e){return this.getCurrentStore().getMovement(e)+this.clientStores.slice(1).reduce(function(e,t){return e+t.movement},0)},r.isDragging=function(){return this.isDrag},r.isFlag=function(){return this.flag},r.isPinchFlag=function(){return this.pinchFlag},r.isDoubleFlag=function(){return this.doubleFlag},r.isPinching=function(){return this.isPinch},r.scrollBy=function(e,t,r,n){void 0===n&&(n=!0),this.flag&&(this.clientStores[0].move(e,t),n&&this.onDrag(r,!0))},r.move=function(e,t){var r=e[0],n=e[1],i=this.getCurrentStore().prevClients;return this.moveClients(i.map(function(e){var t=e.clientX,i=e.clientY;return{clientX:t+r,clientY:i+n,originalClientX:t,originalClientY:i}}),t,!0)},r.triggerDragStart=function(e){this.onDragStart(e,!1)},r.setEventDatas=function(e){var t=this.datas;for(var r in e)t[r]=e[r];return this},r.getCurrentEvent=function(e){return a({datas:this.datas},this._getPosition(),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:e})},r.getEventDatas=function(){return this.datas},r.unset=function(){var e=this,t=this.targets,r=this.options.container;this.off(),(0,i.Nn)(window,"blur",this.onBlur),this.isMouse&&(t.forEach(function(t){(0,i.Nn)(t,"mousedown",e.onDragStart)}),(0,i.Nn)(r,"mousemove",this.onDrag),(0,i.Nn)(r,"mouseup",this.onDragEnd),(0,i.Nn)(r,"contextmenu",this.onDragEnd)),this.isTouch&&(t.forEach(function(t){(0,i.Nn)(t,"touchstart",e.onDragStart)}),(0,i.Nn)(r,"touchstart",this.onDragStart),(0,i.Nn)(r,"touchmove",this.onDrag),(0,i.Nn)(r,"touchend",this.onDragEnd),(0,i.Nn)(r,"touchcancel",this.onDragEnd))},r.onPinchStart=function(e){var t=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>t)){var r=new p(l(e));this.pinchFlag=!0,this._addStore(r),!1===this.emit("pinchStart",a({datas:this.datas,angle:r.getAngle(),touches:this.getCurrentStore().getPositions()},r.getPosition(),{inputEvent:e}))&&(this.pinchFlag=!1)}},r.onPinch=function(e,t){if(this.flag&&this.pinchFlag&&!(t.length<2)){var r=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",a({datas:this.datas,movement:this.getMovement(t),angle:r.getAngle(t),rotation:r.getRotation(t),touches:r.getPositions(t),scale:r.getScale(t),distance:r.getDistance(t)},r.getPosition(t),{inputEvent:e}))}},r.onPinchEnd=function(e){if(this.pinchFlag){var t=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var r=this.getCurrentStore();this.emit("pinchEnd",a({datas:this.datas,isPinch:t,touches:r.getPositions()},r.getPosition(),{inputEvent:e}))}},r.initDrag=function(){this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1},r.getCurrentStore=function(){return this.clientStores[0]},r.moveClients=function(e,t,r){var n=this._getPosition(e,r);return(n.deltaX||n.deltaY)&&(this.isDrag=!0),a({datas:this.datas},n,{movement:this.getMovement(e),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:t})},r._addStore=function(e){this.clientStores.splice(0,0,e)},r._getPosition=function(e,t){var r=this.getCurrentStore().getPosition(e,t),n=this.clientStores.slice(1).reduce(function(e,t){var r=t.getPosition();return e.distX+=r.distX,e.distY+=r.distY,e},r),i=n.distX,o=n.distY;return a({},r,{distX:i,distY:o})},t}(n.A)},528:(e,t,r)=>{"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new a},c=l?function(){try{return arguments.callee,u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,d=r(53558)(),h=Object.getPrototypeOf||function(e){return e.__proto__},p={},f="undefined"==typeof Uint8Array?n:h(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?h(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?h(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?h(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":f,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},g=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(r=h(i.prototype))}return m[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=r(79138),b=r(92571),w=y.call(Function.call,Array.prototype.concat),k=y.call(Function.apply,Array.prototype.splice),x=y.call(Function.call,String.prototype.replace),_=y.call(Function.call,String.prototype.slice),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,C=function(e){var t=_(e,0,1),r=_(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,S,function(e,t,r,i){n[n.length]=r?x(i,E,"$1"):t||e}),n},D=function(e,t){var r,n=e;if(b(v,n)&&(n="%"+(r=v[n])[0]+"%"),b(m,n)){var o=m[n];if(o===p&&(o=g(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var r=C(e),n=r.length>0?r[0]:"",o=D("%"+n+"%",t),s=o.name,u=o.value,c=!1,d=o.alias;d&&(n=d[0],k(r,w([0,1],d)));for(var h=1,p=!0;h=r.length){var y=l(u,f);u=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:u[f]}else p=b(u,f),u=u[f];p&&!c&&(m[s]=u)}}return u}},5276:(e,t,r)=>{"use strict";r.d(t,{J1:()=>L});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r120){for(var f=Math.floor(c/80),m=c%80,g=[],v=0;v",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),_=r(47343),S=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),E=r(67714),C=function(){function e(e){var t=new k.ou(x.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e,t=this.token;if(t.kind!==x.EOF)do t=null!==(e=t.next)&&void 0!==e?e:t.next=function(e,t){for(var r=e.source,n=r.body,i=n.length,o=t.end;o31||9===o));return new k.ou(x.COMMENT,t,s,r,n,i,a.slice(t+1,s))}(r,o,s,l,t);case 36:return new k.ou(x.DOLLAR,o,o+1,s,l,t);case 38:return new k.ou(x.AMP,o,o+1,s,l,t);case 40:return new k.ou(x.PAREN_L,o,o+1,s,l,t);case 41:return new k.ou(x.PAREN_R,o,o+1,s,l,t);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return new k.ou(x.SPREAD,o,o+3,s,l,t);break;case 58:return new k.ou(x.COLON,o,o+1,s,l,t);case 61:return new k.ou(x.EQUALS,o,o+1,s,l,t);case 64:return new k.ou(x.AT,o,o+1,s,l,t);case 91:return new k.ou(x.BRACKET_L,o,o+1,s,l,t);case 93:return new k.ou(x.BRACKET_R,o,o+1,s,l,t);case 123:return new k.ou(x.BRACE_L,o,o+1,s,l,t);case 124:return new k.ou(x.PIPE,o,o+1,s,l,t);case 125:return new k.ou(x.BRACE_R,o,o+1,s,l,t);case 34:if(34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2))return function(e,t,r,n,i,o){for(var a=e.body,s=t+3,l=s,u=0,c="";s=48&&l<=57)throw b(e,u,"Invalid number, unexpected digit after 0: ".concat(D(l),"."))}else u=A(e,u,l),l=s.charCodeAt(u);if(46===l&&(c=!0,l=s.charCodeAt(++u),u=A(e,u,l),l=s.charCodeAt(u)),(69===l||101===l)&&(c=!0,(43===(l=s.charCodeAt(++u))||45===l)&&(l=s.charCodeAt(++u)),u=A(e,u,l),l=s.charCodeAt(u)),46===l||95===(a=l)||a>=65&&a<=90||a>=97&&a<=122)throw b(e,u,"Invalid number, expected digit but got: ".concat(D(l),"."));return new k.ou(c?x.FLOAT:x.INT,t,u,n,i,o,s.slice(t,u))}(r,o,a,s,l,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,r,n,i){for(var o=e.body,a=o.length,s=t+1,l=0;s!==a&&!isNaN(l=o.charCodeAt(s))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++s;return new k.ou(x.NAME,t,s,r,n,i,o.slice(t,s))}(r,o,s,l,t)}throw b(r,o,a<32&&9!==a&&10!==a&&13!==a?"Cannot contain the invalid character ".concat(D(a),"."):39===a?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(D(a),"."))}var u=e.line,c=1+o-e.lineStart;return new k.ou(x.EOF,i,i,u,c,t)}(this,t);while(t.kind===x.COMMENT);return t},e}();function D(e){return isNaN(e)?x.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function A(e,t,r){var n=e.body,i=t,o=r;if(o>=48&&o<=57){do o=n.charCodeAt(++i);while(o>=48&&o<=57);return i}throw b(e,i,"Invalid number, expected digit but got: ".concat(D(o),"."))}function j(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var O=function(){function e(e,t){var r=(0,_._)(e)?e:new _.k(e);this._lexer=new C(r),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(x.NAME);return{kind:w.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:w.DOCUMENT,definitions:this.many(x.SOF,this.parseDefinition,x.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(x.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else if(this.peek(x.BRACE_L))return this.parseOperationDefinition();else if(this.peekDescription())return this.parseTypeSystemDefinition();throw this.unexpected()},t.parseOperationDefinition=function(){var e,t=this._lexer.token;if(this.peek(x.BRACE_L))return{kind:w.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)};var r=this.parseOperationType();return this.peek(x.NAME)&&(e=this.parseName()),{kind:w.OPERATION_DEFINITION,operation:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseOperationType=function(){var e=this.expectToken(x.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(x.PAREN_L,this.parseVariableDefinition,x.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:w.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(x.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(x.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(x.DOLLAR),{kind:w.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:w.SELECTION_SET,selections:this.many(x.BRACE_L,this.parseSelection,x.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(x.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(x.COLON)?(e=n,t=this.parseName()):t=n,{kind:w.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(x.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(x.PAREN_L,t,x.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(x.COLON),{kind:w.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:w.ARGUMENT,name:this.parseName(),value:(this.expectToken(x.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(x.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(x.NAME)?{kind:w.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:w.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return(this.expectKeyword("fragment"),(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)===!0)?{kind:w.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:w.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case x.BRACKET_L:return this.parseList(e);case x.BRACE_L:return this.parseObject(e);case x.INT:return this._lexer.advance(),{kind:w.INT,value:t.value,loc:this.loc(t)};case x.FLOAT:return this._lexer.advance(),{kind:w.FLOAT,value:t.value,loc:this.loc(t)};case x.STRING:case x.BLOCK_STRING:return this.parseStringLiteral();case x.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:w.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:w.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:w.NULL,loc:this.loc(t)};default:return{kind:w.ENUM,value:t.value,loc:this.loc(t)}}case x.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:w.STRING,value:e.value,block:e.kind===x.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,r=this._lexer.token;return{kind:w.LIST,values:this.any(x.BRACKET_L,function(){return t.parseValueLiteral(e)},x.BRACKET_R),loc:this.loc(r)}},t.parseObject=function(e){var t=this,r=this._lexer.token;return{kind:w.OBJECT,fields:this.any(x.BRACE_L,function(){return t.parseObjectField(e)},x.BRACE_R),loc:this.loc(r)}},t.parseObjectField=function(e){var t=this._lexer.token,r=this.parseName();return this.expectToken(x.COLON),{kind:w.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(x.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(x.AT),{kind:w.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return(this.expectOptionalToken(x.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(x.BRACKET_R),e={kind:w.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(x.BANG))?{kind:w.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:w.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===x.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(x.STRING)||this.peek(x.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var r=this.parseDirectives(!0),n=this.many(x.BRACE_L,this.parseOperationTypeDefinition,x.BRACE_R);return{kind:w.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(x.COLON);var r=this.parseNamedType();return{kind:w.OPERATION_TYPE_DEFINITION,operation:t,type:r,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:w.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:w.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if((null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)===!0){var t=[];this.expectOptionalToken(x.AMP);do t.push(this.parseNamedType());while(this.expectOptionalToken(x.AMP)||this.peek(x.NAME));return t}return this.delimitedMany(x.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)===!0&&this.peek(x.BRACE_L)&&this._lexer.lookahead().kind===x.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(x.BRACE_L,this.parseFieldDefinition,x.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(x.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:w.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(x.PAREN_L,this.parseInputValueDef,x.PAREN_R)},t.parseInputValueDef=function(){var e,t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(x.COLON);var i=this.parseTypeReference();this.expectOptionalToken(x.EQUALS)&&(e=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:w.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:e,directives:o,loc:this.loc(t)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:w.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:w.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(x.EQUALS)?this.delimitedMany(x.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:w.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(x.BRACE_L,this.parseEnumValueDefinition,x.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:w.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:w.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(x.BRACE_L,this.parseInputValueDef,x.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===x.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.optionalMany(x.BRACE_L,this.parseOperationTypeDefinition,x.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return{kind:w.SCHEMA_EXTENSION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:w.SCALAR_TYPE_EXTENSION,name:t,directives:r,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:w.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:w.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:w.UNION_TYPE_EXTENSION,name:t,directives:r,types:n,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:w.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:w.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(x.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:w.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(x.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==S[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if((null===(t=this._options)||void 0===t?void 0:t.noLocation)!==!0)return new k.aZ(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw b(this._lexer.source,t.start,"Expected ".concat(P(e),", found ").concat(T(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind===x.NAME&&t.value===e)this._lexer.advance();else throw b(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(T(t),"."))},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===x.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return b(this._lexer.source,t.start,"Unexpected ".concat(T(t),"."))},t.any=function(e,t,r){this.expectToken(e);for(var n=[];!this.expectOptionalToken(r);)n.push(t.call(this));return n},t.optionalMany=function(e,t,r){if(this.expectOptionalToken(e)){var n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}return[]},t.many=function(e,t,r){this.expectToken(e);var n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r},e}();function T(e){var t=e.value;return P(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function P(e){return e===x.BANG||e===x.DOLLAR||e===x.AMP||e===x.PAREN_L||e===x.PAREN_R||e===x.SPREAD||e===x.COLON||e===x.EQUALS||e===x.AT||e===x.BRACKET_L||e===x.BRACKET_R||e===x.BRACE_L||e===x.PIPE||e===x.BRACE_R?'"'.concat(e,'"'):e}var R=new Map,M=new Map,N=!0,F=!1;function I(e){return e.replace(/[\s,]+/g," ").trim()}function L(e){for(var t=[],r=1;r{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(62908);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},62908:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},92571:(e,t,r)=>{"use strict";var n=r(79138);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},89489:(e,t,r)=>{"use strict";r.d(t,{$:()=>n,V:()=>i});var n=function(){},i=function(){}},75985:(e,t,r)=>{"use strict";var n=r(65521),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var i=p(r);i&&i!==f&&e(t,i,n)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),g=0;g{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function x(e){return k(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||k(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return k(e)===h},t.isFragment=function(e){return k(e)===o},t.isLazy=function(e){return k(e)===g},t.isMemo=function(e){return k(e)===m},t.isPortal=function(e){return k(e)===i},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===a},t.isSuspense=function(e){return k(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=k},65521:(e,t,r)=>{"use strict";e.exports=r(26685)},39318:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<>1,c=-7,d=r?i-1:0,h=r?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+d],d+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=u}return(p?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,h=23===i?5960464477539062e-23:0,p=n?0:o-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;e[r+p]=255&a,p+=f,a/=256,u-=8);e[r+p-f]|=128*m}},35615:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},6502:(e,t,r)=>{"use strict";r.d(t,{S:()=>l});var n=r(28048),i=r(78631),o=r(14912),a=r(91478);function s(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var l=function(){function e(t,r,i,l){void 0===r&&(r=e.defaultLocale);var u,c,d=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=d.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&t.type===a.TT.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return(0,a.hN)(d.ast,d.locales,d.formatters,d.formats,e,void 0,d.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=d.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(d.locales)[0]}},this.getAst=function(){return d.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==l?void 0:l.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(u=e.formats,i?Object.keys(u).reduce(function(e,t){var r,o;return e[t]=(r=u[t],(o=i[t])?(0,n.Cl)((0,n.Cl)((0,n.Cl)({},r||{}),o||{}),Object.keys(r).reduce(function(e,t){return e[t]=(0,n.Cl)((0,n.Cl)({},r[t]),o[t]||{}),e},{})):r),e},(0,n.Cl)({},u)):u),this.formatters=l&&l.formatters||(void 0===(c=this.formatterCache)&&(c={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,o.A)(function(){for(var e,t=[],r=0;r0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=i.qg,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},54179:(e,t,r)=>{"use strict";r.d(t,{$x:()=>a,Ei:()=>l,IF:()=>o,O4:()=>n,Zo:()=>s});var n,i=r(28048);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(n||(n={}));var o=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return(0,i.C6)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),a=function(e){function t(t,r,i,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),n.INVALID_VALUE,o)||this}return(0,i.C6)(t,e),t}(o),s=function(e){function t(t,r,i){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),n.INVALID_VALUE,i)||this}return(0,i.C6)(t,e),t}(o),l=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),n.MISSING_VALUE,r)||this}return(0,i.C6)(t,e),t}(o)},91478:(e,t,r)=>{"use strict";r.d(t,{RK:()=>a,TT:()=>n,hN:()=>function e(t,r,s,l,u,c,d){if(1===t.length&&(0,i.eW)(t[0]))return[{type:n.literal,value:t[0].value}];for(var h=[],p=0;p{"use strict";r.d(t,{C6:()=>i,Cl:()=>o,fX:()=>a});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{"use strict";for(var r="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),n={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},i={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:r?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},o={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},a=1;a<20;a++)o["f"+a]=111+a;function s(e,t,r){!t||"byKey"in t||(r=t,t=null),Array.isArray(e)||(e=[e]);var a=e.map(function(e){return function(e,t){var r=t&&t.byKey,a={},s=(e=e.replace("++","+add")).split("+"),u=s.length;for(var c in n)a[n[c]]=!1;var d=!0,h=!1,p=void 0;try{for(var f,m=s[Symbol.iterator]();!(d=(f=m.next()).done);d=!0){var g,v=f.value,y=v.endsWith("?")&&v.length>1;y&&(v=v.slice(0,-1));var b=l(v),w=n[b];if(v.length>1&&!w&&!i[v]&&!o[b])throw TypeError('Unknown modifier: "'+v+'"');1!==u&&w||(r?a.key=b:a.which=(g=v,o[g=l(g)]||g.toUpperCase().charCodeAt(0))),w&&(a[w]=!y||null)}}catch(e){h=!0,p=e}finally{try{!d&&m.return&&m.return()}finally{if(h)throw p}}return a}(e,t)}),s=function(e){return a.some(function(t){return function(e,t){for(var r in e){var n=e[r],i=void 0;if(null!=n&&(null!=(i="key"===r&&null!=t.key?t.key.toLowerCase():"which"===r?91===n&&93===t.which?91:t.which:t[r])||!1!==n)&&i!==n)return!1}return!0}(t,e)})};return null==r?s:s(r)}function l(e){return e=i[e=e.toLowerCase()]||e}t.Ay=s,t.v_=s},70138:e=>{e.exports=function(e,t){if(e===t)return!0;for(var r in e)if(!(r in t))return!1;for(var r in t)if(e[r]!==t[r])return!1;return!0}},89897:(e,t,r)=>{e.exports=window.DOMPurify||(window.DOMPurify=r(71651).default||r(71651))},25827:(e,t,r)=>{"use strict";function n(e){function t(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.message=e,this.code=t}return t.prototype=Error(),t.prototype.name=e,t.prototype.constructor=t,t}let i=n("LaunchDarklyUnexpectedResponseError"),o=n("LaunchDarklyInvalidEnvironmentIdError"),a=n("LaunchDarklyInvalidUserError"),s=n("LaunchDarklyInvalidEventKeyError"),l=n("LaunchDarklyInvalidArgumentError"),u=n("LaunchDarklyFlagFetchError");for(var c={LDUnexpectedResponseError:i,LDInvalidEnvironmentIdError:o,LDInvalidUserError:a,LDInvalidEventKeyError:s,LDInvalidArgumentError:l,LDInvalidDataError:n("LaunchDarklyInvalidDataError"),LDFlagFetchError:u,LDTimeoutError:n("LaunchDarklyTimeoutError"),isHttpErrorRecoverable:function(e){return!(e>=400&&e<500)||400===e||408===e||429===e}},d=[],h=[],p=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),f=0;f<64;++f)d[f]=p[f],h[p.charCodeAt(f)]=f;h["-".charCodeAt(0)]=62,h["_".charCodeAt(0)]=63;var m={fromByteArray:function(e){for(var t,r=e.length,n=r%3,i=[],o=0,a=r-n;o>18&63]+d[n>>12&63]+d[n>>6&63]+d[63&n]);return i.join("")}(e,o,o+16383>a?a:o+16383));return 1===n?i.push(d[(t=e[r-1])>>2]+d[t<<4&63]+"=="):2===n&&i.push(d[(t=(e[r-2]<<8)+e[r-1])>>10]+d[t>>4&63]+d[t<<2&63]+"="),i.join("")}},g=Array.isArray,v=Object.keys,y=Object.prototype.hasOwnProperty,b=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){var n,i,o,a=g(t),s=g(r);if(a&&s){if((i=t.length)!=r.length)return!1;for(n=i;0!=n--;)if(!e(t[n],r[n]))return!1;return!0}if(a!=s)return!1;var l=t instanceof Date,u=r instanceof Date;if(l!=u)return!1;if(l&&u)return t.getTime()==r.getTime();var c=t instanceof RegExp,d=r instanceof RegExp;if(c!=d)return!1;if(c&&d)return t.toString()==r.toString();var h=v(t);if((i=h.length)!==v(r).length)return!1;for(n=i;0!=n--;)if(!y.call(r,h[n]))return!1;for(n=i;0!=n--;)if(!e(t[o=h[n]],r[o]))return!1;return!0}return t!=t&&r!=r};let w=["key","ip","country","email","firstName","lastName","avatar","name"];function k(e){let t=unescape(encodeURIComponent(e));return m.fromByteArray(function(e){let t=[];for(let r=0;r({...e,...t}),{})},getLDUserAgentString:function(e){let t=e.version||"?";return e.userAgent+"/"+t},objectHasOwnProperty:x,onNextTick:function(e){setTimeout(e,0)},sanitizeContext:function(e){let t;return e?(null!==e.kind&&void 0!==e.kind||w.forEach(r=>{let n=e[r];void 0!==n&&"string"!=typeof n&&((t=t||{...e})[r]=String(n))}),t||e):e},transformValuesToVersionedValues:function(e){let t={};for(let r in e)x(e,r)&&(t[r]={value:e[r],version:0});return t},transformVersionedValuesToValues:function(e){let t={};for(let r in e)x(e,r)&&(t[r]=e[r].value);return t},wrapPromiseCallback:function(e,t){let r=e.then(e=>(t&&setTimeout(()=>{t(null,e)},0),e),e=>{if(!t)return Promise.reject(e);setTimeout(()=>{t(e,null)},0)});return t?void 0:r}},E=new Uint8Array(16);function C(){if(!_&&!(_="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _(E)}var D=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function A(e){return"string"==typeof e&&D.test(e)}for(var j,O,T=[],P=0;P<256;++P)T.push((P+256).toString(16).substr(1));function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(T[e[t+0]]+T[e[t+1]]+T[e[t+2]]+T[e[t+3]]+"-"+T[e[t+4]]+T[e[t+5]]+"-"+T[e[t+6]]+T[e[t+7]]+"-"+T[e[t+8]]+T[e[t+9]]+"-"+T[e[t+10]]+T[e[t+11]]+T[e[t+12]]+T[e[t+13]]+T[e[t+14]]+T[e[t+15]]).toLowerCase();if(!A(r))throw TypeError("Stringified UUID is invalid");return r}var M=0,N=0;function F(e){if(!A(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/0x10000000000&255,r[11]=t/0x100000000&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}function I(e,t,r){function n(e,n,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r>>9<<4)+1}function B(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function z(e,t,r,n,i,o){var a;return B((a=B(B(t,e),B(n,o)))<>>32-i,r)}function U(e,t,r,n,i,o,a){return z(t&r|~t&n,e,t,i,o,a)}function q(e,t,r,n,i,o,a){return z(t&n|r&~n,e,t,i,o,a)}function H(e,t,r,n,i,o,a){return z(t^r^n,e,t,i,o,a)}function V(e,t,r,n,i,o,a){return z(r^(t|~n),e,t,i,o,a)}function $(e,t){return e<>>32-t}var W=Object.freeze({__proto__:null,v1:function(e,t,r){var n=t&&r||0,i=t||Array(16),o=(e=e||{}).node||j,a=void 0!==e.clockseq?e.clockseq:O;if(null==o||null==a){var s=e.random||(e.rng||C)();null==o&&(o=j=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=O=16383&(s[6]<<8|s[7]))}var l=void 0!==e.msecs?e.msecs:Date.now(),u=void 0!==e.nsecs?e.nsecs:N+1,c=l-M+(u-N)/1e4;if(c<0&&void 0===e.clockseq&&(a=a+1&16383),(c<0||l>M)&&void 0===e.nsecs&&(u=0),u>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");M=l,N=u,O=a;var d=(1e4*(0xfffffff&(l+=122192928e5))+u)%0x100000000;i[n++]=d>>>24&255,i[n++]=d>>>16&255,i[n++]=d>>>8&255,i[n++]=255&d;var h=l/0x100000000*1e4&0xfffffff;i[n++]=h>>>8&255,i[n++]=255&h,i[n++]=h>>>24&15|16,i[n++]=h>>>16&255,i[n++]=a>>>8|128,i[n++]=255&a;for(var p=0;p<6;++p)i[n+p]=o[p];return t||R(i)},v3:I("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r>5]>>>i%32&255,a=parseInt(n.charAt(o>>>4&15)+n.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[n/8])<>>0;b=y,y=v,v=$(g,30)>>>0,g=m,m=x}r[0]=r[0]+m>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+v>>>0,r[3]=r[3]+y>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}),NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!A(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)},validate:A,stringify:R,parse:F});let Y=["debug","info","warn","error","none"];var G={commonBasicLogger:function(e,t){if(e&&e.destination&&"function"!=typeof e.destination)throw Error("destination for basicLogger was set to a non-function");function r(e){return function(t){console&&console[e]&&console[e].call(console,t)}}let n=e&&e.destination?[e.destination,e.destination,e.destination,e.destination]:[r("log"),r("info"),r("warn"),r("error")],i=!(!e||!e.destination),o=e&&void 0!==e.prefix&&null!==e.prefix?e.prefix:"[LaunchDarkly] ",a=1;if(e&&e.level)for(let t=0;t{};else{let a=e;s[r]=function(){!function(e,r,a){let s;if(a.length<1)return;let l=i?r+": "+o:o;if(1!==a.length&&t){let e=[...a];e[0]=l+e[0],s=t(...e)}else s=l+a[0];try{n[e](s)}catch(e){console&&console.log&&console.log("[LaunchDarkly] Configured logger's "+r+" method threw an exception: "+e)}}(a,r,arguments)}}}}return s},validateLogger:function(e){Y.forEach(t=>{if("none"!==t&&(!e[t]||"function"!=typeof e[t]))throw Error("Provided logger instance must support logger."+t+"(...) method")})}};function K(e){return e&&e.message?e.message:"string"==typeof e||e instanceof String?e:JSON.stringify(e)}let X=" Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initialize-the-client for instructions on SDK initialization.";var J={bootstrapInvalid:function(){return"LaunchDarkly bootstrap data is not available because the back end could not read the flags."},bootstrapOldFormat:function(){return"LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly."+X},clientInitialized:function(){return"LaunchDarkly client initialized"},clientNotReady:function(){return"LaunchDarkly client is not ready"},debugEnqueueingEvent:function(e){return'enqueueing "'+e+'" event'},debugPostingDiagnosticEvent:function(e){return"sending diagnostic event ("+e.kind+")"},debugPostingEvents:function(e){return"sending "+e+" events"},debugStreamDelete:function(e){return'received streaming deletion for flag "'+e+'"'},debugStreamDeleteIgnored:function(e){return'received streaming deletion for flag "'+e+'" but ignored due to version check'},debugStreamPatch:function(e){return'received streaming update for flag "'+e+'"'},debugStreamPatchIgnored:function(e){return'received streaming update for flag "'+e+'" but ignored due to version check'},debugStreamPing:function(){return"received ping message from stream"},debugPolling:function(e){return"polling for feature flags at "+e},debugStreamPut:function(){return"received streaming update for all flags"},deprecated:function(e,t){return t?'"'+e+'" is deprecated, please use "'+t+'"':'"'+e+'" is deprecated'},environmentNotFound:function(){return"Environment not found. Double check that you specified a valid environment/client-side ID."+X},environmentNotSpecified:function(){return"No environment/client-side ID was specified."+X},errorFetchingFlags:function(e){return"Error fetching flag settings: "+K(e)},eventCapacityExceeded:function(){return"Exceeded event queue capacity. Increase capacity to avoid dropping events."},eventWithoutContext:function(){return"Be sure to call `identify` in the LaunchDarkly client: https://docs.launchdarkly.com/sdk/features/identify#javascript"},httpErrorMessage:function(e,t,r){return"Received error "+e+(401===e?" (invalid SDK key)":"")+" for "+t+" - "+(c.isHttpErrorRecoverable(e)?r:"giving up permanently")},httpUnavailable:function(){return"Cannot make HTTP requests in this environment."+X},identifyDisabled:function(){return"identify() has no effect here; it must be called on the main client instance"},inspectorMethodError:(e,t)=>`an inspector: "${t}" of type: "${e}" generated an exception`,invalidContentType:function(e){return'Expected application/json content type but got "'+e+'"'},invalidData:function(){return"Invalid data received from LaunchDarkly; connection may have been interrupted"},invalidInspector:(e,t)=>`an inspector: "${t}" of an invalid type (${e}) was configured`,invalidKey:function(){return"Event key must be a string"},invalidMetricValue:e=>`The track function was called with a non-numeric "metricValue" (${e}), only numeric metric values are supported.`,invalidContext:function(){return"Invalid context specified."+X},invalidTagValue:e=>`Config option "${e}" must only contain letters, numbers, ., _ or -.`,localStorageUnavailable:function(e){return"local storage is unavailable: "+K(e)},networkError:e=>"network error"+(e?" ("+e+")":""),optionBelowMinimum:(e,t,r)=>'Config option "'+e+'" was set to '+t+", changing to minimum value of "+r,streamClosing:function(){return"Closing stream connection"},streamConnecting:function(e){return"Opening stream connection to "+e},streamError:function(e,t){return"Error on stream connection: "+K(e)+", will continue retrying after "+t+" milliseconds."},tagValueTooLong:e=>`Value of "${e}" was longer than 64 characters and was discarded.`,unknownCustomEventKey:function(e){return'Custom event "'+e+'" does not exist'},unknownOption:e=>'Ignoring unknown config option "'+e+'"',contextNotSpecified:function(){return"No context specified."+X},unrecoverableStreamError:e=>`Error on stream connection ${K(e)}, giving up permanently`,wrongOptionType:(e,t,r)=>'Config option "'+e+'" should be of type '+t+", got "+r+", using default value",wrongOptionTypeBoolean:(e,t)=>'Config option "'+e+'" should be a boolean, got '+t+", converting to boolean"};let{validateLogger:Q}=G,Z={baseUrl:{default:"https://app.launchdarkly.com"},streamUrl:{default:"https://clientstream.launchdarkly.com"},eventsUrl:{default:"https://events.launchdarkly.com"},sendEvents:{default:!0},streaming:{type:"boolean"},sendLDHeaders:{default:!0},requestHeaderTransform:{type:"function"},sendEventsOnlyForVariation:{default:!1},useReport:{default:!1},evaluationReasons:{default:!1},eventCapacity:{default:100,minimum:1},flushInterval:{default:2e3,minimum:2e3},samplingInterval:{default:0,minimum:0},streamReconnectDelay:{default:1e3,minimum:0},allAttributesPrivate:{default:!1},privateAttributes:{default:[]},bootstrap:{type:"string|object"},diagnosticRecordingInterval:{default:9e5,minimum:2e3},diagnosticOptOut:{default:!1},wrapperName:{type:"string"},wrapperVersion:{type:"string"},stateProvider:{type:"object"},application:{validator:function(e,t,r){let n={};return t.id&&(n.id=er(`${e}.id`,t.id,r)),t.version&&(n.version=er(`${e}.version`,t.version,r)),n}},inspectors:{default:[]}},ee=/^(\w|\.|-)+$/;function et(e){return e&&e.replace(/\/+$/,"")}function er(e,t,r){if("string"==typeof t&&t.match(ee)){if(!(t.length>64))return t;r.warn(J.tagValueTooLong(e))}else r.warn(J.invalidTagValue(e))}var en={baseOptionDefs:Z,validate:function(e,t,r,n){var i;let o=S.extend({logger:{default:n}},Z,r),a={};function s(e){S.onNextTick(()=>{t&&t.maybeReportError(new c.LDInvalidArgumentError(e))})}let l=S.extend({},e||{});return i=l,Object.keys(a).forEach(e=>{if(void 0!==i[e]){let t=a[e];n&&n.warn(J.deprecated(e,t)),t&&(void 0===i[t]&&(i[t]=i[e]),delete i[e])}}),Q((l=function(e){let t=S.extend({},e),r=e=>{if(null===e)return"any";if(void 0===e)return;if(Array.isArray(e))return"array";let t=typeof e;return"boolean"===t||"string"===t||"number"===t||"function"===t?t:"object"};return Object.keys(e).forEach(i=>{let a=e[i];if(null!=a){let l=o[i];if(void 0===l)s(J.unknownOption(i));else{let o=l.type||r(l.default),u=l.validator;if(u){let r=u(i,e[i],n);void 0!==r?t[i]=r:delete t[i]}else if("any"!==o){let e=o.split("|"),n=r(a);0>e.indexOf(n)?"boolean"===o?(t[i]=!!a,s(J.wrongOptionTypeBoolean(i,n))):(s(J.wrongOptionType(i,o,n)),t[i]=l.default):"number"===n&&void 0!==l.minimum&&a{void 0!==t[e]&&null!==t[e]||(t[e]=o[e]&&o[e].default)}),t}(l))).logger),l},getTags:function(e){let t={};return e&&(e.application&&void 0!==e.application.id&&null!==e.application.id&&(t["application-id"]=[e.application.id]),e.application&&void 0!==e.application.version&&null!==e.application.id&&(t["application-version"]=[e.application.version])),t}};let{getLDUserAgentString:ei}=S;var eo={getLDHeaders:function(e,t){if(t&&!t.sendLDHeaders)return{};let r={};r[e.userAgentHeaderName||"User-Agent"]=ei(e),t&&t.wrapperName&&(r["X-LaunchDarkly-Wrapper"]=t.wrapperVersion?t.wrapperName+"/"+t.wrapperVersion:t.wrapperName);let n=en.getTags(t),i=Object.keys(n);return i.length&&(r["x-launchdarkly-tags"]=i.sort().map(e=>Array.isArray(n[e])?n[e].sort().map(t=>`${e}/${t}`):[`${e}/${n[e]}`]).reduce((e,t)=>e.concat(t),[]).join(" ")),r},transformHeaders:function(e,t){return t&&t.requestHeaderTransform?t.requestHeaderTransform({...e}):e}};let{v1:ea}=W,{getLDHeaders:es,transformHeaders:el}=eo;var eu=function(e,t,r){let n=S.extend({"Content-Type":"application/json"},es(e,r)),i={};return i.sendEvents=(t,i,o)=>{if(!e.httpRequest)return Promise.resolve();let a=JSON.stringify(t),s=o?null:ea();return(function t(l){let u=o?n:S.extend({},n,{"X-LaunchDarkly-Event-Schema":"4","X-LaunchDarkly-Payload-ID":s});return e.httpRequest("POST",i,el(u,r),a).promise.then(e=>{if(e)return e.status>=400&&c.isHttpErrorRecoverable(e.status)&&l?t(!1):function(e){let t={status:e.status},r=e.header("date");if(r){let e=Date.parse(r);e&&(t.serverTime=e)}return t}(e)}).catch(()=>l?t(!1):Promise.reject())})(!0).catch(()=>{})},i};let{commonBasicLogger:ec}=G;function ed(e){return"string"==typeof e&&"kind"!==e&&e.match(/^(\w|\.|-)+$/)}function eh(e){return e.includes("%")||e.includes(":")?e.replace(/%/g,"%25").replace(/:/g,"%3A"):e}var ep={checkContext:function(e,t){if(e){if(t&&(void 0===e.kind||null===e.kind))return void 0!==e.key&&null!==e.key;let r=e.key,n=void 0===e.kind?"user":e.kind,i=ed(n),o="multi"===n||null!=r&&""!==r;if("multi"===n){let t=Object.keys(e).filter(e=>"kind"!==e);return o&&t.every(e=>ed(e))&&t.every(t=>{let r=e[t].key;return null!=r&&""!==r})}return o&&i}return!1},getContextKeys:function(e,t=ec()){if(!e)return;let r={},{kind:n,key:i}=e;switch(n){case void 0:r.user=`${i}`;break;case"multi":Object.entries(e).filter(([e])=>"kind"!==e).forEach(([e,t])=>{t&&t.key&&(r[e]=t.key)});break;case null:t.warn(`null is not a valid context kind: ${e}`);break;case"":t.warn(`'' is not a valid context kind: ${e}`);break;default:r[n]=`${i}`}return r},getContextKinds:function(e){return e?null===e.kind||void 0===e.kind?["user"]:"multi"!==e.kind?[e.kind]:Object.keys(e).filter(e=>"kind"!==e):[]},getCanonicalKey:function(e){if(e){if((void 0===e.kind||null===e.kind||"user"===e.kind)&&e.key)return e.key;if("multi"!==e.kind&&e.key)return`${e.kind}:${eh(e.key)}`;if("multi"===e.kind)return Object.keys(e).sort().filter(e=>"kind"!==e).map(t=>`${t}:${eh(e[t].key)}`).join(":")}}};let{getContextKinds:ef}=ep;var em=function(){let e={},t=0,r=0,n={},i={};return e.summarizeEvent=e=>{if("feature"===e.kind){let o=e.key+":"+(null!==e.variation&&void 0!==e.variation?e.variation:"")+":"+(null!==e.version&&void 0!==e.version?e.version:""),a=n[o],s=i[e.key];s||(s=new Set,i[e.key]=s),(e.context?ef(e.context):e.contextKeys?Object.keys(e.contextKeys):[]).forEach(e=>s.add(e)),a?a.count=a.count+1:n[o]={count:1,key:e.key,version:e.version,variation:e.variation,value:e.value,default:e.default},(0===t||e.creationDater&&(r=e.creationDate)}},e.getSummary=()=>{let e={},o=!0;for(let t of Object.values(n)){let r=e[t.key];r||(r={default:t.default,counters:[],contextKinds:[...i[t.key]]},e[t.key]=r);let n={value:t.value,count:t.count};void 0!==t.variation&&null!==t.variation&&(n.variation=t.variation),void 0!==t.version&&null!==t.version?n.version=t.version:n.unknown=!0,r.counters.push(n),o=!1}return o?null:{startDate:t,endDate:r,features:e}},e.clearSummary=()=>{t=0,r=0,n={},i={}},e};function eg(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function ev(e){return(e.startsWith("/")?e.substring(1):e).split("/").map(e=>e.indexOf("~")>=0?e.replace(/~1/g,"/").replace(/~0/g,"~"):e)}function ey(e){return!e.startsWith("/")}function eb(e,t){let r=ey(e),n=ey(t);if(r&&n)return e===t;if(r){let r=ev(t);return 1===r.length&&e===r[0]}if(n){let r=ev(e);return 1===r.length&&t===r[0]}return e===t}function ew(e){return`/${eg(e)}`}var ek={cloneExcluding:function(e,t){let r=[],n={},i=[];for(r.push(...Object.keys(e).map(t=>({key:t,ptr:ew(t),source:e,parent:n,visited:[e]})));r.length;){let e=r.pop();if(t.some(t=>eb(t,e.ptr)))i.push(e.ptr);else{let t=e.source[e.key];if(null===t)e.parent[e.key]=t;else if(Array.isArray(t))e.parent[e.key]=[...t];else if("object"==typeof t){if(e.visited.includes(t))continue;e.parent[e.key]={},r.push(...Object.keys(t).map(r=>{var n,i;return{key:r,ptr:(n=e.ptr,i=eg(r),`${n}/${i}`),source:t,parent:e.parent[e.key],visited:[...e.visited,t]}}))}else e.parent[e.key]=t}}return{cloned:n,excluded:i.sort()}},compare:eb,literalToReference:ew},ex=function(e){let t={},r=e.allAttributesPrivate,n=e.privateAttributes||[],i=["key","kind","_meta","anonymous"],o=["name","ip","firstName","lastName","email","avatar","country"],a=(e,t)=>{if("object"!=typeof e||null===e||Array.isArray(e))return;let{cloned:o,excluded:a}=ek.cloneExcluding(e,(r||t&&e.anonymous?Object.keys(e):[...n,...e._meta&&e._meta.privateAttributes||[]]).filter(e=>!i.some(t=>ek.compare(e,t))));return o.key=String(o.key),a.length&&(o._meta||(o._meta={}),o._meta.redactedAttributes=a),o._meta&&(delete o._meta.privateAttributes,0===Object.keys(o._meta).length&&delete o._meta),void 0!==o.anonymous&&(o.anonymous=!!o.anonymous),o};return t.filter=(e,t=!1)=>void 0===e.kind||null===e.kind?a((e=>{let t={...e.custom||{},kind:"user",key:e.key};for(let r of(void 0!==e.anonymous&&(t.anonymous=!!e.anonymous),o))delete t[r],void 0!==e[r]&&null!==e[r]&&(t[r]=String(e[r]));return void 0!==e.privateAttributeNames&&null!==e.privateAttributeNames&&(t._meta=t._meta||{},t._meta.privateAttributes=e.privateAttributeNames.map(e=>e.startsWith("/")?ek.literalToReference(e):e)),t})(e),t):"multi"===e.kind?((e,t)=>{let r={kind:e.kind};for(let n of Object.keys(e))if("kind"!==n){let i=a(e[n],t);i&&(r[n]=i)}return r})(e,t):a(e,t),t};let{getContextKeys:e_}=ep;var eS=function(e,t,r,n=null,i=null,o=null){let a={},s=o||eu(e,r,t),l=S.appendUrlPath(t.eventsUrl,"/events/bulk/"+r),u=em(),d=ex(t),h=t.samplingInterval,p=t.eventCapacity,f=t.flushInterval,m=t.logger,g,v=[],y=0,b=!1,w=!1;function k(){return 0===h||0===Math.floor(Math.random()*h)}function x(e){v.lengthy&&e.debugEventsUntilDate>(new Date).getTime()):t=k(),t&&x(function(e){let t=S.extend({},e);return"identify"===e.kind?t.context=d.filter(e.context):"feature"===e.kind?t.context=d.filter(e.context,!0):(t.contextKeys=e_(e.context,m),delete t.context),"feature"===e.kind&&(delete t.trackEvents,delete t.debugEventsUntilDate),t}(e)),r){let t=S.extend({},e,{kind:"debug"});t.context=d.filter(t.context),delete t.trackEvents,delete t.debugEventsUntilDate,x(t)}},a.flush=function(){if(b)return Promise.resolve();let e=v,t=u.getSummary();return u.clearSummary(),t&&(t.kind="summary",e.push(t)),n&&n.setEventsInLastBatch(e.length),0===e.length?Promise.resolve():(v=[],m.debug(J.debugPostingEvents(e.length)),s.sendEvents(e,l).then(e=>{e&&(e.serverTime&&(y=e.serverTime),c.isHttpErrorRecoverable(e.status)||(b=!0),e.status>=400&&S.onNextTick(()=>{i.maybeReportError(new c.LDUnexpectedResponseError(J.httpErrorMessage(e.status,"event posting","some events were dropped")))}))}))},a.start=function(){let e=()=>{a.flush(),g=setTimeout(e,f)};g=setTimeout(e,f)},a.stop=function(){clearTimeout(g)},a},eE=function(e){let t={},r={};return t.on=function(e,t,n){r[e]=r[e]||[],r[e]=r[e].concat({handler:t,context:n})},t.off=function(e,t,n){if(r[e])for(let i=0;i{let r=()=>{e.off(eC,r),t()};e.on(eC,r)}).catch(()=>{});return{getInitializationPromise:()=>i||(t?Promise.resolve():r?Promise.reject(n):i=new Promise((t,r)=>{let n=()=>{e.off(eD,n),t()},i=t=>{e.off(eA,i),r(t)};e.on(eD,n),e.on(eA,i)})),getReadyPromise:()=>o,signalSuccess:()=>{t||r||(t=!0,e.emit(eD),e.emit(eC))},signalFailure:i=>{t||r||(r=!0,n=i,e.emit(eA,i),e.emit(eC)),e.maybeReportError(i)}}},eO=function(e,t,r,n){let i={};function o(){let e="",i=n.getContext();return i&&(e=r||S.btoa(JSON.stringify(i))),"ld:"+t+":"+e}return i.loadFlags=()=>e.get(o()).then(e=>{if(null==e)return null;try{let t=JSON.parse(e);if(t){let e=t.$schema;void 0===e||e<1?t=S.transformValuesToVersionedValues(t):delete t.$schema}return t}catch(e){return i.clearFlags().then(()=>null)}}),i.saveFlags=t=>{let r=S.extend({},t,{$schema:1});return e.set(o(),JSON.stringify(r))},i.clearFlags=()=>e.clear(o()),i},eT=function(e,t){let r={},n=!1,i=e=>{n||(n=!0,t.warn(J.localStorageUnavailable(e)))};return r.isEnabled=()=>!!e,r.get=t=>new Promise(r=>{e?e.get(t).then(r).catch(e=>{i(e),r(void 0)}):r(void 0)}),r.set=(t,r)=>new Promise(n=>{e?e.set(t,r).then(()=>n(!0)).catch(e=>{i(e),n(!1)}):n(!1)}),r.clear=t=>new Promise(r=>{e?e.clear(t).then(()=>r(!0)).catch(e=>{i(e),r(!1)}):r(!1)}),r};let{appendUrlPath:eP,base64URLEncode:eR,objectHasOwnProperty:eM}=S,{getLDHeaders:eN,transformHeaders:eF}=eo,{isHttpErrorRecoverable:eI}=c;var eL=function(e,t,r,n){let i=t.streamUrl,o=t.logger,a={},s=eP(i,"/eval/"+r),l=t.useReport,u=t.evaluationReasons,c=t.streamReconnectDelay,d=eN(e,t),h,p=!1,f=null,m=null,g=null,v=null,y=null,b=0;function w(e){if(e.status&&"number"==typeof e.status&&!eI(e.status))return _(),o.error(J.unrecoverableStreamError(e)),void(m&&(clearTimeout(m),m=null));let t=function(){var e;let t=(e=function(){let e=c*Math.pow(2,b);return e>3e4?3e4:e}())-Math.trunc(.5*Math.random()*e);return b+=1,t}();p||(o.warn(J.streamError(e,t)),p=!0),S(!1),_(),k(t)}function k(e){m||(e?m=setTimeout(x,e):x())}function x(){let n;m=null;let a="",c={headers:d,readTimeoutMillis:3e5};if(e.eventSourceFactory){for(let d in null!=v&&(a="h="+v),l?e.eventSourceAllowsReport?(n=s,c.method="REPORT",c.headers["Content-Type"]="application/json",c.body=JSON.stringify(g)):(n=eP(i,"/ping/"+r),a=""):n=s+"/"+eR(JSON.stringify(g)),c.headers=eF(c.headers,t),u&&(a=a+(a?"&":"")+"withReasons=true"),n=n+(a?"?":"")+a,_(),o.info(J.streamConnecting(n)),h=(new Date).getTime(),f=e.eventSourceFactory(n,c),y)eM(y,d)&&f.addEventListener(d,y[d]);f.onerror=w,f.onopen=()=>{b=0}}}function _(){f&&(o.info(J.streamClosing()),f.close(),f=null)}function S(e){h&&n&&n.recordStreamInit(h,!e,(new Date).getTime()-h),h=null}return a.connect=function(e,t,r){for(let n in g=e,v=t,y={},r||{})y[n]=function(e){p=!1,S(!0),r[n]&&r[n](e)};k()},a.disconnect=function(){clearTimeout(m),m=null,_()},a.isConnected=function(){return!!(f&&e.eventSourceIsActive&&e.eventSourceIsActive(f))},a},eB=function(e){let t,r,n,i;let o={addPromise:(o,a)=>{t=o,r&&r(),r=a,o.then(r=>{t===o&&(n(r),e&&e())},r=>{t===o&&(i(r),e&&e())})}};return o.resultPromise=new Promise((e,t)=>{n=e,i=t}),o};let{transformHeaders:ez,getLDHeaders:eU}=eo,eq="application/json";var eH=function(e,t,r){let n=t.baseUrl,i=t.useReport,o=t.evaluationReasons,a=t.logger,s={},l={};function u(r,n){if(!e.httpRequest)return new Promise((e,t)=>{t(new c.LDFlagFetchError(J.httpUnavailable()))});let i=eU(e,t);n&&(i["Content-Type"]=eq);let o=l[r];o||(o=eB(()=>{delete l[r]}),l[r]=o);let a=e.httpRequest(n?"REPORT":"GET",r,ez(i,t),n),s=a.promise.then(e=>{if(200===e.status){if(e.header("content-type")&&e.header("content-type").substring(0,16)===eq)return JSON.parse(e.body);{let t=J.invalidContentType(e.header("content-type")||"");return Promise.reject(new c.LDFlagFetchError(t))}}return Promise.reject(404===e.status?new c.LDInvalidEnvironmentIdError(J.environmentNotFound()):new c.LDFlagFetchError(J.errorFetchingFlags(e.statusText||String(e.status))))},e=>Promise.reject(new c.LDFlagFetchError(J.networkError(e))));return o.addPromise(s,()=>{a.cancel&&a.cancel()}),o.resultPromise}return s.fetchJSON=function(e){return u(S.appendUrlPath(n,e),null)},s.fetchFlagSettings=function(e,t){let s,l,c="";return i?(s=[n,"/sdk/evalx/",r,"/context"].join(""),l=JSON.stringify(e)):s=[n,"/sdk/evalx/",r,"/contexts/",S.base64URLEncode(JSON.stringify(e))].join(""),t&&(c="h="+t),o&&(c=c+(c?"&":"")+"withReasons=true"),s=s+(c?"?":"")+c,a.debug(J.debugPolling(s)),u(s,l)},s},eV=function(e,t){let r;let n={};return n.setContext=function(e){(r=S.sanitizeContext(e))&&t&&t(S.clone(r))},n.getContext=function(){return r?S.clone(r):null},e&&n.setContext(e),n};let{v1:e$}=W,{getContextKinds:eW}=ep;var eY=function(e){function t(e){return null==e||"user"===e?"ld:$anonUserId":`ld:$contextKey:${e}`}function r(r,n){return null!==n.key&&void 0!==n.key?(n.key=n.key.toString(),Promise.resolve(n)):n.anonymous?e.get(t(r)).then(i=>{if(i)return n.key=i,n;{let i=e$();return n.key=i,e.set(t(r),i).then(()=>n)}}):Promise.reject(new c.LDInvalidUserError(J.invalidContext()))}this.processContext=e=>{if(!e)return Promise.reject(new c.LDInvalidUserError(J.contextNotSpecified()));let t=S.clone(e);return"multi"===e.kind?Promise.all(eW(t).map(e=>r(e,t[e]))).then(()=>t):r(e.kind,t)}};let{v1:eG}=W,{baseOptionDefs:eK}=en,{appendUrlPath:eX}=S;var eJ={DiagnosticId:function(e){let t={diagnosticId:eG()};return e&&(t.sdkKeySuffix=e.length>6?e.substring(e.length-6):e),t},DiagnosticsAccumulator:function(e){let t,r,n,i;function o(e){t=e,r=0,n=0,i=[]}return o(e),{getProps:()=>({dataSinceDate:t,droppedEvents:r,eventsInLastBatch:n,streamInits:i}),setProps:e=>{t=e.dataSinceDate,r=e.droppedEvents||0,n=e.eventsInLastBatch||0,i=e.streamInits||[]},incrementDroppedEvents:()=>{r++},setEventsInLastBatch:e=>{n=e},recordStreamInit:(e,t,r)=>{i.push({timestamp:e,failed:t,durationMillis:r})},reset:o}},DiagnosticsManager:function(e,t,r,n,i,o,a){let s=!!e.diagnosticUseCombinedEvent,l="ld:"+i+":$diagnostics",u=eX(o.eventsUrl,"/events/diagnostic/"+i),c=o.diagnosticRecordingInterval,d,h,p=!!o.streaming,f={};function m(){return{sdk:function(){let t={...e.diagnosticSdkData};return o.wrapperName&&(t.wrapperName=o.wrapperName),o.wrapperVersion&&(t.wrapperVersion=o.wrapperVersion),t}(),configuration:{customBaseURI:o.baseUrl!==eK.baseUrl.default,customStreamURI:o.streamUrl!==eK.streamUrl.default,customEventsURI:o.eventsUrl!==eK.eventsUrl.default,eventsCapacity:o.eventCapacity,eventsFlushIntervalMillis:o.flushInterval,reconnectTimeMillis:o.streamReconnectDelay,streamingDisabled:!p,allAttributesPrivate:!!o.allAttributesPrivate,diagnosticRecordingIntervalMillis:o.diagnosticRecordingInterval,usingSecureMode:!!o.hash,bootstrapMode:!!o.bootstrap,fetchGoalsDisabled:!o.fetchGoals,sendEventsOnlyForVariation:!!o.sendEventsOnlyForVariation},platform:e.diagnosticPlatformData}}function g(e){o.logger&&o.logger.debug(J.debugPostingDiagnosticEvent(e)),n.sendEvents(e,u,!0).then(()=>{}).catch(()=>{})}function v(){g(function(){let e=(new Date).getTime(),t={kind:s?"diagnostic-combined":"diagnostic",id:a,creationDate:e,...r.getProps()};return s&&(t={...t,...m()}),r.reset(e),t}()),h=setTimeout(v,c),d=(new Date).getTime(),s&&function(){if(t.isEnabled()){let e={...r.getProps()};t.set(l,JSON.stringify(e))}}()}return f.start=()=>{s?function(e){if(!t.isEnabled())return e(!1);t.get(l).then(t=>{if(t)try{let e=JSON.parse(t);r.setProps(e),d=e.dataSinceDate}catch(e){}e(!0)}).catch(()=>{e(!1)})}(e=>{if(e){let e=(d||0)+c,t=(new Date).getTime();t>=e?v():h=setTimeout(v,e-t)}else 0===Math.floor(4*Math.random())?v():h=setTimeout(v,c)}):(g({kind:"diagnostic-init",id:a,creationDate:r.getProps().dataSinceDate,...m()}),h=setTimeout(v,c))},f.stop=()=>{h&&clearTimeout(h)},f.setStreaming=e=>{p=e},f}},eQ=function(e,t){let r=!1,n={type:e.type,name:e.name,synchronous:e.synchronous,method:(...i)=>{try{e.method(...i)}catch{r||(r=!0,t.warn(J.inspectorMethodError(n.type,n.name)))}}};return n};let{onNextTick:eZ}=S,e0={flagUsed:"flag-used",flagDetailsChanged:"flag-details-changed",flagDetailChanged:"flag-detail-changed",clientIdentityChanged:"client-identity-changed"};Object.freeze(e0);let{LDTimeoutError:e1}=c,{commonBasicLogger:e2}=G,{checkContext:e3,getContextKeys:e5}=ep,{InspectorTypes:e4,InspectorManager:e6}={InspectorTypes:e0,InspectorManager:function(e,t){let r={},n={[e0.flagUsed]:[],[e0.flagDetailsChanged]:[],[e0.flagDetailChanged]:[],[e0.clientIdentityChanged]:[]},i={[e0.flagUsed]:[],[e0.flagDetailsChanged]:[],[e0.flagDetailChanged]:[],[e0.clientIdentityChanged]:[]},o=e&&e.map(e=>eQ(e,t));return o&&o.forEach(e=>{Object.prototype.hasOwnProperty.call(n,e.type)&&!e.synchronous?n[e.type].push(e):Object.prototype.hasOwnProperty.call(i,e.type)&&e.synchronous?i[e.type].push(e):t.warn(J.invalidInspector(e.type,e.name))}),r.hasListeners=e=>n[e]&&n[e].length||i[e]&&i[e].length,r.onFlagUsed=(e,t,r)=>{let o=e0.flagUsed;i[o].length&&i[o].forEach(n=>n.method(e,t,r)),n[o].length&&eZ(()=>{n[o].forEach(n=>n.method(e,t,r))})},r.onFlags=e=>{let t=e0.flagDetailsChanged;i[t].length&&i[t].forEach(t=>t.method(e)),n[t].length&&eZ(()=>{n[t].forEach(t=>t.method(e))})},r.onFlagChanged=(e,t)=>{let r=e0.flagDetailChanged;i[r].length&&i[r].forEach(r=>r.method(e,t)),n[r].length&&eZ(()=>{n[r].forEach(r=>r.method(e,t))})},r.onIdentityChanged=e=>{let t=e0.clientIdentityChanged;i[t].length&&i[t].forEach(t=>t.method(e)),n[t].length&&eZ(()=>{n[t].forEach(t=>t.method(e))})},r}},e8="change",e9="internal-change";var e7={initialize:function(e,t,r,n,i){let o=r&&r.logger?r.logger:i&&i.logger&&i.logger.default||e2("warn"),a=eE(o),s=ej(a),l=en.validate(r,a,i,o),u=e6(l.inspectors,o),d=l.sendEvents,h=e,p=l.hash,f=eT(n.localStorage,o),m=eu(n,h,l),g=l.sendEvents&&!l.diagnosticOptOut,v=g?eJ.DiagnosticId(h):null,y=g?eJ.DiagnosticsAccumulator((new Date).getTime()):null,b=g?eJ.DiagnosticsManager(n,f,y,m,h,l,v):null,w=eL(n,l,h,y),k=l.eventProcessor||eS(n,l,h,y,a,m),x=eH(n,l,h),_,E,C,D={},A=l.streaming,j=!1,O=!1,T=!0,P=l.stateProvider,R=eV(null,function(e){!P&&e&&F({kind:"identify",context:e,creationDate:(new Date).getTime()}),u.hasListeners(e4.clientIdentityChanged)&&u.onIdentityChanged(R.getContext())}),M=new eY(f),N=f.isEnabled()?eO(f,h,p,R):null;function F(e){h&&(P&&P.enqueueEvent&&P.enqueueEvent(e)||(e.context?(T=!1,!d||O||n.isDoNotTrack()||(o.debug(J.debugEnqueueingEvent(e.kind)),k.enqueue(e))):T&&(o.warn(J.eventWithoutContext()),T=!1)))}function I(e,t){u.hasListeners(e4.flagDetailChanged)&&u.onFlagChanged(e.key,q(t))}function L(){u.hasListeners(e4.flagDetailsChanged)&&u.onFlags(Object.entries(D).map(([e,t])=>({key:e,detail:q(t)})).reduce((e,t)=>(e[t.key]=t.detail,e),{}))}function B(e,t,r,n){let i=R.getContext(),o=new Date,a={kind:"feature",key:e,context:i,value:t?t.value:null,variation:t?t.variationIndex:null,default:r,creationDate:o.getTime()},s=D[e];s&&(a.version=s.flagVersion?s.flagVersion:s.version,a.trackEvents=s.trackEvents,a.debugEventsUntilDate=s.debugEventsUntilDate),(n||s&&s.trackReason)&&t&&(a.reason=t.reason),F(a)}function z(e){return e3(e,!1)?Promise.resolve(e):Promise.reject(new c.LDInvalidUserError(J.invalidContext()))}function U(e,t,r,n,i,o){var a;let s,l;return D&&S.objectHasOwnProperty(D,e)&&D[e]&&!D[e].deleted?(s=q(l=D[e]),null!==l.value&&void 0!==l.value||(s.value=t)):s={value:t,variationIndex:null,reason:{kind:"ERROR",errorKind:"FLAG_NOT_FOUND"}},r&&(i||l?.prerequisites?.forEach(e=>{U(e,void 0,r,!1,!1,!1)}),B(e,s,t,n)),!i&&o&&(a=s,u.hasListeners(e4.flagUsed)&&u.onFlagUsed(e,a,R.getContext())),s}function q(e){return{value:e.value,variationIndex:void 0===e.variation?null:e.variation,reason:e.reason||null}}function H(){if(E=!0,!R.getContext())return;let e=e=>{try{return JSON.parse(e)}catch(e){return void a.maybeReportError(new c.LDInvalidDataError(J.invalidData()))}};w.connect(R.getContext(),p,{ping:function(){o.debug(J.debugStreamPing());let e=R.getContext();x.fetchFlagSettings(e,p).then(t=>{S.deepEquals(e,R.getContext())&&$(t||{})}).catch(e=>{a.maybeReportError(new c.LDFlagFetchError(J.errorFetchingFlags(e)))})},put:function(t){let r=e(t.data);r&&(o.debug(J.debugStreamPut()),$(r))},patch:function(t){let r=e(t.data);if(!r)return;let n=D[r.key];if(n&&n.version&&r.version&&!(n.version{})}function W(e){let t=Object.keys(e);if(t.length>0){let r={};t.forEach(t=>{let n=e[t].current,i=n?n.value:void 0,o=e[t].previous;a.emit(e8+":"+t,i,o),r[t]=n?{current:i,previous:o}:{previous:o}}),a.emit(e8,r),a.emit(e9,D),l.sendEventsOnlyForVariation||P||t.forEach(t=>{B(t,e[t].current)})}return _&&N?N.saveFlags(D):Promise.resolve()}function Y(){let e=A||C&&void 0===A;e&&!E?H():!e&&E&&V(),b&&b.setStreaming(e)}function G(e){return e===e8||e.substr(0,7)===e8+":"}if("string"==typeof l.bootstrap&&"LOCALSTORAGE"===l.bootstrap.toUpperCase()&&(N?_=!0:o.warn(J.localStorageUnavailable())),"object"==typeof l.bootstrap&&(D=function(e){let t=Object.keys(e),r="$flagsState",n="$valid",i=e[r];!i&&t.length&&o.warn(J.bootstrapOldFormat()),!1===e[n]&&o.warn(J.bootstrapInvalid());let a={};return t.forEach(t=>{if(t!==r&&t!==n){let r={value:e[t]};i&&i[t]?r=S.extend(r,i[t]):r.version=0,a[t]=r}}),a}(l.bootstrap)),P){let e=P.getInitialState();e?K(e):P.on("init",K),P.on("update",function(e){e.context&&R.setContext(e.context),e.flags&&$(e.flags)})}else(e?M.processContext(t).then(z).then(e=>(R.setContext(e),"object"==typeof l.bootstrap?X():_?N.loadFlags().then(e=>null==e?(D={},x.fetchFlagSettings(R.getContext(),p).then(e=>$(e||{})).then(X).catch(e=>{Q(new c.LDFlagFetchError(J.errorFetchingFlags(e)))})):(D=e,S.onNextTick(X),x.fetchFlagSettings(R.getContext(),p).then(e=>$(e)).catch(e=>a.maybeReportError(e)))):x.fetchFlagSettings(R.getContext(),p).then(e=>{D=e||{},L(),X()}).catch(e=>{D={},Q(e)}))):Promise.reject(new c.LDInvalidEnvironmentIdError(J.environmentNotSpecified()))).catch(Q);function K(e){h=e.environment,R.setContext(e.context),D={...e.flags},S.onNextTick(X)}function X(){o.info(J.clientInitialized()),j=!0,Y(),s.signalSuccess()}function Q(e){s.signalFailure(e)}return{client:{waitForInitialization:function(e){if(null!=e){if("number"==typeof e)return function(e){e>5&&o.warn("The waitForInitialization function was called with a timeout greater than 5 seconds. We recommend a timeout of 5 seconds or less.");let t=s.getInitializationPromise();return Promise.race([new Promise((t,r)=>{setTimeout(()=>{r(new e1(`waitForInitialization timed out after ${e} seconds.`))},1e3*e)}),t]).catch(e=>{throw e instanceof c.LDTimeoutError&&o.error(`waitForInitialization error: ${e}`),e})}(e);o.warn("The waitForInitialization method was provided with a non-numeric timeout.")}return o.warn("The waitForInitialization function was called without a timeout specified. In a future version a default timeout will be applied."),s.getInitializationPromise()},waitUntilReady:()=>s.getReadyPromise(),identify:function(e,t,r){if(O)return S.wrapPromiseCallback(Promise.resolve({}),r);if(P)return o.warn(J.identifyDisabled()),S.wrapPromiseCallback(Promise.resolve(S.transformVersionedValuesToValues(D)),r);let n=_&&N?N.clearFlags():Promise.resolve();return S.wrapPromiseCallback(n.then(()=>M.processContext(e)).then(z).then(e=>x.fetchFlagSettings(e,t).then(r=>{let n=S.transformVersionedValuesToValues(r);return R.setContext(e),p=t,r?$(r).then(()=>n):n})).then(e=>(E&&H(),e)).catch(e=>(a.maybeReportError(e),Promise.reject(e))),r)},getContext:function(){return R.getContext()},variation:function(e,t){return U(e,t,!0,!1,!1,!0).value},variationDetail:function(e,t){return U(e,t,!0,!0,!1,!0)},track:function(e,t,r){if("string"!=typeof e)return void a.maybeReportError(new c.LDInvalidEventKeyError(J.unknownCustomEventKey(e)));void 0!==r&&"number"!=typeof r&&o.warn(J.invalidMetricValue(typeof r)),n.customEventFilter&&!n.customEventFilter(e)&&o.warn(J.unknownCustomEventKey(e));let i=R.getContext(),s={kind:"custom",key:e,context:i,url:n.getCurrentUrl(),creationDate:(new Date).getTime()};i&&i.anonymous&&(s.contextKind=i.anonymous?"anonymousUser":"user"),null!=t&&(s.data=t),null!=r&&(s.metricValue=r),F(s)},on:function(e,t,r){G(e)?(C=!0,j&&Y(),a.on(e,t,r)):a.on(...arguments)},off:function(e){if(a.off(...arguments),G(e)){let e=!1;a.getEvents().forEach(t=>{G(t)&&a.getEventListenerCount(t)>0&&(e=!0)}),e||(C=!1,E&&void 0===A&&V())}},setStreaming:function(e){let t=null===e?void 0:e;t!==A&&(A=t,Y())},flush:function(e){return S.wrapPromiseCallback(d?k.flush():Promise.resolve(),e)},allFlags:function(){let e={};if(!D)return e;for(let t in D)S.objectHasOwnProperty(D,t)&&!D[t].deleted&&(e[t]=U(t,null,!l.sendEventsOnlyForVariation,!1,!0,!1).value);return e},close:function(e){if(O)return S.wrapPromiseCallback(Promise.resolve(),e);let t=()=>{O=!0,D={}},r=Promise.resolve().then(()=>{if(V(),b&&b.stop(),d)return k.stop(),k.flush()}).then(t).catch(t);return S.wrapPromiseCallback(r,e)}},options:l,emitter:a,ident:R,logger:o,requestor:x,start:function(){d&&(b&&b.start(),k.start())},enqueueEvent:F,getFlagsInternal:function(){return D},getEnvironmentId:()=>h,internalChangeEventName:e9}},commonBasicLogger:e2,errors:c,messages:J};e7.initialize,e7.errors,e7.messages,e7.commonBasicLogger,Promise.resolve({status:200,header:function(){return null},body:null})},53053:(e,t,r)=>{"use strict";var n=r(39907),i=r(92335),o=r(18652),a=r(94981),s=r(50046);function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=l(i),c=l(o),d=l(a),h=Object.prototype.hasOwnProperty,p=Object.prototype.toString,f=Object.defineProperty,m=Object.getOwnPropertyDescriptor,g=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===p.call(e)},v=function(e){if(!e||"[object Object]"!==p.call(e))return!1;var t,r=h.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&h.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||h.call(e,t)},y=function(e,t){f&&"__proto__"===t.name?f(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},b=function(e,t){if("__proto__"===t){if(!h.call(e,t))return;if(m)return m(e,t).value}return e[t]},w=function e(){var t,r,n,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});le.reduce((e,r)=>e.then(()=>t(r)),Promise.resolve()),A=(e,t,r,n)=>{let i=Object.create(null);return e.forEach(e=>{let o=t(e);i[o]?n(i[o],e):i[o]=r(e)}),i};class j{constructor(e){this.batches=A(e,e=>`${e.apiHost}_${e.writeKey}_${e.dataset}`,e=>({apiHost:e.apiHost,writeKey:e.writeKey,dataset:e.dataset,events:[e]}),(e,t)=>e.events.push(t))}encodeBatchEvents(e){let t=!0,r=0;return{encoded:"["+e.reduce((e,n)=>{try{let i=JSON.stringify(n);r++;let o=e+(t?"":",")+i;return t=!1,o}catch(t){return n.encodeError=t,e}},"")+"]",numEncoded:r}}}class O{constructor({timestamp:e,apiHost:t,postData:r,writeKey:n,dataset:i,sampleRate:o,metadata:a}){this.timestamp=e,this.apiHost=t,this.postData=r,this.writeKey=n,this.dataset=i,this.sampleRate=o,this.metadata=a}toJSON(){let e={};return this.timestamp&&(e.time=this.timestamp),this.sampleRate&&(e.samplerate=this.sampleRate),this.postData&&(e.data=this.postData),e}toBrokenJSON(){let e=[];return this.timestamp&&e.push(`"time":${JSON.stringify(this.timestamp)}`),this.sampleRate&&e.push(`"samplerate":${JSON.stringify(this.sampleRate)}`),this.postData&&e.push(`"data":${JSON.stringify(this.postData)}`),`{${e.join(",")}}`}}class T{constructor(e){this.constructorArg=e,this.events=[]}sendEvent(e){this.events.push(e)}sendPresampledEvent(e){this.events.push(e)}reset(){this.constructorArg=null,this.events=[]}}class P{sendEvent(e){console.log(JSON.stringify(e.toBrokenJSON()))}sendPresampledEvent(e){console.log(JSON.stringify(e.toBrokenJSON()))}}class R{sendEvent(e){console.log(JSON.stringify(e))}sendPresampledEvent(e){console.log(JSON.stringify(e))}}class M{sendEvent(e){n.stdout.write(JSON.stringify(e)+"\n")}sendPresampledEvent(e){n.stdout.write(JSON.stringify(e)+"\n")}}class N{sendEvent(e){}sendPresampledEvent(e){}}class F{constructor(e){this._responseCallback=C,this._batchSizeTrigger=50,this._batchTimeTrigger=100,this._maxConcurrentBatches=10,this._pendingWorkCapacity=1e4,this._timeout=6e4,this._sendTimeoutId=-1,this._eventQueue=[],this._batchCount=0,"function"==typeof e.responseCallback&&(this._responseCallback=e.responseCallback),"number"==typeof e.batchSizeTrigger&&(this._batchSizeTrigger=Math.max(e.batchSizeTrigger,1)),"number"==typeof e.batchTimeTrigger&&(this._batchTimeTrigger=e.batchTimeTrigger),"number"==typeof e.maxConcurrentBatches&&(this._maxConcurrentBatches=e.maxConcurrentBatches),"number"==typeof e.pendingWorkCapacity&&(this._pendingWorkCapacity=e.pendingWorkCapacity),"number"==typeof e.timeout&&(this._timeout=e.timeout),this._userAgentAddition=e.userAgentAddition||"",this._proxy=e.proxy,this._randomFn=Math.random}_droppedCallback(e,t){this._responseCallback([{metadata:e.metadata,error:Error(t)}])}sendEvent(e){if(!this._shouldSendEvent(e)){this._droppedCallback(e,"event dropped due to sampling");return}this.sendPresampledEvent(e)}sendPresampledEvent(e){if(this._eventQueue.length>=this._pendingWorkCapacity){this._droppedCallback(e,"queue overflow");return}this._eventQueue.push(e),this._eventQueue.length>=this._batchSizeTrigger?this._sendBatch():this._ensureSendTimeout()}flush(){return 0===this._eventQueue.length&&0===this._batchCount?Promise.resolve():new Promise(e=>{this.flushCallback=()=>{this.flushCallback=null,e()}})}_sendBatch(){if(10===this._batchCount)return;this._clearSendTimeout(),this._batchCount++;let e=new j(this._eventQueue.splice(0,this._batchSizeTrigger)),t=()=>{this._batchCount--;let e=this._eventQueue.length;if(e>0){e>=this._batchSizeTrigger?this._sendBatch():this._ensureSendTimeout();return}0===this._batchCount&&this.flushCallback&&this.flushCallback()};D(Object.keys(e.batches).map(t=>e.batches[t]),t=>{let r,n=_(t.apiHost,"/1/batch",t.dataset);r=Promise.resolve({req:u.default.post(n)});let{encoded:i,numEncoded:o}=e.encodeBatchEvents(t.events);return r.then(({req:e})=>new Promise(r=>{if(0===o){this._responseCallback(t.events.map(e=>({metadata:e.metadata,error:e.encodeError}))),r();return}let n=S,a=this._userAgentAddition.trim();a&&(n=`${S} ${a}`);let s=Date.now();e.set("X-Honeycomb-Team",t.writeKey).set("X-Honeycomb-UserAgent",n).type("json").timeout(this._timeout).send(i).end((e,n)=>{let i=Date.now();if(e)this._responseCallback(t.events.map(t=>({status_code:t.encodeError?void 0:e.status,duration:i-s,metadata:t.metadata,error:t.encodeError||e})));else{let e=JSON.parse(n.text),r=0;this._responseCallback(t.events.map(t=>{if(t.encodeError)return{duration:i-s,metadata:t.metadata,error:t.encodeError};{let n=e[r++];return{status_code:n.status,duration:i-s,metadata:t.metadata,error:n.err}}}))}r()})}))}).then(t).catch(t)}_shouldSendEvent(e){let{sampleRate:t}=e;return t<=1||this._randomFn()<1/t}_ensureSendTimeout(){-1===this._sendTimeoutId&&(this._sendTimeoutId=E.setTimeout(()=>this._sendBatch(),this._batchTimeTrigger))}_clearSendTimeout(){-1!==this._sendTimeoutId&&(E.clearTimeout(this._sendTimeoutId),this._sendTimeoutId=-1)}}function I(e,t){e&&(e instanceof Map?e.forEach(t):Object.getOwnPropertyNames(e).forEach(r=>t(e[r],r)))}class L{constructor(e,t,r){this.data=Object.create(null),this.metadata=null,this.apiHost="",this.writeKey="",this.dataset="",this.sampleRate=1,this.timestamp=null,I(t,(e,t)=>this.addField(t,e)),I(r,(e,t)=>this.addField(t,e())),this._libhoney=e}add(e){return I(e,(e,t)=>this.addField(t,e)),this}addField(e,t){return void 0===t?this.data[e]=null:this.data[e]=t,this}addMetadata(e){return this.metadata=e,this}send(){this._libhoney.sendEvent(this)}sendPresampled(){this._libhoney.sendPresampledEvent(this)}}class B{constructor(e,t,r){this._libhoney=e,this._fields=Object.create(null),this._dynFields=Object.create(null),this.apiHost="",this.writeKey="",this.dataset="",this.sampleRate=1,I(t,(e,t)=>this.addField(t,e)),I(r,(e,t)=>this.addDynamicField(t,e))}add(e){return I(e,(e,t)=>this.addField(t,e)),this}addField(e,t){return void 0===t?this._fields[e]=null:this._fields[e]=t,this}addDynamicField(e,t){return this._dynFields[e]=t,this}sendNow(e){let t=this.newEvent();t.add(e),t.send()}newEvent(){let e=new L(this._libhoney,this._fields,this._dynFields);return e.apiHost=this.apiHost,e.writeKey=this.writeKey,e.dataset=this.dataset,e.sampleRate=this.sampleRate,e}newBuilder(e,t){let r=new B(this._libhoney,this._fields,this._dynFields);return I(e,(e,t)=>r.addField(t,e)),I(t,(e,t)=>r.addDynamicField(t,e)),r.apiHost=this.apiHost,r.writeKey=this.writeKey,r.dataset=this.dataset,r.sampleRate=this.sampleRate,r}}let z=Object.freeze({apiHost:"https://api.honeycomb.io/",proxy:void 0,sampleRate:1,transmission:"base",batchSizeTrigger:50,batchTimeTrigger:100,maxConcurrentBatches:10,pendingWorkCapacity:1e4,maxResponseQueueSize:1e3,timeout:6e4,disabled:!1,userAgentAddition:""});class U extends s.EventEmitter{constructor(e){super(),this._options=Object.assign({responseCallback:this._responseCallback.bind(this)},z,e),this._transmission=H(this._options.transmission,this._options),this._usable=null!==this._transmission,this._builder=new B(this),this._builder.apiHost=this._options.apiHost,this._builder.writeKey=this._options.writeKey,this._builder.dataset=this._options.dataset,this._builder.sampleRate=this._options.sampleRate,this._responseQueue=[]}_responseCallback(e){let[t,r]=[this._responseQueue,this._options.maxResponseQueueSize];this._responseQueue=function(e,t,r){if(e.length>=r)return e.slice(0,r);if(e.length+t.length>r){let n=r-e.length,i=t.slice(0,n);return e.concat(i)}return e.concat(t)}(t,e,r),this.emit("response",this._responseQueue)}get transmission(){return this._transmission}set apiHost(e){this._builder.apiHost=e}get apiHost(){return this._builder.apiHost}set writeKey(e){this._builder.writeKey=e}get writeKey(){return this._builder.writeKey}set dataset(e){this._builder.dataset=e}get dataset(){return this._builder.dataset}set sampleRate(e){this._builder.sampleRate=e}get sampleRate(){return this._builder.sampleRate}sendEvent(e){let t=this.validateEvent(e);t&&this._transmission.sendEvent(t)}sendPresampledEvent(e){let t=this.validateEvent(e);t&&this._transmission.sendPresampledEvent(t)}validateEvent(e){let t;if(!this._usable)return null;let r=e.timestamp||Date.now();if(("string"==typeof r||"number"==typeof r)&&(r=new Date(r)),"object"!=typeof e.data||null===e.data)return console.error(".data must be an object"),null;try{t=JSON.parse(JSON.stringify(e.data))}catch(e){return console.error("error cloning event data: "+e),null}let n=e.apiHost;if("string"!=typeof n||""===n)return console.error(".apiHost must be a non-empty string"),null;let i=e.writeKey;if("string"!=typeof i||""===i)return console.error(".writeKey must be a non-empty string"),null;let o=e.dataset;if("string"!=typeof o||""===o)return console.error(".dataset must be a non-empty string"),null;let a=e.sampleRate;return"number"!=typeof a?(console.error(".sampleRate must be a number"),null):new O({timestamp:r,apiHost:n,postData:t,writeKey:i,dataset:o,sampleRate:a,metadata:e.metadata})}add(e){return this._builder.add(e),this}addField(e,t){return this._builder.addField(e,t),this}addDynamicField(e,t){return this._builder.addDynamicField(e,t),this}sendNow(e){return this._builder.sendNow(e)}newEvent(){return this._builder.newEvent()}newBuilder(e,t){return this._builder.newBuilder(e,t)}flush(){let e=this._transmission;return this._transmission=H(this._options.transmission,this._options),e.flush()}}let q=e=>{switch(e){case"base":return F;case"mock":return T;case"null":return N;case"worker":return console.warn("worker implementation not ready yet. using base implementation"),F;case"writer":return console.warn("writer implementation is deprecated. Please switch to console implementation."),P;case"console":return R;case"stdout":return M;default:throw Error(`unknown transmission implementation "${e}".`)}};function H(e,t){if(t.disabled)return null;if("string"==typeof e)return new(q(e))(t);if("function"!=typeof e)throw Error(".transmission must be one of 'base'/'worker'/'mock'/'writer'/'console'/'stdout'/'null' or a constructor.");try{return new e(t)}catch(r){if(e===F)throw Error("unable to initialize base transmission implementation.",r);console.warn("failed to initialize transmission, falling back to base implementation.");try{return new F(t)}catch(e){throw Error("unable to initialize base transmission implementation.",e)}}}e.exports=U},30072:(e,t,r)=>{var n=0/0,i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),h=Object.prototype.toString,p=Math.max,f=Math.min,m=function(){return d.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==h.call(t))return n;if(g(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=g(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var u=a.test(e);return u||s.test(e)?l(e.slice(2),u?2:8):o.test(e)?n:+e}e.exports=function(e,t,r){var n,i,o,a,s,l,u=0,c=!1,d=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var r=n,o=i;return n=i=void 0,u=t,a=e.apply(o,r)}function b(e){var r=e-l,n=e-u;return void 0===l||r>=t||r<0||d&&n>=o}function w(){var e,r,n,i=m();if(b(i))return k(i);s=setTimeout(w,(e=i-l,r=i-u,n=t-e,d?f(n,o-r):n))}function k(e){return(s=void 0,h&&n)?y(e):(n=i=void 0,a)}function x(){var e,r=m(),o=b(r);if(n=arguments,i=this,l=r,o){if(void 0===s)return u=e=l,s=setTimeout(w,t),c?y(e):a;if(d)return s=setTimeout(w,t),y(l)}return void 0===s&&(s=setTimeout(w,t)),a}return t=v(t)||0,g(r)&&(c=!!r.leading,o=(d="maxWait"in r)?p(v(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h),x.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=l=i=s=void 0},x.flush=function(){return void 0===s?a:k(m())},x}},66229:(e,t,r)=>{e=r.nmd(e);var n,i,o="__lodash_hash_undefined__",a="[object Arguments]",s="[object Function]",l="[object Object]",u=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d[a]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d[s]=d["[object Map]"]=d["[object Number]"]=d[l]=d["[object RegExp]"]=d["[object Set]"]=d["[object String]"]=d["[object WeakMap]"]=!1;var h="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,p="object"==typeof self&&self&&self.Object===Object&&self,f=h||p||Function("return this")(),m=t&&!t.nodeType&&t,g=m&&e&&!e.nodeType&&e,v=g&&g.exports===m,y=v&&h.process,b=function(){try{var e=g&&g.require&&g.require("util").types;if(e)return e;return y&&y.binding&&y.binding("util")}catch(e){}}(),w=b&&b.isTypedArray,k=Array.prototype,x=Function.prototype,_=Object.prototype,S=f["__core-js_shared__"],E=x.toString,C=_.hasOwnProperty,D=function(){var e=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),A=_.toString,j=E.call(Object),O=RegExp("^"+E.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=v?f.Buffer:void 0,P=f.Symbol,R=f.Uint8Array,M=T?T.allocUnsafe:void 0,N=(n=Object.getPrototypeOf,i=Object,function(e){return n(i(e))}),F=Object.create,I=_.propertyIsEnumerable,L=k.splice,B=P?P.toStringTag:void 0,z=function(){try{var e=ei(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),U=T?T.isBuffer:void 0,q=Math.max,H=Date.now,V=ei(f,"Map"),$=ei(Object,"create"),W=function(){function e(){}return function(t){if(!eg(t))return{};if(F)return F(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Y(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},G.prototype.set=function(e,t){var r=this.__data__,n=Q(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},K.prototype.clear=function(){this.size=0,this.__data__={hash:new Y,map:new(V||G),string:new Y}},K.prototype.delete=function(e){var t=en(this,e).delete(e);return this.size-=t?1:0,t},K.prototype.get=function(e){return en(this,e).get(e)},K.prototype.has=function(e){return en(this,e).has(e)},K.prototype.set=function(e,t){var r=en(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},X.prototype.clear=function(){this.__data__=new G,this.size=0},X.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},X.prototype.get=function(e){return this.__data__.get(e)},X.prototype.has=function(e){return this.__data__.has(e)},X.prototype.set=function(e,t){var r=this.__data__;if(r instanceof G){var n=r.__data__;if(!V||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new K(n)}return r.set(e,t),this.size=r.size,this};var ee=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[++n];if(!1===t(i[s],s,i))break}return e};function et(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?function(e){var t=C.call(e,B),r=e[B];try{e[B]=void 0;var n=!0}catch(e){}var i=A.call(e);return n&&(t?e[B]=r:delete e[B]),i}(e):A.call(e)}function er(e){return ev(e)&&et(e)==a}function en(e,t){var r,n=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function ei(e,t){var r=null==e?void 0:e[t];return!(!eg(r)||D&&D in r)&&(ef(r)?O:u).test(function(e){if(null!=e){try{return E.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(r))?r:void 0}function eo(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&c.test(e))&&e>-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(z?function(e,t){return z(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:ek);function eu(e,t){return e===t||e!=e&&t!=t}var ec=er(function(){return arguments}())?er:function(e){return ev(e)&&C.call(e,"callee")&&!I.call(e,"callee")},ed=Array.isArray;function eh(e){return null!=e&&em(e.length)&&!ef(e)}var ep=U||function(){return!1};function ef(e){if(!eg(e))return!1;var t=et(e);return t==s||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function em(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eg(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ev(e){return null!=e&&"object"==typeof e}var ey=w?function(e){return w(e)}:function(e){return ev(e)&&em(e.length)&&!!d[et(e)]};function eb(e){return eh(e)?function(e,t){var r=ed(e),n=!r&&ec(e),i=!r&&!n&&ep(e),o=!r&&!n&&!i&&ey(e),a=r||n||i||o,s=a?function(e,t){for(var r=-1,n=Array(e);++r1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,r){if(!eg(r))return!1;var n=typeof t;return("number"==n?!!(eh(r)&&eo(t,r.length)):"string"==n&&t in r)&&eu(r[t],e)}(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++n{var n="Expected a function",i=0/0,o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,d="object"==typeof self&&self&&self.Object===Object&&self,h=c||d||Function("return this")(),p=Object.prototype.toString,f=Math.max,m=Math.min,g=function(){return h.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==p.call(t))return i;if(v(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=v(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?i:+e}e.exports=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw TypeError(n);return v(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),function(e,t,r){var i,o,a,s,l,u,c=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw TypeError(n);function b(t){var r=i,n=o;return i=o=void 0,c=t,s=e.apply(n,r)}function w(e){var r=e-u,n=e-c;return void 0===u||r>=t||r<0||h&&n>=a}function k(){var e,r,n,i=g();if(w(i))return x(i);l=setTimeout(k,(e=i-u,r=i-c,n=t-e,h?m(n,a-r):n))}function x(e){return(l=void 0,p&&i)?b(e):(i=o=void 0,s)}function _(){var e,r=g(),n=w(r);if(i=arguments,o=this,u=r,n){if(void 0===l)return c=e=u,l=setTimeout(k,t),d?b(e):s;if(h)return l=setTimeout(k,t),b(u)}return void 0===l&&(l=setTimeout(k,t)),s}return t=y(t)||0,v(r)&&(d=!!r.leading,a=(h="maxWait"in r)?f(y(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),_.cancel=function(){void 0!==l&&clearTimeout(l),c=0,i=u=o=l=void 0},_.flush=function(){return void 0===l?s:x(g())},_}(e,t,{leading:i,maxWait:t,trailing:o})}},33103:(e,t,r)=>{var n=r(94715)(r(78942),"DataView");e.exports=n},25098:(e,t,r)=>{var n=r(23305),i=r(39361),o=r(11112),a=r(25276),s=r(57452);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(12393),i=r(62049),o=r(7144),a=r(7452),s=r(13964);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(94715)(r(78942),"Map");e.exports=n},68250:(e,t,r)=>{var n=r(49753),i=r(5681),o=r(80088),a=r(54732),s=r(59068);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(94715)(r(78942),"Promise");e.exports=n},64512:(e,t,r)=>{var n=r(94715)(r(78942),"Set");e.exports=n},23212:(e,t,r)=>{var n=r(68250),i=r(1877),o=r(8006);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t{var n=r(1386),i=r(64103),o=r(21779),a=r(34162),s=r(7462),l=r(96638);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},65650:(e,t,r)=>{var n=r(78942).Symbol;e.exports=n},31623:(e,t,r)=>{var n=r(78942).Uint8Array;e.exports=n},19270:(e,t,r)=>{var n=r(94715)(r(78942),"WeakMap");e.exports=n},86912:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},73788:e=>{e.exports=function(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r{var n=r(2478);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},43316:e=>{e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n{var n=r(26137),i=r(3283),o=r(53142),a=r(75853),s=r(69632),l=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),c=!r&&i(e),d=!r&&!c&&a(e),h=!r&&!c&&!d&&l(e),p=r||c||d||h,f=p?n(e.length,String):[],m=f.length;for(var g in e)(t||u.call(e,g))&&!(p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m)))&&f.push(g);return f}},65111:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r{e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r{var n=r(6484);e.exports=function(e){var t=e.length;return t?e[n(0,t-1)]:void 0}},59668:(e,t,r)=>{var n=r(84354),i=r(63151);e.exports=function(e){return i(n(e))}},36465:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{var n=r(12762)("length");e.exports=n},52837:e=>{e.exports=function(e){return e.split("")}},39546:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},24810:(e,t,r)=>{var n=r(57073),i=r(46285);e.exports=function(e,t,r){(void 0===r||i(e[t],r))&&(void 0!==r||t in e)||n(e,t,r)}},3422:(e,t,r)=>{var n=r(57073),i=r(46285),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];o.call(e,t)&&i(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},97034:(e,t,r)=>{var n=r(46285);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},82226:(e,t,r)=>{var n=r(84570);e.exports=function(e,t,r,i){return n(e,function(e,n,o){t(i,e,r(e),o)}),i}},37930:(e,t,r)=>{var n=r(39032),i=r(81211);e.exports=function(e,t){return e&&n(t,i(t),e)}},30125:(e,t,r)=>{var n=r(39032),i=r(25288);e.exports=function(e,t){return e&&n(t,i(t),e)}},57073:(e,t,r)=>{var n=r(72532);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},94436:e=>{e.exports=function(e,t,r){return e==e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=e>=t?e:t)),e}},69334:(e,t,r)=>{var n=r(51340),i=r(79968),o=r(3422),a=r(37930),s=r(30125),l=r(17099),u=r(84354),c=r(83546),d=r(24733),h=r(80393),p=r(93650),f=r(28486),m=r(97350),g=r(50424),v=r(75964),y=r(53142),b=r(75853),w=r(37681),k=r(41580),x=r(83943),_=r(81211),S=r(25288),E="[object Arguments]",C="[object Function]",D="[object Object]",A={};A[E]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[D]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[C]=A["[object WeakMap]"]=!1,e.exports=function e(t,r,j,O,T,P){var R,M=1&r,N=2&r,F=4&r;if(j&&(R=T?j(t,O,T,P):j(t)),void 0!==R)return R;if(!k(t))return t;var I=y(t);if(I){if(R=m(t),!M)return u(t,R)}else{var L=f(t),B=L==C||"[object GeneratorFunction]"==L;if(b(t))return l(t,M);if(L==D||L==E||B&&!T){if(R=N||B?{}:v(t),!M)return N?d(t,s(R,t)):c(t,a(R,t))}else{if(!A[L])return T?t:{};R=g(t,L,M)}}P||(P=new n);var z=P.get(t);if(z)return z;P.set(t,R),x(t)?t.forEach(function(n){R.add(e(n,r,j,n,t,P))}):w(t)&&t.forEach(function(n,i){R.set(i,e(n,r,j,i,t,P))});var U=F?N?p:h:N?S:_,q=I?void 0:U(t);return i(q||t,function(n,i){q&&(n=t[i=n]),o(R,i,e(n,r,j,i,t,P))}),R}},39747:(e,t,r)=>{var n=r(41580),i=Object.create,o=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=o},96576:(e,t,r)=>{var n=r(23212),i=r(59756),o=r(43316),a=r(65111),s=r(49460),l=r(65568);e.exports=function(e,t,r,u){var c=-1,d=i,h=!0,p=e.length,f=[],m=t.length;if(!p)return f;r&&(t=a(t,s(r))),u?(d=o,h=!1):t.length>=200&&(d=l,h=!1,t=new n(t));t:for(;++c{var n=r(47170),i=r(45770)(n);e.exports=i},90988:(e,t,r)=>{var n=r(51187);e.exports=function(e,t,r){for(var i=-1,o=e.length;++i{e.exports=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o{var n=r(11129),i=r(20714);e.exports=function e(t,r,o,a,s){var l=-1,u=t.length;for(o||(o=i),s||(s=[]);++l0&&o(c)?r>1?e(c,r-1,o,a,s):n(s,c):a||(s[s.length]=c)}return s}},35636:(e,t,r)=>{var n=r(86596)();e.exports=n},47170:(e,t,r)=>{var n=r(35636),i=r(81211);e.exports=function(e,t){return e&&n(e,t,i)}},57923:(e,t,r)=>{var n=r(93526),i=r(66040);e.exports=function(e,t){t=n(t,e);for(var r=0,o=t.length;null!=e&&r{var n=r(11129),i=r(53142);e.exports=function(e,t,r){var o=t(e);return i(e)?o:n(o,r(e))}},87379:(e,t,r)=>{var n=r(65650),i=r(8870),o=r(29005),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},2840:e=>{e.exports=function(e,t){return e>t}},63599:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,r){return null!=e&&t.call(e,r)}},43636:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},2478:(e,t,r)=>{var n=r(37250),i=r(69454),o=r(97706);e.exports=function(e,t,r){return t==t?o(e,t,r):n(e,i,r)}},15869:e=>{e.exports=function(e,t,r,n){for(var i=r-1,o=e.length;++i{var n=r(87379),i=r(80547);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},94687:(e,t,r)=>{var n=r(90353),i=r(80547);e.exports=function e(t,r,o,a,s){return t===r||(null!=t&&null!=r&&(i(t)||i(r))?n(t,r,o,a,e,s):t!=t&&r!=r)}},90353:(e,t,r)=>{var n=r(51340),i=r(33934),o=r(88861),a=r(31182),s=r(28486),l=r(53142),u=r(75853),c=r(8666),d="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,g,v){var y=l(e),b=l(t),w=y?h:s(e),k=b?h:s(t);w=w==d?p:w,k=k==d?p:k;var x=w==p,_=k==p,S=w==k;if(S&&u(e)){if(!u(t))return!1;y=!0,x=!1}if(S&&!x)return v||(v=new n),y||c(e)?i(e,t,r,m,g,v):o(e,t,w,r,m,g,v);if(!(1&r)){var E=x&&f.call(e,"__wrapped__"),C=_&&f.call(t,"__wrapped__");if(E||C){var D=E?e.value():e,A=C?t.value():t;return v||(v=new n),g(D,A,r,m,v)}}return!!S&&(v||(v=new n),a(e,t,r,m,g,v))}},80777:(e,t,r)=>{var n=r(28486),i=r(80547);e.exports=function(e){return i(e)&&"[object Map]"==n(e)}},38330:(e,t,r)=>{var n=r(51340),i=r(94687);e.exports=function(e,t,r,o){var a=r.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var u=r[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a{e.exports=function(e){return e!=e}},89624:(e,t,r)=>{var n=r(93655),i=r(64759),o=r(41580),a=r(64066),s=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,d=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?d:s).test(a(e))}},25902:(e,t,r)=>{var n=r(87379),i=r(80547);e.exports=function(e){return i(e)&&"[object RegExp]"==n(e)}},4316:(e,t,r)=>{var n=r(28486),i=r(80547);e.exports=function(e){return i(e)&&"[object Set]"==n(e)}},70674:(e,t,r)=>{var n=r(87379),i=r(65387),o=r(80547),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[n(e)]}},3334:(e,t,r)=>{var n=r(36526),i=r(12343),o=r(22053),a=r(53142),s=r(43282);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):n(e):s(e)}},195:(e,t,r)=>{var n=r(84882),i=r(98121),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},57200:(e,t,r)=>{var n=r(41580),i=r(84882),o=r(38546),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=i(e),r=[];for(var s in e)"constructor"==s&&(t||!a.call(e,s))||r.push(s);return r}},41393:(e,t,r)=>{var n=r(84570),i=r(36529);e.exports=function(e,t){var r=-1,o=i(e)?Array(e.length):[];return n(e,function(e,n,i){o[++r]=t(e,n,i)}),o}},36526:(e,t,r)=>{var n=r(38330),i=r(24367),o=r(23904);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},12343:(e,t,r)=>{var n=r(94687),i=r(46123),o=r(27276),a=r(65187),s=r(67267),l=r(23904),u=r(66040);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(r){var a=i(r,e);return void 0===a&&a===t?o(r,e):n(t,a,3)}}},40091:(e,t,r)=>{var n=r(51340),i=r(24810),o=r(35636),a=r(26885),s=r(41580),l=r(25288),u=r(78763);e.exports=function e(t,r,c,d,h){t!==r&&o(r,function(o,l){if(h||(h=new n),s(o))a(t,r,l,c,e,d,h);else{var p=d?d(u(t,l),o,l+"",t,r,h):void 0;void 0===p&&(p=o),i(t,l,p)}},l)}},26885:(e,t,r)=>{var n=r(24810),i=r(17099),o=r(92264),a=r(84354),s=r(75964),l=r(3283),u=r(53142),c=r(65406),d=r(75853),h=r(93655),p=r(41580),f=r(48360),m=r(8666),g=r(78763),v=r(64207);e.exports=function(e,t,r,y,b,w,k){var x=g(e,r),_=g(t,r),S=k.get(_);if(S){n(e,r,S);return}var E=w?w(x,_,r+"",e,t,k):void 0,C=void 0===E;if(C){var D=u(_),A=!D&&d(_),j=!D&&!A&&m(_);E=_,D||A||j?u(x)?E=x:c(x)?E=a(x):A?(C=!1,E=i(_,!0)):j?(C=!1,E=o(_,!0)):E=[]:f(_)||l(_)?(E=x,l(x)?E=v(x):(!p(x)||h(x))&&(E=s(_))):C=!1}C&&(k.set(_,E),b(E,_,y,w,k),k.delete(_)),n(e,r,E)}},70310:(e,t,r)=>{var n=r(65111),i=r(57923),o=r(3334),a=r(41393),s=r(50642),l=r(49460),u=r(46775),c=r(22053),d=r(53142);e.exports=function(e,t,r){t=t.length?n(t,function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[c];var h=-1;return t=n(t,l(o)),s(a(e,function(e,r,i){return{criteria:n(t,function(t){return t(e)}),index:++h,value:e}}),function(e,t){return u(e,t,r)})}},12762:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},98880:(e,t,r)=>{var n=r(57923);e.exports=function(e){return function(t){return n(t,e)}}},49261:(e,t,r)=>{var n=r(65111),i=r(2478),o=r(15869),a=r(49460),s=r(84354),l=Array.prototype.splice;e.exports=function(e,t,r,u){var c=u?o:i,d=-1,h=t.length,p=e;for(e===t&&(t=s(t)),r&&(p=n(e,a(r)));++d-1;)p!==e&&l.call(p,f,1),l.call(e,f,1);return e}},6484:e=>{var t=Math.floor,r=Math.random;e.exports=function(e,n){return e+t(r()*(n-e+1))}},96902:e=>{var t=Math.ceil,r=Math.max;e.exports=function(e,n,i,o){for(var a=-1,s=r(t((n-e)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=e,e+=i;return l}},23945:(e,t,r)=>{var n=r(22053),i=r(75234),o=r(80796);e.exports=function(e,t){return o(i(e,t,n),e+"")}},7709:(e,t,r)=>{var n=r(13483),i=r(39817);e.exports=function(e){return n(i(e))}},87655:(e,t,r)=>{var n=r(3422),i=r(93526),o=r(69632),a=r(41580),s=r(66040);e.exports=function(e,t,r,l){if(!a(e))return e;t=i(t,e);for(var u=-1,c=t.length,d=c-1,h=e;null!=h&&++u{var n=r(82619),i=r(72532),o=r(22053),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;e.exports=a},27154:(e,t,r)=>{var n=r(63151),i=r(39817);e.exports=function(e){return n(i(e))}},73501:e=>{e.exports=function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},26137:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{var n=r(65650),i=r(65111),o=r(53142),a=r(51187),s=1/0,l=n?n.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-s?"-0":r}},86403:(e,t,r)=>{var n=r(62945),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},49460:e=>{e.exports=function(e){return function(t){return e(t)}}},15630:(e,t,r)=>{var n=r(23212),i=r(59756),o=r(43316),a=r(65568),s=r(36208),l=r(49828);e.exports=function(e,t,r){var u=-1,c=i,d=e.length,h=!0,p=[],f=p;if(r)h=!1,c=o;else if(d>=200){var m=t?null:s(e);if(m)return l(m);h=!1,c=a,f=new n}else f=t?[]:p;t:for(;++u{var n=r(93526),i=r(98087),o=r(13398),a=r(66040);e.exports=function(e,t){return t=n(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},3905:(e,t,r)=>{var n=r(65111);e.exports=function(e,t){return n(t,function(t){return e[t]})}},65568:e=>{e.exports=function(e,t){return e.has(t)}},93526:(e,t,r)=>{var n=r(53142),i=r(65187),o=r(96493),a=r(95243);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:o(a(e))}},28931:(e,t,r)=>{var n=r(73501);e.exports=function(e,t,r){var i=e.length;return r=void 0===r?i:r,!t&&r>=i?e:n(e,t,r)}},58898:(e,t,r)=>{var n=r(31623);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},17099:(e,t,r)=>{e=r.nmd(e);var n=r(78942),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},92480:(e,t,r)=>{var n=r(58898);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},78340:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},18069:(e,t,r)=>{var n=r(65650),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},92264:(e,t,r)=>{var n=r(58898);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},63521:(e,t,r)=>{var n=r(51187);e.exports=function(e,t){if(e!==t){var r=void 0!==e,i=null===e,o=e==e,a=n(e),s=void 0!==t,l=null===t,u=t==t,c=n(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!r&&u||!o)return 1;if(!i&&!a&&!c&&e{var n=r(63521);e.exports=function(e,t,r){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,l=r.length;++i=l)return u;return u*("desc"==r[i]?-1:1)}}return e.index-t.index}},84354:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{var n=r(3422),i=r(57073);e.exports=function(e,t,r,o){var a=!r;r||(r={});for(var s=-1,l=t.length;++s{var n=r(39032),i=r(77979);e.exports=function(e,t){return n(e,i(e),t)}},24733:(e,t,r)=>{var n=r(39032),i=r(85832);e.exports=function(e,t){return n(e,i(e),t)}},41950:(e,t,r)=>{var n=r(78942)["__core-js_shared__"];e.exports=n},72195:(e,t,r)=>{var n=r(73788),i=r(82226),o=r(3334),a=r(53142);e.exports=function(e,t){return function(r,s){var l=a(r)?n:i,u=t?t():{};return l(r,e,o(s,2),u)}}},77848:(e,t,r)=>{var n=r(23945),i=r(74535);e.exports=function(e){return n(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++n{var n=r(36529);e.exports=function(e,t){return function(r,i){if(null==r)return r;if(!n(r))return e(r,i);for(var o=r.length,a=t?o:-1,s=Object(r);(t?a--:++a{e.exports=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===r(o[l],l,o))break}return t}}},4326:(e,t,r)=>{var n=r(28931),i=r(83417),o=r(4618),a=r(95243);e.exports=function(e){return function(t){var r=i(t=a(t))?o(t):void 0,s=r?r[0]:t.charAt(0),l=r?n(r,1).join(""):t.slice(1);return s[e]()+l}}},40165:(e,t,r)=>{var n=r(96902),i=r(74535),o=r(43301);e.exports=function(e){return function(t,r,a){return a&&"number"!=typeof a&&i(t,r,a)&&(r=a=void 0),t=o(t),void 0===r?(r=t,t=0):r=o(r),a=void 0===a?t{var n=r(78942),i=r(67642),o=r(6131),a=r(95243),s=n.isFinite,l=Math.min;e.exports=function(e){var t=Math[e];return function(e,r){if(e=o(e),(r=null==r?0:l(i(r),292))&&s(e)){var n=(a(e)+"e").split("e");return+((n=(a(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}},36208:(e,t,r)=>{var n=r(64512),i=r(79071),o=r(49828),a=n&&1/o(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i;e.exports=a},72532:(e,t,r)=>{var n=r(94715),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},33934:(e,t,r)=>{var n=r(23212),i=r(36465),o=r(65568);e.exports=function(e,t,r,a,s,l){var u=1&r,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,m=!0,g=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++f{var n=r(65650),i=r(31623),o=r(46285),a=r(33934),s=r(95894),l=r(49828),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,d,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!d(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var f=1&n;if(p||(p=l),e.size!=t.size&&!f)break;var m=h.get(e);if(m)return m==t;n|=2,h.set(e,t);var g=a(p(e),p(t),n,u,d,h);return h.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},31182:(e,t,r)=>{var n=r(80393),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,a,s){var l=1&r,u=n(e),c=u.length;if(c!=n(t).length&&!l)return!1;for(var d=c;d--;){var h=u[d];if(!(l?h in t:i.call(t,h)))return!1}var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},80393:(e,t,r)=>{var n=r(48244),i=r(77979),o=r(81211);e.exports=function(e){return n(e,o,i)}},93650:(e,t,r)=>{var n=r(48244),i=r(85832),o=r(25288);e.exports=function(e){return n(e,o,i)}},44700:(e,t,r)=>{var n=r(79067);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},24367:(e,t,r)=>{var n=r(67267),i=r(81211);e.exports=function(e){for(var t=i(e),r=t.length;r--;){var o=t[r],a=e[o];t[r]=[o,a,n(a)]}return t}},94715:(e,t,r)=>{var n=r(89624),i=r(20155);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},74784:(e,t,r)=>{var n=r(3766)(Object.getPrototypeOf,Object);e.exports=n},8870:(e,t,r)=>{var n=r(65650),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},77979:(e,t,r)=>{var n=r(79847),i=r(99306),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:n(a(e=Object(e)),function(t){return o.call(e,t)})}:i;e.exports=s},85832:(e,t,r)=>{var n=r(11129),i=r(74784),o=r(77979),a=r(99306),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,o(e)),e=i(e);return t}:a;e.exports=s},28486:(e,t,r)=>{var n=r(33103),i=r(19770),o=r(89413),a=r(64512),s=r(19270),l=r(87379),u=r(64066),c="[object Map]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",m=u(n),g=u(i),v=u(o),y=u(a),b=u(s),w=l;(n&&w(new n(new ArrayBuffer(1)))!=f||i&&w(new i)!=c||o&&w(o.resolve())!=d||a&&w(new a)!=h||s&&w(new s)!=p)&&(w=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case m:return f;case g:return c;case v:return d;case y:return h;case b:return p}return t}),e.exports=w},20155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},85899:(e,t,r)=>{var n=r(93526),i=r(3283),o=r(53142),a=r(69632),s=r(65387),l=r(66040);e.exports=function(e,t,r){t=n(t,e);for(var u=-1,c=t.length,d=!1;++u{var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},15813:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},23305:(e,t,r)=>{var n=r(94497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},39361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},11112:(e,t,r)=>{var n=r(94497),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},25276:(e,t,r)=>{var n=r(94497),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},57452:(e,t,r)=>{var n=r(94497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},97350:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},50424:(e,t,r)=>{var n=r(58898),i=r(92480),o=r(78340),a=r(18069),s=r(92264);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},75964:(e,t,r)=>{var n=r(39747),i=r(74784),o=r(84882);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:n(i(e))}},20714:(e,t,r)=>{var n=r(65650),i=r(3283),o=r(53142),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},69632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e{var n=r(46285),i=r(36529),o=r(69632),a=r(41580);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return("number"==s?!!(i(r)&&o(t,r.length)):"string"==s&&t in r)&&n(r[t],e)}},65187:(e,t,r)=>{var n=r(53142),i=r(51187),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},79067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},64759:(e,t,r)=>{var n=r(41950),i=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},84882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},67267:(e,t,r)=>{var n=r(41580);e.exports=function(e){return e==e&&!n(e)}},12393:e=>{e.exports=function(){this.__data__=[],this.size=0}},62049:(e,t,r)=>{var n=r(97034),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},7144:(e,t,r)=>{var n=r(97034);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7452:(e,t,r)=>{var n=r(97034);e.exports=function(e){return n(this.__data__,e)>-1}},13964:(e,t,r)=>{var n=r(97034);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},49753:(e,t,r)=>{var n=r(25098),i=r(1386),o=r(19770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},5681:(e,t,r)=>{var n=r(44700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},80088:(e,t,r)=>{var n=r(44700);e.exports=function(e){return n(this,e).get(e)}},54732:(e,t,r)=>{var n=r(44700);e.exports=function(e){return n(this,e).has(e)}},59068:(e,t,r)=>{var n=r(44700);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},95894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},23904:e=>{e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},76853:(e,t,r)=>{var n=r(69011);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},94497:(e,t,r)=>{var n=r(94715)(Object,"create");e.exports=n},98121:(e,t,r)=>{var n=r(3766)(Object.keys,Object);e.exports=n},38546:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},2306:(e,t,r)=>{e=r.nmd(e);var n=r(74967),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},29005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},75234:(e,t,r)=>{var n=r(86912),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a{var n=r(57923),i=r(73501);e.exports=function(e,t){return t.length<2?e:n(e,i(t,0,-1))}},78942:(e,t,r)=>{var n=r(74967),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},78763:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},49828:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},80796:(e,t,r)=>{var n=r(47403),i=r(3316)(n);e.exports=i},3316:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var i=t(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},63151:(e,t,r)=>{var n=r(6484);e.exports=function(e,t){var r=-1,i=e.length,o=i-1;for(t=void 0===t?i:t;++r{var n=r(1386);e.exports=function(){this.__data__=new n,this.size=0}},21779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},34162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},96638:(e,t,r)=>{var n=r(1386),i=r(19770),o=r(68250);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},97706:e=>{e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n{var n=r(60906),i=r(83417),o=r(64962);e.exports=function(e){return i(e)?o(e):n(e)}},4618:(e,t,r)=>{var n=r(52837),i=r(83417),o=r(92013);e.exports=function(e){return i(e)?o(e):n(e)}},96493:(e,t,r)=>{var n=r(76853),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)}),t});e.exports=a},66040:(e,t,r)=>{var n=r(51187),i=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},64066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},62945:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},64962:e=>{var t="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+r+"|"+n+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,a].join("|")+")"+l+s+")*",c=RegExp(n+"(?="+n+")|(?:"+[i+r+"?",r,o,a,"["+t+"]"].join("|")+")"+(l+s+u),"g");e.exports=function(e){for(var t=c.lastIndex=0;c.test(e);)++t;return t}},92013:e=>{var t="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+r+"|"+n+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,a].join("|")+")"+l+s+")*",c=RegExp(n+"(?="+n+")|(?:"+[i+r+"?",r,o,a,"["+t+"]"].join("|")+")"+(l+s+u),"g");e.exports=function(e){return e.match(c)||[]}},10482:e=>{var t="\ud800-\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",s="["+o+"]",l="["+n+"]",u="[^"+t+o+"\\d+"+r+n+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",h="["+i+"]",p="(?:"+l+"|"+u+")",f="(?:"+h+"|"+u+")",m="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",g="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",y="[\\ufe0e\\ufe0f]?",b="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+y+v+")*",w="(?:"+["["+r+"]",c,d].join("|")+")"+(y+v+b),k=RegExp([h+"?"+l+"+"+m+"(?="+[s,h,"$"].join("|")+")",f+"+"+g+"(?="+[s,h+p,"$"].join("|")+")",h+"?"+p+"+"+m,h+"+"+g,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",w].join("|"),"g");e.exports=function(e){return e.match(k)||[]}},56005:(e,t,r)=>{var n=r(95243),i=r(5485);e.exports=function(e){return i(n(e).toLowerCase())}},17228:(e,t,r)=>{var n=r(94436),i=r(6131);e.exports=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=i(r))==r?r:0),void 0!==t&&(t=(t=i(t))==t?t:0),n(i(e),t,r)}},72846:(e,t,r)=>{var n=r(69334);e.exports=function(e){return n(e,4)}},46108:(e,t,r)=>{var n=r(69334);e.exports=function(e){return n(e,5)}},82619:e=>{e.exports=function(e){return function(){return e}}},12784:(e,t,r)=>{var n=r(41580),i=r(94495),o=r(6131),a=Math.max,s=Math.min;e.exports=function(e,t,r){var l,u,c,d,h,p,f=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var r=l,n=u;return l=u=void 0,f=t,d=e.apply(n,r)}function b(e){var r=e-p,n=e-f;return void 0===p||r>=t||r<0||g&&n>=c}function w(){var e,r,n,o=i();if(b(o))return k(o);h=setTimeout(w,(e=o-p,r=o-f,n=t-e,g?s(n,c-r):n))}function k(e){return(h=void 0,v&&l)?y(e):(l=u=void 0,d)}function x(){var e,r=i(),n=b(r);if(l=arguments,u=this,p=r,n){if(void 0===h)return f=e=p,h=setTimeout(w,t),m?y(e):d;if(g)return clearTimeout(h),h=setTimeout(w,t),y(p)}return void 0===h&&(h=setTimeout(w,t)),d}return t=o(t)||0,n(r)&&(m=!!r.leading,c=(g="maxWait"in r)?a(o(r.maxWait)||0,t):c,v="trailing"in r?!!r.trailing:v),x.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=u=h=void 0},x.flush=function(){return void 0===h?d:k(i())},x}},46285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},92154:(e,t,r)=>{var n=r(37250),i=r(3334),o=r(67642),a=Math.max;e.exports=function(e,t,r){var s=null==e?0:e.length;if(!s)return -1;var l=null==r?0:o(r);return l<0&&(l=a(s+l,0)),n(e,i(t,3),l)}},66652:(e,t,r)=>{var n=r(90313),i=r(40105);e.exports=function(e,t){return n(i(e,t),1)}},75857:(e,t,r)=>{var n=r(90313);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},46123:(e,t,r)=>{var n=r(57923);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},87809:(e,t,r)=>{var n=r(57073),i=r(72195),o=Object.prototype.hasOwnProperty,a=i(function(e,t,r){o.call(e,r)?e[r].push(t):n(e,r,[t])});e.exports=a},52103:(e,t,r)=>{var n=r(63599),i=r(85899);e.exports=function(e,t){return null!=e&&i(e,t,n)}},27276:(e,t,r)=>{var n=r(43636),i=r(85899);e.exports=function(e,t){return null!=e&&i(e,t,n)}},22053:e=>{e.exports=function(e){return e}},75254:(e,t,r)=>{var n=r(2478),i=r(67642),o=Math.max;e.exports=function(e,t,r){var a=null==e?0:e.length;if(!a)return -1;var s=null==r?0:i(r);return s<0&&(s=o(a+s,0)),n(e,t,s)}},3283:(e,t,r)=>{var n=r(56027),i=r(80547),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},53142:e=>{var t=Array.isArray;e.exports=t},36529:(e,t,r)=>{var n=r(93655),i=r(65387);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},65406:(e,t,r)=>{var n=r(36529),i=r(80547);e.exports=function(e){return i(e)&&n(e)}},75853:(e,t,r)=>{e=r.nmd(e);var n=r(78942),i=r(34772),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},46343:(e,t,r)=>{var n=r(94687);e.exports=function(e,t){return n(e,t)}},93655:(e,t,r)=>{var n=r(87379),i=r(41580);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},65387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},37681:(e,t,r)=>{var n=r(80777),i=r(49460),o=r(2306),a=o&&o.isMap,s=a?i(a):n;e.exports=s},70734:(e,t,r)=>{var n=r(38330),i=r(24367);e.exports=function(e,t,r){return r="function"==typeof r?r:void 0,n(e,t,i(t),r)}},3668:e=>{e.exports=function(e){return null==e}},41580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},80547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},48360:(e,t,r)=>{var n=r(87379),i=r(74784),o=r(80547),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==u}},24358:(e,t,r)=>{var n=r(25902),i=r(49460),o=r(2306),a=o&&o.isRegExp,s=a?i(a):n;e.exports=s},83943:(e,t,r)=>{var n=r(4316),i=r(49460),o=r(2306),a=o&&o.isSet,s=a?i(a):n;e.exports=s},51187:(e,t,r)=>{var n=r(87379),i=r(80547);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},8666:(e,t,r)=>{var n=r(70674),i=r(49460),o=r(2306),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},34789:(e,t,r)=>{var n=r(57073),i=r(72195)(function(e,t,r){n(e,r,t)});e.exports=i},81211:(e,t,r)=>{var n=r(10358),i=r(195),o=r(36529);e.exports=function(e){return o(e)?n(e):i(e)}},25288:(e,t,r)=>{var n=r(10358),i=r(57200),o=r(36529);e.exports=function(e){return o(e)?n(e,!0):i(e)}},98087:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},40105:(e,t,r)=>{var n=r(65111),i=r(3334),o=r(41393),a=r(53142);e.exports=function(e,t){return(a(e)?n:o)(e,i(t,3))}},47217:(e,t,r)=>{var n=r(90988),i=r(2840),o=r(22053);e.exports=function(e){return e&&e.length?n(e,o,i):void 0}},69011:(e,t,r)=>{var n=r(68250);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},82451:(e,t,r)=>{var n=r(40091),i=r(77848)(function(e,t,r){n(e,t,r)});e.exports=i},79071:e=>{e.exports=function(){}},94495:(e,t,r)=>{var n=r(78942);e.exports=function(){return n.Date.now()}},56622:(e,t,r)=>{var n=r(70310),i=r(53142);e.exports=function(e,t,r,o){return null==e?[]:(i(t)||(t=null==t?[]:[t]),i(r=o?void 0:r)||(r=null==r?[]:[r]),n(e,t,r))}},43282:(e,t,r)=>{var n=r(12762),i=r(98880),o=r(65187),a=r(66040);e.exports=function(e){return o(e)?n(a(e)):i(e)}},7292:(e,t,r)=>{var n=r(23945)(r(70581));e.exports=n},70581:(e,t,r)=>{var n=r(49261);e.exports=function(e,t){return e&&e.length&&t&&t.length?n(e,t):e}},39324:(e,t,r)=>{var n=r(6484),i=r(74535),o=r(43301),a=parseFloat,s=Math.min,l=Math.random;e.exports=function(e,t,r){if(r&&"boolean"!=typeof r&&i(e,t,r)&&(t=r=void 0),void 0===r&&("boolean"==typeof t?(r=t,t=void 0):"boolean"==typeof e&&(r=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=o(e),void 0===t?(t=e,e=0):t=o(t)),e>t){var u=e;e=t,t=u}if(r||e%1||t%1){var c=l();return s(e+c*(t-e+a("1e-"+((c+"").length-1))),t)}return n(e,t)}},73758:(e,t,r)=>{var n=r(40165)();e.exports=n},119:(e,t,r)=>{var n=r(22072)("round");e.exports=n},50933:(e,t,r)=>{var n=r(13483),i=r(7709),o=r(53142);e.exports=function(e){return(o(e)?n:i)(e)}},41263:(e,t,r)=>{var n=r(87655);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},30938:(e,t,r)=>{var n=r(59668),i=r(27154),o=r(53142);e.exports=function(e){return(o(e)?n:i)(e)}},40074:(e,t,r)=>{var n=r(90313),i=r(70310),o=r(23945),a=r(74535),s=o(function(e,t){if(null==e)return[];var r=t.length;return r>1&&a(e,t[0],t[1])?t=[]:r>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,n(t,1),[])});e.exports=s},99306:e=>{e.exports=function(){return[]}},34772:e=>{e.exports=function(){return!1}},97331:(e,t,r)=>{var n=r(12784),i=r(41580);e.exports=function(e,t,r){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}},43301:(e,t,r)=>{var n=r(6131),i=1/0;e.exports=function(e){return e?(e=n(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},67642:(e,t,r)=>{var n=r(43301);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},6131:(e,t,r)=>{var n=r(86403),i=r(41580),o=r(51187),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):s.test(e)?a:+e}},64207:(e,t,r)=>{var n=r(39032),i=r(25288);e.exports=function(e){return n(e,i(e))}},95243:(e,t,r)=>{var n=r(52291);e.exports=function(e){return null==e?"":n(e)}},20685:(e,t,r)=>{var n=r(52291),i=r(28931),o=r(83417),a=r(41580),s=r(24358),l=r(91090),u=r(4618),c=r(67642),d=r(95243),h=/\w*$/;e.exports=function(e,t){var r=30,p="...";if(a(t)){var f="separator"in t?t.separator:f;r="length"in t?c(t.length):r,p="omission"in t?n(t.omission):p}var m=(e=d(e)).length;if(o(e)){var g=u(e);m=g.length}if(r>=m)return e;var v=r-l(p);if(v<1)return p;var y=g?i(g,0,v).join(""):e.slice(0,v);if(void 0===f)return y+p;if(g&&(v+=y.length-v),s(f)){if(e.slice(v).search(f)){var b,w=y;for(f.global||(f=RegExp(f.source,d(h.exec(f))+"g")),f.lastIndex=0;b=f.exec(w);)var k=b.index;y=y.slice(0,void 0===k?v:k)}}else if(e.indexOf(n(f),v)!=v){var x=y.lastIndexOf(f);x>-1&&(y=y.slice(0,x))}return y+p}},82438:(e,t,r)=>{var n=r(15630);e.exports=function(e){return e&&e.length?n(e):[]}},87835:(e,t,r)=>{var n=r(3334),i=r(15630);e.exports=function(e,t){return e&&e.length?i(e,n(t,2)):[]}},73450:(e,t,r)=>{var n=r(81586);e.exports=function(e,t){return null==e||n(e,t)}},5485:(e,t,r)=>{var n=r(4326)("toUpperCase");e.exports=n},39817:(e,t,r)=>{var n=r(3905),i=r(81211);e.exports=function(e){return null==e?[]:n(e,i(e))}},30795:(e,t,r)=>{var n=r(96576),i=r(23945),o=r(65406),a=i(function(e,t){return o(e)?n(e,t):[]});e.exports=a},39850:(e,t,r)=>{var n=r(39546),i=r(15813),o=r(95243),a=r(10482);e.exports=function(e,t,r){return(e=o(e),void 0===(t=r?void 0:t))?i(e)?a(e):n(e):e.match(t)||[]}},41924:(e,t,r)=>{var n=r(31835);n.prototype.formulaEval=function(){"use strict";for(var e,t,r,n=[],i=this.value,o=0;o"+t.value+""+i[o].show+""+e.value+"",type:10}):n.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=n.pop(),t=n.pop(),n.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=n.pop(),t=n.pop(),r=n.pop(),n.push({value:i[o].show+"("+r.value+","+t.value+","+e.value+")",type:12}));return n[0].value},e.exports=n},58618:(e,t,r)=>{"use strict";var n=r(61015);function i(e,t){for(var r=0;rf.length-2?f.length-1:e.length-l;r>0;r--)if(void 0!==f[r])for(i=0;i0&&S<_.length-1&&1===_[S+1].type&&(1===_[S-1].type||6===_[S-1].type))throw new n.Exception("Unexpected Space");continue}var D=C.token,A=C.type,j=C.value,O=C.precedence,T=C.show,P=r[r.length-1];for(E=a.length;E--&&0===a[E];)if(-1!==[0,2,3,4,5,9,11,12,13].indexOf(A)){if(!0!==s[A])throw new n.Exception(D+" is not allowed after "+k);r.push(v),s=u,w=h,a.pop()}if(!0!==s[A])throw new n.Exception(D+" is not allowed after "+k);if(!0===w[A]&&(A=2,j=n.math.mul,T="×",O=3,S-=1),x={value:j,type:A,pre:O,show:T,numberOfArguments:C.numberOfArguments},0===A)s=l,w=d,i(a,2),r.push(x),4!==_[S+1].type&&(r.push(y),a.push(2));else if(1===A)1===P.type?(P.value+=j,i(a,1)):r.push(x),s=u,w=c;else if(2===A)s=l,w=d,i(a,2),r.push(x);else if(3===A)r.push(x),s=u,w=h;else if(4===A)i(a,1),b++,s=l,w=d,r.push(x);else if(5===A){if(!b)throw new n.Exception("Closing parenthesis are more than opening one, wait What!!!");b--,s=u,w=h,r.push(x),i(a,1)}else if(6===A){if(P.hasDec)throw new n.Exception("Two decimals are not allowed in one number");1!==P.type&&(P={value:0,type:1,pre:0},r.push(P)),s=p,i(a,1),w=d,P.value+=j,P.hasDec=!0}else 7===A&&(s=u,w=h,i(a,1),r.push(x));8===A?(s=l,w=d,i(a,C.numberOfArguments+2),r.push(x),4!==_[S+1].type&&(r.push(y),a.push(C.numberOfArguments+2))):9===A?(9===P.type?P.value===n.math.add?(P.value=j,P.show=T,i(a,1)):P.value===n.math.sub&&"-"===T&&(P.value=n.math.add,P.show="+",i(a,1)):5!==P.type&&7!==P.type&&1!==P.type&&3!==P.type&&13!==P.type?"-"===D&&(s=l,w=d,i(a,2).push(2),r.push(g),r.push(y)):(r.push(x),i(a,2)),s=l,w=d):10===A?(s=l,w=d,i(a,2),r.push(x)):11===A?(s=l,w=d,r.push(x)):12===A?(s=l,w=d,i(a,6),r.push(x),4!==_[S+1].type&&(r.push(y),a.push(6))):13===A&&(s=u,w=h,r.push(x)),i(a,-1),k=D}for(E=a.length;E--;)r.push(v);if(!0!==s[5])throw new n.Exception("complete the expression");for(;b--;)r.push(v);return r.push(v),new n(r)},e.exports=n},61015:e=>{"use strict";var t=function(e){this.value=e};t.math={isDegree:!0,acos:function(e){return t.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return t.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return t.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,r){var n=1,i=e-r,o=r;o{var n=r(58618);n.prototype.toPostfix=function(){"use strict";for(var e,t,r,i,o,a=[],s=[{value:"(",type:4,pre:0}],l=this.value,u=1;ur)s.push(e);else{for(;r>=i&&!c||c&&i{var n=r(49061);n.prototype.postfixEval=function(e){"use strict";(e=e||{}).PI=Math.PI,e.E=Math.E;for(var t,r,i,o=[],a=this.value,s=void 0!==e.n,l=0;l1)throw new n.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},n.eval=function(e,t,r){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==r?this.lex(e,t).toPostfix().postfixEval(r):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=n},91566:(e,t,r)=>{var n=r(67764),i=/[\/\+\.]/;e.exports=function(e,t){function r(t){var r=n(t,e,i);return r&&r.length>=2}return t?r(t.split(";")[0]):r}},2162:e=>{e.exports=function(){var e={},t=e._fns={};return e.emit=function(e,r,n,i,o,a,s){var l=function(e){for(var r=t[e]?t[e]:[],n=e.indexOf(":"),i=-1===n?[e]:[e.substring(0,n),e.substring(n+1)],o=Object.keys(t),a=0,s=o.length;a{"use strict";var n=r(27237),i=r(28101),o=r(84834),a=Object.prototype.toString;e.exports=function(e){return"[object Date]"===a.call(e)?e:"[object Number]"===a.call(e)?new Date(e<315576e5?1e3*e:e):n.is(e)?n.parse(e):i.is(e)?i.parse(e):o.is(e)?o.parse(e):new Date(e)}},28101:(e,t)=>{"use strict";var r=/\d{13}/;t.is=function(e){return r.test(e)},t.parse=function(e){return new Date(e=parseInt(e,10))}},84834:(e,t)=>{"use strict";var r=/\d{10}/;t.is=function(e){return r.test(e)},t.parse=function(e){return new Date(1e3*parseInt(e,10))}},79253:(e,t,r)=>{e.exports=r(10666)},91095:e=>{"use strict";let t=self.fetch.bind(self);e.exports=t,e.exports.default=e.exports},36386:(e,t,r)=>{"use strict";function n(e){return function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var r in t=t||{})t.hasOwnProperty(r)&&(e[r]=t[r]);return e}({},e)}r.d(t,{A:()=>n})},2809:(e,t,r)=>{"use strict";function n(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}r.d(t,{A:()=>n})},54260:(e,t,r)=>{"use strict";function n(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{A:()=>n})},46321:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(92293),i=r(69670),o=r(54260);function a(e,t){(0,o.A)(1,arguments);var r=t||{},a=r.locale,s=a&&a.options&&a.options.weekStartsOn,l=null==s?0:(0,n.A)(s),u=null==r.weekStartsOn?l:(0,n.A)(r.weekStartsOn);if(!(u>=0&&u<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,i.A)(e),d=c.getUTCDay();return c.setUTCDate(c.getUTCDate()-((d{"use strict";function n(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}r.d(t,{A:()=>n})},5291:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(69670),i=r(54260);function o(e,t){(0,i.A)(2,arguments);var r=(0,n.A)(e),o=(0,n.A)(t),a=r.getTime()-o.getTime();return a<0?-1:a>0?1:a}},31497:(e,t,r)=>{"use strict";r.d(t,{A:()=>T});var n=r(69670),i=r(54260),o=r(39643),a=r(85652);function s(e,t){for(var r=Math.abs(e).toString();r.length0?r:1-r;return s("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):s(r+1,2)},d:function(e,t){return s(e.getUTCDate(),t.length)},h:function(e,t){return s(e.getUTCHours()%12||12,t.length)},H:function(e,t){return s(e.getUTCHours(),t.length)},m:function(e,t){return s(e.getUTCMinutes(),t.length)},s:function(e,t){return s(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length;return s(Math.floor(e.getUTCMilliseconds()*Math.pow(10,r-3)),t.length)}};function u(e){(0,i.A)(1,arguments);var t=(0,n.A)(e),r=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((r<1?7:0)+r-1)),t.setUTCHours(0,0,0,0),t}function c(e){(0,i.A)(1,arguments);var t=(0,n.A)(e),r=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(r+1,0,4),o.setUTCHours(0,0,0,0);var a=u(o),s=new Date(0);s.setUTCFullYear(r,0,4),s.setUTCHours(0,0,0,0);var l=u(s);return t.getTime()>=a.getTime()?r+1:t.getTime()>=l.getTime()?r:r-1}var d=r(46321),h=r(92293);function p(e,t){(0,i.A)(1,arguments);var r=(0,n.A)(e,t),o=r.getUTCFullYear(),a=t||{},s=a.locale,l=s&&s.options&&s.options.firstWeekContainsDate,u=null==l?1:(0,h.A)(l),c=null==a.firstWeekContainsDate?u:(0,h.A)(a.firstWeekContainsDate);if(!(c>=1&&c<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(o+1,0,c),p.setUTCHours(0,0,0,0);var f=(0,d.A)(p,t),m=new Date(0);m.setUTCFullYear(o,0,c),m.setUTCHours(0,0,0,0);var g=(0,d.A)(m,t);return r.getTime()>=f.getTime()?o+1:r.getTime()>=g.getTime()?o:o-1}var f={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function m(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+(t||"")+s(o,2)}function g(e,t){return e%60==0?(e>0?"-":"+")+s(Math.abs(e)/60,2):v(e,t)}function v(e,t){var r=Math.abs(e);return(e>0?"-":"+")+s(Math.floor(r/60),2)+(t||"")+s(r%60,2)}let y={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear();return r.ordinalNumber(n>0?n:1-n,{unit:"year"})}return l.y(e,t)},Y:function(e,t,r,n){var i=p(e,n),o=i>0?i:1-i;return"YY"===t?s(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(e,t){return s(c(e),t.length)},u:function(e,t){return s(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return s(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return s(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return l.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return s(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){var a=function(e,t){(0,i.A)(1,arguments);var r=(0,n.A)(e);return Math.round(((0,d.A)(r,t).getTime()-(function(e,t){(0,i.A)(1,arguments);var r=t||{},n=r.locale,o=n&&n.options&&n.options.firstWeekContainsDate,a=null==o?1:(0,h.A)(o),s=null==r.firstWeekContainsDate?a:(0,h.A)(r.firstWeekContainsDate),l=p(e,t),u=new Date(0);return u.setUTCFullYear(l,0,s),u.setUTCHours(0,0,0,0),(0,d.A)(u,t)})(r,t).getTime())/6048e5)+1}(e,o);return"wo"===t?r.ordinalNumber(a,{unit:"week"}):s(a,t.length)},I:function(e,t,r){var o=function(e){(0,i.A)(1,arguments);var t=(0,n.A)(e);return Math.round((u(t).getTime()-(function(e){(0,i.A)(1,arguments);var t=c(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),u(r)})(t).getTime())/6048e5)+1}(e);return"Io"===t?r.ordinalNumber(o,{unit:"week"}):s(o,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):l.d(e,t)},D:function(e,t,r){var o=function(e){(0,i.A)(1,arguments);var t=(0,n.A)(e),r=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((r-t.getTime())/864e5)+1}(e);return"Do"===t?r.ordinalNumber(o,{unit:"dayOfYear"}):s(o,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return s(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,i=e.getUTCHours();switch(n=12===i?f.noon:0===i?f.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,i=e.getUTCHours();switch(n=i>=17?f.evening:i>=12?f.afternoon:i>=4?f.morning:f.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return l.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):l.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):l.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):l.s(e,t)},S:function(e,t){return l.S(e,t)},X:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return g(i);case"XXXX":case"XX":return v(i);default:return v(i,":")}},x:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return g(i);case"xxxx":case"xx":return v(i);default:return v(i,":")}},O:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(i,":");default:return"GMT"+v(i,":")}},z:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(i,":");default:return"GMT"+v(i,":")}},t:function(e,t,r,n){return s(Math.floor((n._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,r,n){return s((n._originalDate||e).getTime(),t.length)}};function b(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function w(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}let k={p:w,P:function(e,t){var r,n=e.match(/(P+)(p+)?/),i=n[1],o=n[2];if(!o)return b(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",b(i,t)).replace("{{time}}",w(o,t))}};var x=r(2809),_=["D","DD"],S=["YY","YYYY"];function E(e,t,r){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}var C=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,A=/^'([^]*?)'?$/,j=/''/g,O=/[a-zA-Z]/;function T(e,t,r){(0,i.A)(2,arguments);var s=String(t),l=r||{},u=l.locale||o.A,c=u.options&&u.options.firstWeekContainsDate,d=null==c?1:(0,h.A)(c),p=null==l.firstWeekContainsDate?d:(0,h.A)(l.firstWeekContainsDate);if(!(p>=1&&p<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=u.options&&u.options.weekStartsOn,m=null==f?0:(0,h.A)(f),g=null==l.weekStartsOn?m:(0,h.A)(l.weekStartsOn);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!u.localize)throw RangeError("locale must contain localize property");if(!u.formatLong)throw RangeError("locale must contain formatLong property");var v=(0,n.A)(e);if(!function(e){return(0,i.A)(1,arguments),!isNaN((0,n.A)(e))}(v))throw RangeError("Invalid time value");var b=(0,x.A)(v),w=(0,a.A)(v,b),T={firstWeekContainsDate:p,weekStartsOn:g,locale:u,_originalDate:v};return s.match(D).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,k[t])(e,u.formatLong,T):e}).join("").match(C).map(function(r){if("''"===r)return"'";var n=r[0];if("'"===n)return r.match(A)[1].replace(j,"'");var i=y[n];if(i)return l.useAdditionalWeekYearTokens||-1===S.indexOf(r)||E(r,t,e),l.useAdditionalDayOfYearTokens||-1===_.indexOf(r)||E(r,t,e),i(w,r,u.localize,T);if(n.match(O))throw RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return r}).join("")}},77470:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(5291),i=r(69670),o=r(54260),a=r(39643),s=r(36386),l=r(2809);function u(e,t){var r,u,c,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.A)(2,arguments);var h=d.locale||a.A;if(!h.formatDistance)throw RangeError("locale must contain formatDistance property");var p=(0,n.A)(e,t);if(isNaN(p))throw RangeError("Invalid time value");var f=(0,s.A)(d);f.addSuffix=!!d.addSuffix,f.comparison=p,p>0?(r=(0,i.A)(t),u=(0,i.A)(e)):(r=(0,i.A)(e),u=(0,i.A)(t));var m=function(e,t){(0,o.A)(2,arguments);var r=function(e,t){(0,o.A)(2,arguments);var r=(0,i.A)(e),n=(0,i.A)(t);return r.getTime()-n.getTime()}(e,t)/1e3;return r>0?Math.floor(r):Math.ceil(r)}(u,r),g=Math.round((m-((0,l.A)(u)-(0,l.A)(r))/1e3)/60);if(g<2){if(d.includeSeconds){if(m<5)return h.formatDistance("lessThanXSeconds",5,f);if(m<10)return h.formatDistance("lessThanXSeconds",10,f);if(m<20)return h.formatDistance("lessThanXSeconds",20,f);if(m<40)return h.formatDistance("halfAMinute",null,f);else if(m<60)return h.formatDistance("lessThanXMinutes",1,f);else return h.formatDistance("xMinutes",1,f)}return 0===g?h.formatDistance("lessThanXMinutes",1,f):h.formatDistance("xMinutes",g,f)}if(g<45)return h.formatDistance("xMinutes",g,f);if(g<90)return h.formatDistance("aboutXHours",1,f);if(g<1440){var v=Math.round(g/60);return h.formatDistance("aboutXHours",v,f)}if(g<2520)return h.formatDistance("xDays",1,f);if(g<43200){var y=Math.round(g/1440);return h.formatDistance("xDays",y,f)}if(g<86400)return c=Math.round(g/43200),h.formatDistance("aboutXMonths",c,f);if((c=function(e,t){(0,o.A)(2,arguments);var r,a=(0,i.A)(e),s=(0,i.A)(t),l=(0,n.A)(a,s),u=Math.abs(function(e,t){(0,o.A)(2,arguments);var r=(0,i.A)(e),n=(0,i.A)(t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(a,s));if(u<1)r=0;else{1===a.getMonth()&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-l*u);var c=(0,n.A)(a,s)===-l;(function(e){(0,o.A)(1,arguments);var t=(0,i.A)(e);return(function(e){(0,o.A)(1,arguments);var t=(0,i.A)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,o.A)(1,arguments);var t=(0,i.A)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,i.A)(e))&&1===u&&1===(0,n.A)(e,s)&&(c=!1),r=l*(u-Number(c))}return 0===r?0:r}(u,r))<12){var b=Math.round(g/43200);return h.formatDistance("xMonths",b,f)}var w=c%12,k=Math.floor(c/12);return w<3?h.formatDistance("aboutXYears",k,f):w<9?h.formatDistance("overXYears",k,f):h.formatDistance("almostXYears",k+1,f)}},90694:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(2809),i=r(5291),o=r(69670),a=r(36386),s=r(39643),l=r(54260);function u(e,t){return(0,l.A)(1,arguments),function(e,t){var r,u,c,d,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,l.A)(2,arguments);var p=h.locale||s.A;if(!p.formatDistance)throw RangeError("locale must contain localize.formatDistance property");var f=(0,i.A)(e,t);if(isNaN(f))throw RangeError("Invalid time value");var m=(0,a.A)(h);m.addSuffix=!!h.addSuffix,m.comparison=f,f>0?(r=(0,o.A)(t),u=(0,o.A)(e)):(r=(0,o.A)(e),u=(0,o.A)(t));var g=null==h.roundingMethod?"round":String(h.roundingMethod);if("floor"===g)c=Math.floor;else if("ceil"===g)c=Math.ceil;else if("round"===g)c=Math.round;else throw RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var v=u.getTime()-r.getTime(),y=v/6e4,b=(v-((0,n.A)(u)-(0,n.A)(r)))/6e4;if("second"===(d=null==h.unit?y<1?"second":y<60?"minute":y<1440?"hour":b<43200?"day":b<525600?"month":"year":String(h.unit))){var w=c(v/1e3);return p.formatDistance("xSeconds",w,m)}if("minute"===d){var k=c(y);return p.formatDistance("xMinutes",k,m)}if("hour"===d){var x=c(y/60);return p.formatDistance("xHours",x,m)}if("day"===d){var _=c(b/1440);return p.formatDistance("xDays",_,m)}if("month"===d){var S=c(b/43200);return 12===S&&"month"!==h.unit?p.formatDistance("xYears",1,m):p.formatDistance("xMonths",S,m)}if("year"===d){var E=c(b/525600);return p.formatDistance("xYears",E,m)}throw RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}(e,Date.now(),t)}},90401:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(2809),i=r(37314),o=r(54260),a=r(31497),s=r(39643),l=r(85652),u=r(69670);function c(e,t,r){(0,o.A)(2,arguments);var c,d=(0,u.A)(e),h=(0,u.A)(t),p=r||{},f=p.locale,m=void 0===f?s.A:f,g=p.weekStartsOn,v=void 0===g?0:g;if(!m.localize)throw RangeError("locale must contain localize property");if(!m.formatLong)throw RangeError("locale must contain formatLong property");if(!m.formatRelative)throw RangeError("locale must contain formatRelative property");var y=function(e,t){(0,o.A)(2,arguments);var r=(0,i.A)(e),a=(0,i.A)(t);return Math.round((r.getTime()-(0,n.A)(r)-(a.getTime()-(0,n.A)(a)))/864e5)}(d,h);if(isNaN(y))throw RangeError("Invalid time value");c=y<-6?"other":y<-1?"lastWeek":y<0?"yesterday":y<1?"today":y<2?"tomorrow":y<7?"nextWeek":"other";var b=(0,l.A)(d,(0,n.A)(d)),w=(0,l.A)(h,(0,n.A)(h)),k=m.formatRelative(c,b,w,{locale:m,weekStartsOn:v});return(0,a.A)(d,k,{locale:m,weekStartsOn:v})}},64857:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(37314),i=r(54260);function o(e,t){(0,i.A)(2,arguments);var r=(0,n.A)(e),o=(0,n.A)(t);return r.getTime()===o.getTime()}},87200:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(64857),i=r(54260);function o(e){return(0,i.A)(1,arguments),(0,n.A)(e,Date.now())}},19141:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(64857),i=r(81501),o=r(54260);function a(e){return(0,o.A)(1,arguments),(0,n.A)(e,(0,i.A)(Date.now(),1))}},77248:(e,t,r)=>{"use strict";function n(e){return function(t){var r=t||{},n=r.width?String(r.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}r.d(t,{A:()=>n})},29738:(e,t,r)=>{"use strict";function n(e){return function(t,r){var n,i=r||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;n=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;n=e.values[l]||e.values[s]}return n[e.argumentCallback?e.argumentCallback(t):t]}}r.d(t,{A:()=>n})},17254:(e,t,r)=>{"use strict";function n(e){return function(t,r){var n,i=String(t),o=r||{},a=o.width,s=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],l=i.match(s);if(!l)return null;var u=l[0],c=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth];return n="[object Array]"===Object.prototype.toString.call(c)?function(e,t){for(var r=0;rn})},20504:(e,t,r)=>{"use strict";function n(e){return function(t,r){var n=String(t),i=r||{},o=n.match(e.matchPattern);if(!o)return null;var a=o[0],s=n.match(e.parsePattern);if(!s)return null;var l=e.valueCallback?e.valueCallback(s[0]):s[0];return{value:l=i.valueCallback?i.valueCallback(l):l,rest:n.slice(a.length)}}}r.d(t,{A:()=>n})},49423:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},i=r(77248),o={date:(0,i.A)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},s=r(29738),l={ordinalNumber:function(e){return String(e)},era:(0,s.A)({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:(0,s.A)({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.A)({values:{narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","مايو","يونـ","يولـ","أغسـ","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:(0,s.A)({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:(0,s.A)({values:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},defaultFormattingWidth:"wide"})},u=r(20504),c=r(17254);let d={code:"ar-SA",formatDistance:function(e,t,r){var i;return(r=r||{},i="string"==typeof n[e]?n[e]:1===t?n[e].one:2===t?n[e].two:t<=10?n[e].threeToTen.replace("{{count}}",t):n[e].other.replace("{{count}}",t),r.addSuffix)?r.comparison>0?"في خلال "+i:"منذ "+i:i},formatLong:o,formatRelative:function(e,t,r,n){return a[e]},localize:l,match:{ordinalNumber:(0,u.A)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.A)({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:(0,c.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.A)({matchPatterns:{narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^ف/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^أغ/i,/^س/i,/^أك/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:(0,c.A)({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:(0,c.A)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},39643:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=r(77248),o={date:(0,i.A)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},s=r(29738),l={ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:(0,s.A)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,s.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.A)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,s.A)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,s.A)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},u=r(20504),c=r(17254);let d={code:"en-US",formatDistance:function(e,t,r){var i;return(r=r||{},i="string"==typeof n[e]?n[e]:1===t?n[e].one:n[e].other.replace("{{count}}",t),r.addSuffix)?r.comparison>0?"in "+i:i+" ago":i},formatLong:o,formatRelative:function(e,t,r,n){return a[e]},localize:l,match:{ordinalNumber:(0,u.A)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.A)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,c.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,c.A)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,c.A)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},16753:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 d\xeda",other:"{{count}} d\xedas"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 a\xf1o",other:"alrededor de {{count}} a\xf1os"},xYears:{one:"1 a\xf1o",other:"{{count}} a\xf1os"},overXYears:{one:"m\xe1s de 1 a\xf1o",other:"m\xe1s de {{count}} a\xf1os"},almostXYears:{one:"casi 1 a\xf1o",other:"casi {{count}} a\xf1os"}},i=r(77248),o={date:(0,i.A)({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'el' eeee 'pasado a la' LT",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'ma\xf1ana a la' p",nextWeek:"eeee 'a la' p",other:"P"},s={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'ma\xf1ana a las' p",nextWeek:"eeee 'a las' p",other:"P"},l=r(29738),u={ordinalNumber:function(e){return Number(e)+"\xba"},era:(0,l.A)({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despu\xe9s de cristo"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,l.A)({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sa"],abbreviated:["dom","lun","mar","mi\xe9","jue","vie","s\xe1b"],wide:["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},c=r(20504),d=r(17254);let h={code:"es",formatDistance:function(e,t,r){var i;return(r=r||{},i="string"==typeof n[e]?n[e]:1===t?n[e].one:n[e].other.replace("{{count}}",t),r.addSuffix)?r.comparison>0?"en "+i:"hace "+i:i},formatLong:o,formatRelative:function(e,t,r,n){return 1!==t.getUTCHours()?s[e]:a[e]},localize:u,match:{ordinalNumber:(0,c.A)({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,d.A)({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:(0,d.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,d.A)({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:(0,d.A)({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|sa)/i,abbreviated:/^(dom|lun|mar|mie|jue|vie|sab)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,d.A)({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}}},59524:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n={lessThanXSeconds:{one:"کمتر از یک ثانیه",other:"کمتر از {{count}} ثانیه"},xSeconds:{one:"1 ثانیه",other:"{{count}} ثانیه"},halfAMinute:"نیم دقیقه",lessThanXMinutes:{one:"کمتر از یک دقیقه",other:"کمتر از {{count}} دقیقه"},xMinutes:{one:"1 دقیقه",other:"{{count}} دقیقه"},aboutXHours:{one:"حدود 1 ساعت",other:"حدود {{count}} ساعت"},xHours:{one:"1 ساعت",other:"{{count}} ساعت"},xDays:{one:"1 روز",other:"{{count}} روز"},aboutXWeeks:{one:"حدود 1 هفته",other:"حدود {{count}} هفته"},xWeeks:{one:"1 هفته",other:"{{count}} هفته"},aboutXMonths:{one:"حدود 1 ماه",other:"حدود {{count}} ماه"},xMonths:{one:"1 ماه",other:"{{count}} ماه"},aboutXYears:{one:"حدود 1 سال",other:"حدود {{count}} سال"},xYears:{one:"1 سال",other:"{{count}} سال"},overXYears:{one:"بیشتر از 1 سال",other:"بیشتر از {{count}} سال"},almostXYears:{one:"نزدیک 1 سال",other:"نزدیک {{count}} سال"}},i=r(77248),o={date:(0,i.A)({formats:{full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} 'در' {{time}}",long:"{{date}} 'در' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"eeee 'گذشته در' p",yesterday:"'دیروز در' p",today:"'امروز در' p",tomorrow:"'فردا در' p",nextWeek:"eeee 'در' p",other:"P"},s=r(29738),l={ordinalNumber:function(e){return String(e)},era:(0,s.A)({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل از میلاد","بعد از میلاد"]},defaultWidth:"wide"}),quarter:(0,s.A)({values:{narrow:["1","2","3","4"],abbreviated:["س‌م1","س‌م2","س‌م3","س‌م4"],wide:["سه‌ماهه 1","سه‌ماهه 2","سه‌ماهه 3","سه‌ماهه 4"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.A)({values:{narrow:["ژ","ف","م","آ","م","ج","ج","آ","س","ا","ن","د"],abbreviated:["ژانـ","فور","مارس","آپر","می","جون","جولـ","آگو","سپتـ","اکتـ","نوامـ","دسامـ"],wide:["ژانویه","فوریه","مارس","آپریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},defaultWidth:"wide"}),day:(0,s.A)({values:{narrow:["ی","د","س","چ","پ","ج","ش"],short:["1ش","2ش","3ش","4ش","5ش","ج","ش"],abbreviated:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],wide:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]},defaultWidth:"wide"}),dayPeriod:(0,s.A)({values:{narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},defaultFormattingWidth:"wide"})},u=r(20504),c=r(17254);let d={code:"fa-IR",formatDistance:function(e,t,r){var i;return(r=r||{},i="string"==typeof n[e]?n[e]:1===t?n[e].one:n[e].other.replace("{{count}}",t),r.addSuffix)?r.comparison>0?"در "+i:i+" قبل":i},formatLong:o,formatRelative:function(e,t,r,n){return a[e]},localize:l,match:{ordinalNumber:(0,u.A)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.A)({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:(0,c.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.A)({matchPatterns:{narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:(0,c.A)({matchPatterns:{narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},defaultParseWidth:"any"}),dayPeriod:(0,c.A)({matchPatterns:{narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},defaultParseWidth:"any"})},options:{weekStartsOn:6,firstWeekContainsDate:1}}},38345:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},i=r(77248),o={date:(0,i.A)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} '\xe0' {{time}}",long:"{{date}} '\xe0' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"eeee 'dernier \xe0' p",yesterday:"'hier \xe0' p",today:"'aujourd’hui \xe0' p",tomorrow:"'demain \xe0' p'",nextWeek:"eeee 'prochain \xe0' p",other:"P"},s=r(29738),l={ordinalNumber:function(e,t){var r,n=Number(e),i=String((t||{}).unit);return 0===n?n:(r="year"===i||"hour"===i||"week"===i?1===n?"\xe8re":"\xe8me":1===n?"er":"\xe8me",n+r)},era:(0,s.A)({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]},defaultWidth:"wide"}),quarter:(0,s.A)({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2\xe8me trim.","3\xe8me trim.","4\xe8me trim."],wide:["1er trimestre","2\xe8me trimestre","3\xe8me trimestre","4\xe8me trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.A)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],wide:["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]},defaultWidth:"wide"}),day:(0,s.A)({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:(0,s.A)({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"apr\xe8s-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’apr\xe8s-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},u=r(20504),c=r(17254);let d={code:"fr",formatDistance:function(e,t,r){var i;return(r=r||{},i="string"==typeof n[e]?n[e]:1===t?n[e].one:n[e].other.replace("{{count}}",t),r.addSuffix)?r.comparison>0?"dans "+i:"il y a "+i:i},formatLong:o,formatRelative:function(e,t,r,n){return a[e]},localize:l,match:{ordinalNumber:(0,u.A)({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.A)({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:(0,c.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,c.A)({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,c.A)({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},96950:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},i=r(77248),o={date:(0,i.A)({formats:{full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},s=r(29738),l={ordinalNumber:function(e,t){var r=Number(e),n=String((t||{}).unit);return"date"===n?r+"日":"year"===n?r+"年":r},era:(0,s.A)({values:{narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},defaultWidth:"wide"}),quarter:(0,s.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.A)({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},defaultWidth:"wide"}),day:(0,s.A)({values:{narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},defaultWidth:"wide"}),dayPeriod:(0,s.A)({values:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultWidth:"wide",formattingValues:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultFormattingWidth:"wide"})},u=r(20504),c=r(17254);let d={code:"ja",formatDistance:function(e,t,r){var i;return(r=r||{},i="string"==typeof n[e]?n[e]:1===t?r.addSuffix&&n[e].oneWithSuffix?n[e].oneWithSuffix:n[e].one:r.addSuffix&&n[e].otherWithSuffix?n[e].otherWithSuffix.replace("{{count}}",t):n[e].other.replace("{{count}}",t),r.addSuffix)?r.comparison>0?i+"後":i+"前":i},formatLong:o,formatRelative:function(e,t,r,n){return a[e]},localize:l,match:{ordinalNumber:(0,u.A)({matchPattern:/^第?\d+(日)?(年)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.A)({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:"any"}),quarter:(0,c.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.A)({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:(0,c.A)({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:"wide",parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:"any"}),dayPeriod:(0,c.A)({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},41103:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},i=r(77248),o={date:(0,i.A)({formats:{full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},s=r(29738),l={ordinalNumber:function(e,t){var r=Number(e);switch(String((t||{}).unit)){case"minute":case"second":return r;case"date":return r+"일";default:return r+"번째"}},era:(0,s.A)({values:{narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},defaultWidth:"wide"}),quarter:(0,s.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.A)({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},defaultWidth:"wide"}),day:(0,s.A)({values:{narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},defaultWidth:"wide"}),dayPeriod:(0,s.A)({values:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultWidth:"wide",formattingValues:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultFormattingWidth:"wide"})},u=r(20504),c=r(17254);let d={code:"ko",formatDistance:function(e,t,r){var i;return(r=r||{},i="string"==typeof n[e]?n[e]:1===t?n[e].one:n[e].other.replace("{{count}}",t),r.addSuffix)?r.comparison>0?i+" 후":i+" 전":i},formatLong:o,formatRelative:function(e,t,r,n){return a[e]},localize:l,match:{ordinalNumber:(0,u.A)({matchPattern:/^(\d+)(일|번째)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.A)({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/i]},defaultParseWidth:"any"}),quarter:(0,c.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.A)({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:(0,c.A)({matchPatterns:{narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},defaultMatchWidth:"wide",parsePatterns:{any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},defaultParseWidth:"any"}),dayPeriod:(0,c.A)({matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},8808:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 m\xeas",other:"cerca de {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},i=r(77248),o={date:(0,i.A)({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:function(e,t,r){var n=e.getUTCDay();return"'"+(0===n||6===n?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"},s=r(29738),l={ordinalNumber:function(e,t){var r=Number(e),n=String((t||{}).unit);return"week"===n||"isoWeek"===n?r+"\xaa":r+"\xba"},era:(0,s.A)({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:(0,s.A)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.A)({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:(0,s.A)({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","ter\xe7a","quarta","quinta","sexta","s\xe1bado"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:(0,s.A)({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},u=r(17254);let c={code:"pt-BR",formatDistance:function(e,t,r){var i;return(r=r||{},i="string"==typeof n[e]?n[e]:1===t?n[e].one:n[e].other.replace("{{count}}",t),r.addSuffix)?r.comparison>0?"em "+i:"h\xe1 "+i:i},formatLong:o,formatRelative:function(e,t,r,n){var i=a[e];return"function"==typeof i?i(t,r,n):i},localize:l,match:{ordinalNumber:(0,r(20504).A)({matchPattern:/^(\d+)[ºªo]?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,u.A)({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:(0,u.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,u.A)({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:(0,u.A)({matchPatterns:{narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},defaultParseWidth:"any"}),dayPeriod:(0,u.A)({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},18176:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},i=r(77248),o={date:(0,i.A)({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a=r(46321),s=r(54260);function l(e,t,r,n){return!function(e,t,r){(0,s.A)(2,arguments);var n=(0,a.A)(e,r),i=(0,a.A)(t,r);return n.getTime()===i.getTime()}(e,t,r)?e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n:n}var u={lastWeek:l,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:l,other:"PP p"},c=r(29738),d={ordinalNumber:function(e,t){var r=Number(e);switch(String((t||{}).unit)){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},era:(0,c.A)({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:(0,c.A)({values:{narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻钟","第二刻钟","第三刻钟","第四刻钟"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,c.A)({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:(0,c.A)({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:(0,c.A)({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultFormattingWidth:"wide"})},h=r(20504),p=r(17254);let f={code:"zh-CN",formatDistance:function(e,t,r){var i;return(r=r||{},i="string"==typeof n[e]?n[e]:1===t?n[e].one:n[e].other.replace("{{count}}",t),r.addSuffix)?r.comparison>0?i+"内":i+"前":i},formatLong:o,formatRelative:function(e,t,r,n){var i=u[e];return"function"==typeof i?i(t,r,n,"eeee p"):i},localize:d,match:{ordinalNumber:(0,h.A)({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,p.A)({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:(0,p.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,p.A)({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:(0,p.A)({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:(0,p.A)({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},14905:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},i=r(77248),o={date:(0,i.A)({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:(0,i.A)({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:(0,i.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},s=r(29738),l={ordinalNumber:function(e,t){var r=Number(e);switch(String((t||{}).unit)){case"date":return r.toString()+"日";case"hour":return r.toString()+"時";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},era:(0,s.A)({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:(0,s.A)({values:{narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻鐘","第二刻鐘","第三刻鐘","第四刻鐘"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.A)({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:(0,s.A)({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:(0,s.A)({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},defaultFormattingWidth:"wide"})},u=r(20504),c=r(17254);let d={code:"zh-TW",formatDistance:function(e,t,r){var i;return(r=r||{},i="string"==typeof n[e]?n[e]:1===t?n[e].one:n[e].other.replace("{{count}}",t),r.addSuffix)?r.comparison>0?i+"內":i+"前":i},formatLong:o,formatRelative:function(e,t,r,n){return a[e]},localize:l,match:{ordinalNumber:(0,u.A)({matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.A)({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:(0,c.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.A)({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:(0,c.A)({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:(0,c.A)({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},77563:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(92293),i=r(54260),o={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},a=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,s=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function u(e,t){(0,i.A)(1,arguments);var r,u,f=t||{},m=null==f.additionalDigits?2:(0,n.A)(f.additionalDigits);if(2!==m&&1!==m&&0!==m)throw RangeError("additionalDigits must be 0, 1 or 2");if(!("string"==typeof e||"[object String]"===Object.prototype.toString.call(e)))return new Date(NaN);var g=function(e){var t,r={},n=e.split(o.dateTimeDelimiter);if(n.length>2)return r;if(/:/.test(n[0])?(r.date=null,t=n[0]):(r.date=n[0],t=n[1],o.timeZoneDelimiter.test(r.date)&&(r.date=e.split(o.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length))),t){var i=o.timezone.exec(t);i?(r.time=t.replace(i[1],""),r.timezone=i[1]):r.time=t}return r}(e);if(g.date){var v=function(e,t){var r=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:null};var i=n[1]&&parseInt(n[1]),o=n[2]&&parseInt(n[2]);return{year:null==o?i:100*o,restDateString:e.slice((n[1]||n[2]).length)}}(g.date,m);r=function(e,t){if(null===t)return null;var r,n,i=e.match(a);if(!i)return null;var o=!!i[4],s=c(i[1]),l=c(i[2])-1,u=c(i[3]),d=c(i[4]),f=c(i[5])-1;if(o)return d>=1&&d<=53&&f>=0&&f<=6?((r=new Date(0)).setUTCFullYear(t,0,4),n=r.getUTCDay()||7,r.setUTCDate(r.getUTCDate()+((d-1)*7+f+1-n)),r):new Date(NaN);var m=new Date(0);return l>=0&&l<=11&&u>=1&&u<=(h[l]||(p(t)?29:28))&&s>=1&&s<=(p(t)?366:365)?(m.setUTCFullYear(t,l,Math.max(s,u)),m):new Date(NaN)}(v.restDateString,v.year)}if(isNaN(r)||!r)return new Date(NaN);var y=r.getTime(),b=0;if(g.time&&(isNaN(b=function(e){var t=e.match(s);if(!t)return null;var r=d(t[1]),n=d(t[2]),i=d(t[3]);return(24===r?0===n&&0===i:i>=0&&i<60&&n>=0&&n<60&&r>=0&&r<25)?36e5*r+6e4*n+1e3*i:NaN}(g.time))||null===b))return new Date(NaN);if(g.timezone){if(isNaN(u=function(e){if("Z"===e)return 0;var t=e.match(l);if(!t)return 0;var r="+"===t[1]?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return i>=0&&i<=59?r*(36e5*n+6e4*i):NaN}(g.timezone)))return new Date(NaN)}else{var w=new Date(y+b),k=new Date(0);return k.setFullYear(w.getUTCFullYear(),w.getUTCMonth(),w.getUTCDate()),k.setHours(w.getUTCHours(),w.getUTCMinutes(),w.getUTCSeconds(),w.getUTCMilliseconds()),k}return new Date(y+b+u)}function c(e){return e?parseInt(e):1}function d(e){return e&&parseFloat(e.replace(",","."))||0}var h=[31,null,31,30,31,30,31,31,30,31,30,31];function p(e){return e%400==0||e%4==0&&e%100}},37314:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(69670),i=r(54260);function o(e){(0,i.A)(1,arguments);var t=(0,n.A)(e);return t.setHours(0,0,0,0),t}},81501:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(92293),i=r(69670),o=r(54260);function a(e,t){return(0,o.A)(2,arguments),function(e,t){(0,o.A)(2,arguments);var r=(0,i.A)(e),a=(0,n.A)(t);return isNaN(a)?new Date(NaN):(a&&r.setDate(r.getDate()+a),r)}(e,-(0,n.A)(t))}},85652:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(92293),i=r(69670),o=r(54260);function a(e,t){return(0,o.A)(2,arguments),function(e,t){return(0,o.A)(2,arguments),new Date((0,i.A)(e).getTime()+(0,n.A)(t))}(e,-(0,n.A)(t))}},69670:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(54260);function i(e){(0,n.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},95434:(e,t,r)=>{"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(714),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37957:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});let n=r(36004),i=r(61263),o=r(31085),a=i._(r(14041)),s=i._(r(43144)),l=n._(r(63996)),u=r(23656),c=r(4691),d=r(42226);r(55888);let h=r(714);function p(e){return"/"===e[0]?e.slice(1):e}let f="function"==typeof s.preload,m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},g=new Set,v="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",y=new Map([["default",function(e){var t;let{config:r,src:n,width:i,quality:o}=e,a=o||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)t>=i[0]*e),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof t||"fill"===r||"responsive"===r?{widths:i,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:"x"}}(t,o,i,s),d=u.length-1;return{sizes:s||"w"!==c?s:"100vw",srcSet:u.map((e,n)=>l({config:t,src:r,quality:a,width:e})+" "+("w"===c?e:n+1)+c).join(", "),src:l({config:t,src:r,quality:a,width:u[d]})}}function k(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}function x(e){var t;let r=(null==(t=e.config)?void 0:t.loader)||"default",n=y.get(r);if(n)return n(e);throw Error('Unknown "loader" found in "next.config.js". Expected: '+u.VALID_LOADERS.join(", ")+". Received: "+r)}function _(e,t,r,n,i,o){e&&e.src!==v&&e["data-loaded-src"]!==t&&(e["data-loaded-src"]=t,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentNode&&(g.add(t),"blur"===n&&o(!0),null==i?void 0:i.current)){let{naturalWidth:t,naturalHeight:r}=e;i.current({naturalWidth:t,naturalHeight:r})}}))}let S=e=>{let{imgAttributes:t,heightInt:r,widthInt:n,qualityInt:i,layout:s,className:l,imgStyle:u,blurStyle:c,isLazy:d,placeholder:h,loading:p,srcString:f,config:m,unoptimized:g,loader:v,onLoadingCompleteRef:y,setBlurComplete:b,setIntersection:k,onLoad:x,onError:S,isVisible:E,noscriptSizes:C,...D}=e;return p=d?"lazy":p,(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("img",{...D,...t,decoding:"async","data-nimg":s,className:l,style:{...u,...c},ref:(0,a.useCallback)(e=>{k(e),(null==e?void 0:e.complete)&&_(e,f,s,h,y,b)},[k,f,s,h,y,b]),onLoad:e=>{_(e.currentTarget,f,s,h,y,b),x&&x(e)},onError:e=>{"blur"===h&&b(!0),S&&S(e)}}),(d||"blur"===h)&&(0,o.jsx)("noscript",{children:(0,o.jsx)("img",{...D,loading:p,decoding:"async","data-nimg":s,style:u,className:l,...w({config:m,src:f,unoptimized:g,layout:s,width:n,quality:i,sizes:C,loader:v})})})]})};function E(e){var t;let r,{src:n,sizes:i,unoptimized:s=!1,priority:h=!1,loading:p,lazyRoot:y=null,lazyBoundary:_,className:E,quality:C,width:D,height:A,style:j,objectFit:O,objectPosition:T,onLoadingComplete:P,placeholder:R="empty",blurDataURL:M,...N}=e,F=(0,a.useContext)(d.ImageConfigContext),I=(0,a.useMemo)(()=>{var e;let t=m||F||u.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),n=t.deviceSizes.sort((e,t)=>e-t),i=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:n,qualities:i}},[F]),L=i?"responsive":"intrinsic";"layout"in N&&(N.layout&&(L=N.layout),delete N.layout);let B=x;if("loader"in N){if(N.loader){let e=N.loader;B=t=>{let{config:r,...n}=t;return e(n)}}delete N.loader}let z="";if("object"==typeof(t=n)&&(b(t)||void 0!==t.src)){let e=b(n)?n.default:n;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(M=M||e.blurDataURL,z=e.src,(!L||"fill"!==L)&&(A=A||e.height,D=D||e.width,!e.height||!e.width))throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e))}let U=!h&&("lazy"===p||void 0===p);((n="string"==typeof n?n:z).startsWith("data:")||n.startsWith("blob:"))&&(s=!0,U=!1),g.has(n)&&(U=!1),I.unoptimized&&(s=!0);let[q,H]=(0,a.useState)(!1),[V,$,W]=(0,c.useIntersection)({rootRef:y,rootMargin:_||"200px",disabled:!U}),Y=!U||$,G={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},K={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},X=!1,J=k(D),Q=k(A),Z=k(C),ee=Object.assign({},j,{position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:O,objectPosition:T}),et="blur"!==R||q?{}:{backgroundSize:O||"cover",backgroundPosition:T||"0% 0%",filter:"blur(20px)",backgroundImage:'url("'+M+'")'};if("fill"===L)G.display="block",G.position="absolute",G.top=0,G.left=0,G.bottom=0,G.right=0;else if(void 0!==J&&void 0!==Q){let e=Q/J,t=isNaN(e)?"100%":""+100*e+"%";"responsive"===L?(G.display="block",G.position="relative",X=!0,K.paddingTop=t):"intrinsic"===L?(G.display="inline-block",G.position="relative",G.maxWidth="100%",X=!0,K.maxWidth="100%",r="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27"+J+"%27%20height=%27"+Q+"%27/%3e"):"fixed"===L&&(G.display="inline-block",G.position="relative",G.width=J,G.height=Q)}let er={src:v,srcSet:void 0,sizes:void 0};Y&&(er=w({config:I,src:n,unoptimized:s,layout:L,width:J,quality:Z,sizes:i,loader:B}));let en=n,ei=f?void 0:{imageSrcSet:er.srcSet,imageSizes:er.sizes,crossOrigin:N.crossOrigin,referrerPolicy:N.referrerPolicy},eo=a.default.useLayoutEffect,ea=(0,a.useRef)(P),es=(0,a.useRef)(n);(0,a.useEffect)(()=>{ea.current=P},[P]),eo(()=>{es.current!==n&&(W(),es.current=n)},[W,n]);let el={isLazy:U,imgAttributes:er,heightInt:Q,widthInt:J,qualityInt:Z,layout:L,className:E,imgStyle:ee,blurStyle:et,loading:p,config:I,unoptimized:s,placeholder:R,loader:B,srcString:en,onLoadingCompleteRef:ea,setBlurComplete:H,setIntersection:V,isVisible:Y,noscriptSizes:i,...N};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("span",{style:G,children:[X?(0,o.jsx)("span",{style:K,children:r?(0,o.jsx)("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:r}):null}):null,(0,o.jsx)(S,{...el})]}),!f&&h?(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",as:"image",href:er.srcSet?void 0:er.src,...ei},"__nimg-"+er.src+er.srcSet+er.sizes)}):null]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76104:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let n=r(36004),i=r(31085),o=n._(r(14041)),a=r(14506),s=r(40946),l=r(89387),u=r(6781),c=r(55788),d=r(40107),h=r(4691),p=r(95434),f=r(61487),m=r(37750),g=new Set;function v(e,t,r,n){if((0,s.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}e.prefetch(t,r,n).catch(e=>{})}}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let r,n;let{href:l,as:g,children:b,prefetch:w=null,passHref:k,replace:x,shallow:_,scroll:S,locale:E,onClick:C,onMouseEnter:D,onTouchStart:A,legacyBehavior:j=!1,...O}=e;r=b,j&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let T=o.default.useContext(d.RouterContext),P=!1!==w,{href:R,as:M}=o.default.useMemo(()=>{if(!T){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,a.resolveHref)(T,l,!0);return{href:e,as:g?(0,a.resolveHref)(T,g):t||e}},[T,l,g]),N=o.default.useRef(R),F=o.default.useRef(M);j&&(n=o.default.Children.only(r));let I=j?n&&"object"==typeof n&&n.ref:t,[L,B,z]=(0,h.useIntersection)({rootMargin:"200px"}),U=o.default.useCallback(e=>{(F.current!==M||N.current!==R)&&(z(),F.current=M,N.current=R),L(e)},[M,R,z,L]),q=(0,m.useMergedRef)(U,I);o.default.useEffect(()=>{T&&B&&P&&v(T,R,M,{locale:E})},[M,R,B,E,P,null==T?void 0:T.locale,T]);let H={ref:q,onClick(e){j||"function"!=typeof C||C(e),j&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),T&&!e.defaultPrevented&&function(e,t,r,n,i,o,a,l){let{nodeName:u}=e.currentTarget;"A"===u.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!(0,s.isLocalURL)(r))||(e.preventDefault(),(()=>{let e=null==a||a;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:o,locale:l,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})})())}(e,T,R,M,x,_,S,E)},onMouseEnter(e){j||"function"!=typeof D||D(e),j&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),T&&v(T,R,M,{locale:E,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){j||"function"!=typeof A||A(e),j&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),T&&v(T,R,M,{locale:E,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(M))H.href=M;else if(!j||k||"a"===n.type&&!("href"in n.props)){let e=void 0!==E?E:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,p.getDomainLocale)(M,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);H.href=t||(0,f.addBasePath)((0,c.addLocale)(M,e,null==T?void 0:T.defaultLocale))}return j?o.default.cloneElement(n,H):(0,i.jsx)("a",{...O,...H,children:r})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4691:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(14041),i=r(16792),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!o,[c,d]=(0,n.useState)(!1),h=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{h.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(u||c)return;let e=h.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},s.push(r),a.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,h.current]),[p,c,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37750:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(14041);function i(e,t){let r=(0,n.useRef)(()=>{}),i=(0,n.useRef)(()=>{});return(0,n.useMemo)(()=>e&&t?n=>{null===n?(r.current(),i.current()):(r.current=o(e,n),i.current=o(t,n))}:e||t,[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return s},noSSR:function(){return a}});let n=r(36004);r(31085),r(14041);let i=n._(r(3938));function o(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let r=i.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let s=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=s?s().then(o):Promise.resolve(o(()=>null))}):(delete n.webpack,delete n.modules,a(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54180:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(36004)._(r(14041)).default.createContext(null)},3938:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let n=r(36004)._(r(14041)),i=r(54180),o=[],a=[],s=!1;function l(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),o=null;function l(){if(!o){let t=new u(e,r);o={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return o.promise()}if(!s){let e=r.webpack?r.webpack():r.modules;e&&a.push(t=>{for(let r of e)if(t.includes(r))return l()})}function c(e,t){!function(){l();let e=n.default.useContext(i.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let a=n.default.useSyncExternalStore(o.subscribe,o.getCurrentValue,o.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:o.retry}),[]),n.default.useMemo(()=>{var t;return a.loading||a.error?n.default.createElement(r.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:o.retry}):a.loaded?n.default.createElement((t=a.loaded)&&t.default?t.default:t,e):null},[e,a])}return c.preload=()=>l(),c.displayName="LoadableComponent",n.default.forwardRef(c)}(l,e)}function d(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(o).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(s=!0,t());d(a,e).then(r,r)})),window.__NEXT_PRELOADREADY=c.preloadReady;let h=c},34648:(e,t,r)=>{"use strict";r.d(t,{k5:()=>l});var n=r(14041),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=n.createContext&&n.createContext(i),a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function l(e){return function(t){return n.createElement(u,a({attr:a({},e.attr)},t),function e(t){return t&&t.map(function(t,r){return n.createElement(t.tag,a({key:r},t.attr),e(t.child))})}(e.child))}}function u(e){var t=function(t){var r,i=e.attr,o=e.size,l=e.title,u=s(e,["attr","size","title"]),c=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,u,{className:r,style:a(a({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),l&&n.createElement("title",null,l),e.children)};return void 0!==o?n.createElement(o.Consumer,null,function(e){return t(e)}):t(i)}},68647:()=>{},24077:()=>{},85158:()=>{},7496:()=>{},18652:(e,t,r)=>{!function(){var t={452:function(e){"use strict";e.exports=r(33836)}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab="//";var o={};!function(){var e,t=(e=i(452))&&"object"==typeof e&&"default"in e?e.default:e,r=/https?|ftp|gopher|file/;function n(e){"string"==typeof e&&(e=v(e));var n,i,o,a,s,l,u,c,d,h=(i=(n=e).auth,o=n.hostname,a=n.protocol||"",s=n.pathname||"",l=n.hash||"",u=n.query||"",c=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",n.host?c=i+n.host:o&&(c=i+(~o.indexOf(":")?"["+o+"]":o),n.port&&(c+=":"+n.port)),u&&"object"==typeof u&&(u=t.encode(u)),d=n.search||u&&"?"+u||"",a&&":"!==a.substr(-1)&&(a+=":"),n.slashes||(!a||r.test(a))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),d&&"?"!==d[0]&&(d="?"+d),{protocol:a,host:c,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:d=d.replace("#","%23"),hash:l});return""+h.protocol+h.host+h.pathname+h.search+h.hash}var a="http://",s=a+"w.w",l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function c(e,t){var r="string"==typeof e?v(e):e;e="object"==typeof e?n(e):e;var i=v(t),o="";r.protocol&&!r.slashes&&(o=r.protocol,e=e.replace(r.protocol,""),o+="/"===t[0]||"/"===e[0]?"/":""),o&&i.protocol&&(o="",i.slashes||(o=i.protocol,t=t.replace(i.protocol,"")));var c=e.match(l);c&&!i.protocol&&(e=e.substr((o=c[1]+(c[2]||"")).length),/^\/\/[^/]/.test(t)&&(o=o.slice(0,-1)));var d=new URL(e,s+"/"),h=new URL(t,d).toString().replace(s,""),p=i.protocol||r.protocol;return p+=r.slashes||i.slashes?"//":"",!o&&p?h=h.replace(a,p):o&&(h=h.replace(a,"")),u.test(h)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==h.slice(-1)||(h=h.slice(0,-1)),o&&(h=o+("/"===h[0]?h.substr(1):h)),h}function d(){}d.prototype.parse=v,d.prototype.format=n,d.prototype.resolve=c,d.prototype.resolveObject=c;var h=/^https?|ftp|gopher|file/,p=/^(.*?)([#?].*)/,f=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,g=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function v(e,r,i){if(void 0===r&&(r=!1),void 0===i&&(i=!1),e&&"object"==typeof e&&e instanceof d)return e;var o=(e=e.trim()).match(p);e=o?o[1].replace(/\\/g,"/")+o[2]:e.replace(/\\/g,"/"),g.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(f),l=m.test(e),u="";a&&(h.test(a[1])||(u=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(l=!1,h.test(a[1])?(u=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(u=a[1],e="/"+a[3]));var c,v=(o?o[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),y=v&&v[1],b=new d,w="",k="";try{c=new URL(e)}catch(t){w=t,u||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(k="/",e=e.substr(1));try{c=new URL(e,s)}catch(e){return b.protocol=u,b.href=u,b}}b.slashes=l&&!k,b.host="w.w"===c.host?"":c.host,b.hostname="w.w"===c.hostname?"":c.hostname.replace(/(\[|\])/g,""),b.protocol=w?u||null:c.protocol,b.search=c.search.replace(/\\/g,"%5C"),b.hash=c.hash.replace(/\\/g,"%5C");var x=e.split("#");!b.search&&~x[0].indexOf("?")&&(b.search="?"),b.hash||""!==x[1]||(b.hash="#"),b.query=r?t.decode(c.search.substr(1)):b.search.substr(1),b.pathname=k+(a?c.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):c.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),w&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),u&&!h.test(u)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[c.username,c.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=c.port,y&&!b.host.endsWith(y)&&(b.host+=y,b.port=y.slice(1)),b.href=k?""+b.pathname+b.search+b.hash:n(b);var _=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach(function(e){~_.indexOf(e)||(b[e]=b[e]||null)}),b}o.parse=v,o.format=n,o.resolve=c,o.resolveObject=function(e,t){return v(c(e,t))},o.Url=d}(),e.exports=o}()},94981:e=>{!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var n={resolve:function(){for(var e,n,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?n=arguments[a]:(void 0===e&&(e=""),n=e),t(n),0!==n.length&&(i=n+"/"+i,o=47===n.charCodeAt(0));return(i=r(i,!o),o)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&i&&(e+="/"),n)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,r=0;r0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r||(e=n.resolve(e))===(r=n.resolve(r)))return"";for(var i=1;iu){if(47===r.charCodeAt(s+d))return r.slice(s+d+1);if(0===d)return r.slice(s+d)}else a>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var h=e.charCodeAt(i+d);if(h!==r.charCodeAt(s+d))break;47===h&&(c=d)}var p="";for(d=i+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===p.length?p+="..":p+="/..");return p.length>0?p+r.slice(s+c):(s+=c,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(r=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return -1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw TypeError('"ext" argument must be a string');t(e);var n,i=0,o=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,l=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!a){i=n+1;break}}else -1===l&&(a=!1,l=n+1),s>=0&&(u===r.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){i=n+1;break}}else -1===o&&(a=!1,o=n+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var r=-1,n=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!o){n=s+1;break}continue}-1===i&&(o=!1,i=s+1),46===l?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1)}return -1===r||-1===i||0===a||1===a&&r===i-1&&r===n+1?"":e.slice(r,i)},format:function(e){var t,r;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r},parse:function(e){t(e);var r,n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i=e.charCodeAt(0),o=47===i;o?(n.root="/",r=1):r=0;for(var a=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=r;--c){if(47===(i=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(0===s&&o?n.base=n.name=e.slice(1,l):n.base=n.name=e.slice(s,l)):(0===s&&o?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(s,a),n.base=e.slice(s,l)),n.ext=e.slice(a,l)),s>0?n.dir=e.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//";var i=n(114);e.exports=i}()},33836:e=>{!function(){"use strict";var t={815:function(e){e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(r);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var u=0;u=0?(c=f.substr(0,m),d=f.substr(m+1)):(c=f,d=""),h=decodeURIComponent(c),p=decodeURIComponent(d),Object.prototype.hasOwnProperty.call(o,h))?t(o[h])?o[h].push(p):o[h]=[o[h],p]:o[h]=p}return o};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,a,s){return(o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?n(i(e),function(i){var s=encodeURIComponent(t(i))+a;return r(e[i])?n(e[i],function(e){return s+encodeURIComponent(t(e))}).join(o):s+encodeURIComponent(t(e[i]))}).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n{e.exports=r(41661)},2657:(e,t,r)=>{e.exports=r(63996)},37786:(e,t,r)=>{e.exports=r(37957)},34747:(e,t,r)=>{e.exports=r(76104)},31242:(e,t,r)=>{e.exports=r(13765)},48578:e=>{function t(e){return function(t,r,n,o){var a,s=o&&"function"==typeof o.normalizer?o.normalizer:i;r=s(r);for(var l=!1;!l;)!function(){for(a in t){var e=s(a);if(0===r.indexOf(e)){var n=r.substr(e.length);if("."===n.charAt(0)||0===n.length){r=n.substr(1);var i=t[a];if(null==i||!r.length){l=!0;return}t=i;return}}}a=void 0,l=!0}();if(a)return null==t?t:e(t,a,n)}}function r(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function n(e,t,r){return e.hasOwnProperty(t)&&(e[t]=r),e}function i(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}e.exports=t(function(e,t){if(e.hasOwnProperty(t))return e[t]}),e.exports.find=e.exports,e.exports.replace=function(e,r,i,o){return t(n).call(this,e,r,i,o),e},e.exports.del=function(e,n,i){return t(r).call(this,e,n,null,i),e}},48660:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,k=String.prototype.toLowerCase,x=RegExp.prototype.test,_=Array.prototype.concat,S=Array.prototype.join,E=Array.prototype.slice,C=Math.floor,D="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===O?"object":"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-C(-e):C(e);if(n!==e){var i=String(n),o=y.call(t,i.length+1);return b.call(i,r,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var N=r(86973).custom,F=N&&B(N)?N:null;function I(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function L(e){return"[object Array]"===q(e)&&(!T||!("object"==typeof e&&T in e))}function B(e){if(O)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,n,i){var s=r||{};if(U(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(U(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!U(s,"customInspect")||s.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(U(s,"indent")&&null!==s.indent&&" "!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(U(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(y.call(t,0,r.maxStringLength),r)+"... "+n+" more character"+(n>1?"s":"")}return I(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,V),"single",r)}(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return m?M(t,w):w}if("bigint"==typeof t){var x=String(t)+"n";return m?M(t,x):x}var C=void 0===s.depth?5:s.depth;if(void 0===n&&(n=0),n>=C&&C>0&&"object"==typeof t)return L(t)?"[Array]":"[Object]";var A=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=S.call(Array(e.indent+1)," ")}return{base:r,prev:S.call(Array(t+1),r)}}(s,n);if(void 0===i)i=[];else if(H(i,t)>=0)return"[Circular]";function N(t,r,o){if(r&&(i=E.call(i)).push(r),o){var a={depth:s.depth};return U(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,n+1,i)}return e(t,s,n+1,i)}if("function"==typeof t){var z=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),X=K(t,N);return"[Function"+(z?": "+z:" (anonymous)")+"]"+(X.length>0?" { "+S.call(X,", ")+" }":"")}if(B(t)){var J=O?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(t);return"object"!=typeof t||O?J:$(J)}if(t&&"object"==typeof t&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)){for(var Q,Z="<"+k.call(String(t.nodeName)),ee=t.attributes||[],et=0;et"}if(L(t)){if(0===t.length)return"[]";var er=K(t,N);return A&&!function(e){for(var t=0;t=0)return!1;return!0}(er)?"["+G(er,A)+"]":"[ "+S.call(er,", ")+" ]"}if("[object Error]"===q(t)&&(!T||!("object"==typeof t&&T in t))){var en=K(t,N);return"cause"in t&&!P.call(t,"cause")?"{ ["+String(t)+"] "+S.call(_.call("[cause]: "+N(t.cause),en),", ")+" }":0===en.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(en,", ")+" }"}if("object"==typeof t&&l){if(F&&"function"==typeof t[F])return t[F]();if("symbol"!==l&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ei=[];return a.call(t,function(e,r){ei.push(N(r,t,!0)+" => "+N(e,t))}),Y("Map",o.call(t),ei,A)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eo=[];return c.call(t,function(e){eo.push(N(e,t))}),Y("Set",u.call(t),eo,A)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return W("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return W("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return W("WeakRef");if("[object Number]"===q(t)&&(!T||!("object"==typeof t&&T in t)))return $(N(Number(t)));if(function(e){if(!e||"object"!=typeof e||!D)return!1;try{return D.call(e),!0}catch(e){}return!1}(t))return $(N(D.call(t)));if("[object Boolean]"===q(t)&&(!T||!("object"==typeof t&&T in t)))return $(f.call(t));if("[object String]"===q(t)&&(!T||!("object"==typeof t&&T in t)))return $(N(String(t)));if(!("[object Date]"===q(t)&&(!T||!("object"==typeof t&&T in t)))&&!("[object RegExp]"===q(t)&&(!T||!("object"==typeof t&&T in t)))){var ea=K(t,N),es=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,el=t instanceof Object?"":"null prototype",eu=!es&&T&&Object(t)===t&&T in t?y.call(q(t),8,-1):el?"Object":"",ec=(es||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eu||el?"["+S.call(_.call([],eu||[],el||[]),": ")+"] ":"");return 0===ea.length?ec+"{}":A?ec+"{"+G(ea,A)+"}":ec+"{ "+S.call(ea,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(e){return e in this};function U(e,t){return z.call(e,t)}function q(e){return m.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r{"use strict";r.d(t,{LV:()=>j,yN:()=>C});var n,i=r(80106),o=r(51520);function a(){}var s=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=a),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),l=new o.DX,u=Object.prototype.hasOwnProperty,c=void 0===(n=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:n;function d(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var h=[];function p(e,t){if(!e)throw Error(t||"assertion failure")}function f(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var m=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!y(this))return g(this),this.value[0]},e.prototype.recompute=function(e){var t;return p(!this.recomputing,"already recomputing"),g(this),y(this)&&(_(this),l.withValue(this,v,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{d(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,y(this)||(t=this,b(t,k)))),f(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,b(this,w),d(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),_(this),b(this,function(t,r){t.setDirty(),S(t,e)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=h.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(c(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),h.push(this.deps),this.deps=null)},e.count=0,e}();function g(e){var t=l.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),y(e)?w(t,e):k(t,e),t}function v(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function y(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function b(e,t){var r=e.parents.size;if(r)for(var n=c(e.parents),i=0;i0&&n===r.length&&i[n-1]===r[n-1]||e.setDirty()),x(e,t),y(e)||b(e,k)}function x(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(h.length<100&&h.push(r),e.dirtyChildren=null))}function _(e){e.childValues.size>0&&e.childValues.forEach(function(t,r){S(e,r)}),e.forgetDeps(),p(null===e.dirtyChildren)}function S(e,t){t.parents.delete(e),e.childValues.delete(t),x(e,t)}var E={setDirty:!0,dispose:!0,forget:!0};function C(e){var t=new Map,r=e&&e.subscribe;function n(e){var n=l.getValue();if(n){var i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(d(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){var n=t.get(e);if(n){var i=r&&u.call(E,r)?r:"setDirty";c(n).forEach(function(e){return e[i]()}),t.delete(e),d(n)}},n}function D(){var e=new i.b("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}D();var A=new Set;function j(e,t){void 0===t&&(t=Object.create(null));var r=new s(t.max||65536,function(e){return e.dispose()}),n=t.keyArgs,i=t.makeCacheKey||D(),o=function(){var o=i.apply(null,n?n.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=r.get(o);a||(r.set(o,a=new m(e)),a.subscribe=t.subscribe,a.forget=function(){return r.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return r.set(o,a),A.add(r),l.hasValue()||(A.forEach(function(e){return e.clean()}),A.clear()),s};function a(e){var t=r.get(e);t&&t.setDirty()}function u(e){var t=r.get(e);if(t)return t.peek()}function c(e){return r.delete(e)}return Object.defineProperty(o,"size",{get:function(){return r.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=u,o.peek=function(){return u(i.apply(null,arguments))},o.forgetKey=c,o.forget=function(){return c(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(o)}},12834:(e,t,r)=>{"use strict";r.d(t,{B9:()=>i,FK:()=>s,FV:()=>o,Qk:()=>a,tT:()=>h});var n=r(74672);function i(e){return e.length<3?0:Math.abs((0,n.cz)(e.map(function(t,r){var n=e[r+1]||e[0];return t[0]*n[1]-n[0]*t[1]})))/2}function o(e,t){var r=t.width,n=t.height,i=t.left,o=t.top,s=a(e),l=s.minX,u=s.minY,c=s.maxX,d=s.maxY,h=r/(c-l),p=n/(d-u);return e.map(function(e){return[i+(e[0]-l)*h,o+(e[1]-u)*p]})}function a(e){var t=e.map(function(e){return e[0]}),r=e.map(function(e){return e[1]});return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,r),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,r)}}function s(e,t,r){var i=e[0],o=e[1],s=a(t),h=s.minX,p=s.minY,f=s.maxX,m=s.maxY,g=[[h,o],[f,o]],v=[[i,p],[i,m]],y=l(g[0],g[1]),b=l(v[0],v[1]),w=d(t),k=[],x=[];return w.forEach(function(e){var t=l(e[0],e[1]),r=c(u(y,t),[g,e]),n=c(u(b,t),[v,e]);(1!==r.length||e[0][1]!==o)&&k.push.apply(k,r),(1!==n.length||e[0][0]!==i)&&x.push.apply(x,n),t[0]||k.push.apply(k,r),t[1]||x.push.apply(x,n)}),!!(!r&&((0,n.SL)(k,function(e){return e[0]===i})>-1||(0,n.SL)(x,function(e){return e[1]===o})>-1))||!!(k.filter(function(e){return e[0]>i}).length%2)&&!!(x.filter(function(e){return e[1]>o}).length%2)}function l(e,t){var r=e[0],n=e[1],i=t[0],o=t[1];if(r===i&&n===o)return[0,0,0];if(r===i)return[1,0,-r];if(n===o)return[0,1,-n];var a=(i-r)/(n-o);return[1,a,-r-a*n]}function u(e,t){var r=e[0],n=e[1],i=e[2],o=t[0],a=t[1],s=t[2],l=0===r&&0===o,u=0===n&&0===a;if(l&&u)return[];if(l){var c=-i/n;return c!==-s/a?[]:[[-1/0,c],[1/0,c]]}if(u){var d=-i/r;return d!==-s/o?[]:[[d,-1/0],[d,1/0]]}if(0===r){var h=-i/n,p=-(a*h+s)/o;return[[p,h]]}if(0===o){var h=-s/a,p=-(n*h+i)/r;return[[p,h]]}if(0===n){var p=-i/r,h=-(o*p+s)/a;return[[p,h]]}if(0===a){var p=-s/o,h=-(r*p+i)/n;return[[p,h]]}else{var p=(n*s-a*i)/(a*r-n*o),h=-(r*p+i)/n;return[[p,h]]}}function c(e,t){var r=t.map(function(e){return[0,1].map(function(t){return[Math.min(e[0][t],e[1][t]),Math.max(e[0][t],e[1][t])]})});if(2===e.length){var n=e[0],i=n[0],o=n[1];if(i===e[1][0]){var a=Math.max.apply(Math,r.map(function(e){return e[1][0]})),s=Math.min.apply(Math,r.map(function(e){return e[1][1]}));return a>s?[]:[[i,a],[i,s]]}if(o===e[1][1]){var l=Math.max.apply(Math,r.map(function(e){return e[0][0]})),u=Math.min.apply(Math,r.map(function(e){return e[0][1]}));return l>u?[]:[[l,o],[u,o]]}}return e.filter(function(e){return r.every(function(t){return t[0][0]<=e[0]&&e[0]<=t[0][1]&&t[1][0]<=e[1]&&e[1]<=t[1][1]})})}function d(e){return(function(){for(var e=0,t=0,r=arguments.length;t{"use strict";function n(e,t,r,i=e=>e){return e*i(.5-t*(.5-r))}function i(e,t){return[e[0]+t[0],e[1]+t[1]]}function o(e,t){return[e[0]-t[0],e[1]-t[1]]}function a(e,t){return[e[0]*t,e[1]*t]}function s(e){return[e[1],-e[0]]}function l(e,t){return e[0]*t[0]+e[1]*t[1]}function u(e,t){var r;return(r=o(e,t))[0]*r[0]+r[1]*r[1]}function c(e){var t;return t=Math.hypot(e[0],e[1]),[e[0]/t,e[1]/t]}function d(e,t,r){let n=Math.sin(r),i=Math.cos(r),o=e[0]-t[0],a=e[1]-t[1];return[o*i-a*n+t[0],o*n+a*i+t[1]]}function h(e,t,r){return i(e,a(o(t,e),r))}r.d(t,{Ay:()=>y,Km:()=>v,U$:()=>g});var{min:p,PI:f}=Math,m=f+1e-4;function g(e,t={}){var r,f;let{size:v=16,smoothing:y=.5,thinning:b=.5,simulatePressure:w=!0,easing:k=e=>e,start:x={},end:_={},last:S=!1}=t,{cap:E=!0,easing:C=e=>e*(2-e)}=x,{cap:D=!0,easing:A=e=>--e*e*e+1}=_;if(0===e.length||v<=0)return[];let j=e[e.length-1].runningLength,O=!1===x.taper?0:!0===x.taper?Math.max(v,j):x.taper,T=!1===_.taper?0:!0===_.taper?Math.max(v,j):_.taper,P=Math.pow(v*y,2),R=[],M=[],N=e.slice(0,10).reduce((e,t)=>{let r=t.pressure;if(w){let n=p(1,t.distance/v),i=p(1,1-n);r=p(1,e+.275*n*(i-e))}return(e+r)/2},e[0].pressure),F=n(v,b,e[e.length-1].pressure,k),I,L=e[0].vector,B=e[0].point,z=B,U=B,q=z,H=!1;for(let t=0;tl(f,L)&&!H,E=null!==_&&_<0;if(S||E){let e=a(s(L),F);for(let t=1/13,r=0;r<=1;r+=t)U=d(o(c,e),c,m*r),R.push(U),q=d(i(c,e),c,-(m*r)),M.push(q);B=U,z=q,E&&(H=!0);continue}if(H=!1,t===e.length-1){let e=a(s(f),F);R.push(o(c,e)),M.push(i(c,e));continue}let D=a(s(h(x,f,_)),F);U=o(c,D),(t<=1||u(B,U)>P)&&(R.push(U),B=U),q=i(c,D),(t<=1||u(z,q)>P)&&(M.push(q),z=q),N=r,L=f}let V=e[0].point.slice(0,2),$=e.length>1?e[e.length-1].point.slice(0,2):i(e[0].point,[1,1]),W=[],Y=[];if(1===e.length){if(!(O||T)||S){let e=(r=c(s(o(V,$))),i(V,a(r,-(I||F)))),t=[];for(let r=1/13,n=r;n<=1;n+=r)t.push(d(e,V,2*m*n));return t}}else{if(!(O||T&&1===e.length)){if(E)for(let e=1/13,t=e;t<=1;t+=e){let e=d(M[0],V,m*t);W.push(e)}else{let e=o(R[0],M[0]),t=a(e,.5),r=a(e,.51);W.push(o(V,t),o(V,r),i(V,r),i(V,t))}}let t=s([-(f=e[e.length-1].vector)[0],-f[1]]);if(T||O&&1===e.length)Y.push($);else if(D){let e=i($,a(t,F));for(let t=1/29,r=t;r<1;r+=t)Y.push(d(e,$,3*m*r))}else Y.push(i($,a(t,F)),i($,a(t,.99*F)),o($,a(t,.99*F)),o($,a(t,F)))}return R.concat(Y,M.reverse(),W)}function v(e,t={}){var r,n,a;let{streamline:s=.5,size:l=16,last:u=!1}=t;if(0===e.length)return[];let d=.15+(1-s)*.85,p=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:r=.5})=>[e,t,r]);if(2===p.length){let e=p[1];p=p.slice(0,-1);for(let t=1;t<5;t++)p.push(h(p[0],e,t/4))}1===p.length&&(p=[...p,[...i(p[0],[1,1]),...p[0].slice(2)]]);let f=[{point:[p[0][0],p[0][1]],pressure:p[0][2]>=0?p[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],m=!1,g=0,y=f[0],b=p.length-1;for(let e=1;e=0?p[e][2]:.5,vector:c(o(y.point,t)),distance:r,runningLength:g},f.push(y)}return f[0].vector=(null==(r=f[1])?void 0:r.vector)||[0,0],f}var y=function(e,t={}){return g(v(e,t),t)}},5181:(e,t,r)=>{"use strict";r.d(t,{FK:()=>v,Ob:()=>M,XX:()=>P,_3:()=>g,h:()=>f,uA:()=>y,v2:()=>function e(t,r){return r=r||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some(function(t){e(t,r)}):r.push(t)),r}});var n,i,o,a,s,l,u={},c=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(e,t){for(var r in t)e[r]=t[r];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function f(e,t,r){var i,o,a,s={};for(a in t)"key"==a?i=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return m(e,s,i,o,null)}function m(e,t,r,n,a){var s={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=i.vnode&&i.vnode(s),s}function g(){return{current:null}}function v(e){return e.children}function y(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t0?m(w.type,w.props,w.key,null,w.__v):w)){if(w.__=r,w.__b=r.__b+1,null===(y=E[f])||y&&w.key==y.key&&w.type===y.type)E[f]=void 0;else for(g=0;g2&&(s.children=arguments.length>3?n.call(arguments,2):r),m(e.type,s,i||e.key,o||e.ref,null)}n=c.slice,i={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},o=0,y.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},r),this.props)),e&&h(r,e),null!=e&&this.__v&&(t&&this.__h.push(t),w(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},y.prototype.render=v,a=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,k.__r=0},36999:(e,t,r)=>{"use strict";var n=r(36848);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},39067:(e,t,r)=>{e.exports=r(36999)()},36848:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1830:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:n.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},45810:(e,t,r)=>{"use strict";var n=r(16623),i=r(26193),o=r(1830);e.exports={formats:o,parse:i,stringify:n}},26193:(e,t,r)=>{"use strict";var n=r(91539),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t){var r={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,u=t.parameterLimit===1/0?void 0:t.parameterLimit,c=l.split(t.delimiter,u),d=-1,h=t.charset;if(t.charsetSentinel)for(p=0;p=0&&r.parseArrays&&c<=r.arrayLimit?(a=[])[c]=i:a[u]=i:a={0:i}}i=a}return i},c=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(o),l=s?o.slice(0,s.index):o,c=[];if(l){if(!r.plainObjects&&i.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var d=0;r.depth>0&&null!==(s=a.exec(o))&&d{"use strict";var n=r(77575),i=r(91539),o=r(1830),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,h=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,r,o,a,s,u,d,h,f,m,g,v,y,b,w){var k,x,_=t;if(w.has(t))throw RangeError("Cyclic object value");if("function"==typeof d?_=d(r,_):_ instanceof Date?_=m(_):"comma"===o&&l(_)&&(_=i.maybeMap(_,function(e){return e instanceof Date?m(e):e})),null===_){if(a)return u&&!y?u(r,p.encoder,b,"key",g):r;_=""}if("string"==typeof(k=_)||"number"==typeof k||"boolean"==typeof k||"symbol"==typeof k||"bigint"==typeof k||i.isBuffer(_))return u?[v(y?r:u(r,p.encoder,b,"key",g))+"="+v(u(_,p.encoder,b,"value",g))]:[v(r)+"="+v(String(_))];var S=[];if(void 0===_)return S;if("comma"===o&&l(_))x=[{value:_.length>0?_.join(",")||null:void 0}];else if(l(d))x=d;else{var E=Object.keys(_);x=h?E.sort(h):E}for(var C=0;C0?y+v:""}},91539:(e,t,r)=>{"use strict";var n=r(1830),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===n.RFC1738&&(40===c||41===c)){l+=s.charAt(u);continue}if(c<128){l+=a[c];continue}if(c<2048){l+=a[192|c>>6]+a[128|63&c];continue}if(c<55296||c>=57344){l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c];continue}u+=1,l+=a[240|(c=65536+((1023&c)<<10|1023&s.charCodeAt(u)))>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c]}return l},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n{"use strict";var r,n=Object.prototype.hasOwnProperty;function i(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){var i,a,s=[];for(a in"string"!=typeof(t=t||"")&&(t="?"),e)if(n.call(e,a)){if(!(i=e[a])&&(null===i||i===r||isNaN(i))&&(i=""),a=o(a),i=o(i),null===a||null===i)continue;s.push(a+"="+i)}return s.length?t+s.join("&"):""},t.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var o=i(t[1]),a=i(t[2]);null===o||null===a||o in n||(n[o]=a)}return n}},79584:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(74672),i=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0};let o=function(e){var t,r="rCS"+i(e).toString(36),o=0;return{className:r,inject:function(i,a){void 0===a&&(a={});var s,l,u,c=function(e){if(e&&e.getRootNode){var t=e.getRootNode();if(11===t.nodeType)return t}}(i),d=0===o;return(c||d)&&(s=a,(l=document.createElement("style")).setAttribute("type","text/css"),l.setAttribute("data-styled-id",r),s.nonce&&l.setAttribute("nonce",s.nonce),l.innerHTML=s.original?e:e.replace(/([^};{\s}][^};{]*|^\s*){/mg,function(e,t){var i=t.trim();return(i?(0,n.cM)(i):[""]).map(function(e){var t=e.trim();return 0===t.indexOf("@")?t:t.indexOf(":global")>-1?t.replace(/\:global/g,""):t.indexOf(":host")>-1?""+t.replace(/\:host/g,"."+r):t?"."+r+" "+t:"."+r}).join(", ")+" {"}),(c||document.head||document.body).appendChild(l),u=l),d&&(t=u),!c&&++o,{destroy:function(){c?(i.removeChild(u),u=null):(o>0&&--o,0===o&&t&&(t.parentNode.removeChild(t),t=null))}}}}};var a=r(14041),s=r(40699),l=function(e,t){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function u(e,t){function r(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var c=function(){return(c=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}(e,["className","cspNonce","portalContainer"]),i=this.injector.className,o=this.tag,l={};return(a.version||"").indexOf("simple")>-1&&r&&(l={portalContainer:r}),(0,a.createElement)(o,c({ref:(0,s.KR)(this,"element"),"data-styled-id":i,className:(void 0===t?"":t)+" "+i},l,n))},r.componentDidMount=function(){this.injectResult=this.injector.inject(this.element,{nonce:this.props.cspNonce})},r.componentWillUnmount=function(){this.injectResult.destroy(),this.injectResult=null},r.getElement=function(){return this.element},t}(a.Component);let h=function(e,t){var r=o(t);return function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.injector=r,n.tag=e,n}return u(n,t),n}(d)}},27643:function(e,t,r){!function(e,t){"use strict";var r=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(t);function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var i={error:null},o=function(e){function t(){for(var t,r=arguments.length,n=Array(r),o=0;o{var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,u,c;if(o.constructor!==a.constructor)return!1;if(Array.isArray(o)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(!e(o[l],a[l]))return!1;return!0}if(r&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=o.entries();!(l=c.next()).done;)if(!e(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(o[l]!==a[l])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&"function"==typeof o.valueOf&&"function"==typeof a.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&"function"==typeof o.toString&&"function"==typeof a.toString)return o.toString()===a.toString();if((s=(u=Object.keys(o)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&o instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!o.$$typeof)&&!e(o[u[l]],a[u[l]]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},8732:(e,t,r)=>{"use strict";r.d(t,{vC:()=>j});var n="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function i(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),function(){r(window.event)})}function o(e,t){for(var r=t.slice(0,t.length-1),n=0;n=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}for(var s={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":n?173:189,"=":n?61:187,";":n?59:186,"'":222,"[":219,"]":221,"\\":220},l={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},u={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},c={16:!1,18:!1,17:!1,91:!1},d={},h=1;h<20;h++)s["f".concat(h)]=111+h;var p=[],f=!1,m="all",g=[],v=function(e){return s[e.toLowerCase()]||l[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function y(e){m=e||"all"}function b(){return m||"all"}var w=function(e){var t=e.key,r=e.scope,n=e.method,i=e.splitKey,s=void 0===i?"+":i;a(t).forEach(function(e){var t=e.split(s),i=t.length,a=t[i-1],u="*"===a?"*":v(a);if(d[u]){r||(r=b());var c=i>1?o(l,t):[];d[u]=d[u].filter(function(e){return!((!n||e.method===n)&&e.scope===r&&function(e,t){for(var r=e.length>=t.length?e:t,n=e.length>=t.length?t:e,i=!0,o=0;o0,c)Object.prototype.hasOwnProperty.call(c,o)&&(!c[o]&&t.mods.indexOf(+o)>-1||c[o]&&-1===t.mods.indexOf(+o))&&(i=!1);(0!==t.mods.length||c[16]||c[18]||c[17]||c[91])&&!i&&"*"!==t.shortcut||!1!==t.method(e,t)||(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function x(e,t){var r=d["*"],n=e.keyCode||e.which||e.charCode;if(_.filter.call(this,e)){if((93===n||224===n)&&(n=91),-1===p.indexOf(n)&&229!==n&&p.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(t){var r=u[t];e[t]&&-1===p.indexOf(r)?p.push(r):!e[t]&&p.indexOf(r)>-1?p.splice(p.indexOf(r),1):"metaKey"===t&&e[t]&&3===p.length&&!(e.ctrlKey||e.shiftKey||e.altKey)&&(p=p.slice(p.indexOf(r)))}),n in c){for(var i in c[n]=!0,l)l[i]===n&&(_[i]=!0);if(!r)return}for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(c[o]=e[u[o]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),c[17]=!0,c[18]=!0);var a=b();if(r)for(var s=0;s1&&(u=o(l,e)),(e="*"===(e=e[e.length-1])?"*":v(e))in d||(d[e]=[]),d[e].push({keyup:b,keydown:w,scope:h,mods:u,shortcut:s[y],method:r,key:s[y],splitKey:k,element:m});void 0!==m&&(n=m,!(g.indexOf(n)>-1))&&window&&(g.push(m),i(m,"keydown",function(e){x(e,m)},S),f||(f=!0,i(window,"focus",function(){p=[]},S)),i(m,"keyup",function(e){x(e,m),function(e){var t=e.keyCode||e.which||e.charCode,r=p.indexOf(t);if(r>=0&&p.splice(r,1),e.key&&"meta"===e.key.toLowerCase()&&p.splice(0,p.length),(93===t||224===t)&&(t=91),t in c)for(var n in c[t]=!1,l)l[n]===t&&(_[n]=!1)}(e)},S))}var S={setScope:y,getScope:b,deleteScope:function(e,t){var r,n;for(var i in e||(e=b()),d)if(Object.prototype.hasOwnProperty.call(d,i))for(n=0,r=d[i];n1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(d).forEach(function(r){var n=d[r].find(function(r){return r.scope===t&&r.shortcut===e});n&&n.method&&n.method()})},unbind:function(e){if(void 0===e)Object.keys(d).forEach(function(e){return delete d[e]});else if(Array.isArray(e))e.forEach(function(e){e.key&&w(e)});else if("object"==typeof e)e.key&&w(e);else if("string"==typeof e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{"use strict";r.d(t,{A:()=>w});var n=r(14041),i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},o=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],a={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"},s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},u=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0;--n)r+=t[Math.round(Math.random()*(t.length-1))];return r}(),"-").concat(x)),Array.isArray(g)&&g.forEach(function(t){t.condition(k,x,b)&&("function"!=typeof t.pre||(k=t.pre(k,x,b))instanceof Node||(k=e),"function"==typeof t.post&&_.push(t.post(k,x,b)))}),_.length)return _;switch(k.nodeType){case 1:return n.createElement((r=k.nodeName,/[a-z]+[A-Z]+[a-z]+/.test(r)?r:r.toLowerCase()),function(e,t){var r={key:t};if(e instanceof Element){var n=e.getAttribute("class");n&&(r.className=n),u([],l(e.attributes),!1).forEach(function(e){switch(e.name){case"class":break;case"style":r[e.name]=e.value.split(/ ?; ?/).reduce(function(e,t){var r=i(t.split(/ ?: ?/),2),n=r[0],o=r[1];return n&&o&&(e[n.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})]=Number.isNaN(Number(o))?o:Number(o)),e},{});break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":r[a[e.name]||e.name]=!0;break;default:r[a[e.name]||e.name]=e.value}})}return r}(k,x),(d=k.childNodes,h=t,(p=u([],l(d),!1).map(function(e,t){return c(e,s(s({},h),{index:t,level:b+1}))}).filter(Boolean)).length?p:null));case 3:var S=(null===(f=k.nodeValue)||void 0===f?void 0:f.toString())||"";if(/^\s+$/.test(S)&&!/[\u00A0\u202F]/.test(S))return null;if(!k.parentNode)return S;var E=k.parentNode.nodeName.toLowerCase();if(o.includes(E))return/\S/.test(S)&&console.warn("A textNode is not allowed inside '".concat(E,"'. Your text \"").concat(S,'" will be ignored')),null;return S;default:return null}}function d(e,t){return(void 0===t&&(t={}),"string"==typeof e)?function(e,t){if(void 0===t&&(t={}),!e||"string"!=typeof e)return null;var r=t.nodeOnly,n=t.selector,i=t.type;try{var o=new DOMParser().parseFromString(e,void 0===i?"text/html":i).querySelector(void 0===n?"body > *":n);if(!(o instanceof Node))throw TypeError("Error parsing input");if(void 0!==r&&r)return o;return c(o,t)}catch(e){}return null}(e,t):e instanceof Node?c(e,t):null}var h=r(53842),p={FAILED:"failed",LOADED:"loaded",LOADING:"loading",PENDING:"pending",READY:"ready",UNSUPPORTED:"unsupported"};function f(){return h.canUseDOM}var m=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(){return(g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},y=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i299)throw Error("Not found");if(!["image/svg+xml","text/plain"].some(function(e){return r.includes(e)}))throw Error("Content type isn't valid: ".concat(r));return e.text()}).then(function(e){var n=r.props.src;if(i!==n){b[i].status===p.LOADING&&delete b[i];return}if(r.handleLoad(e),t){var o=b[i];o&&(o.content=e,o.status=p.LOADED)}}).catch(function(e){r.handleError(e),t&&b[i]&&delete b[i]})}catch(e){return r.handleError(Error(e.message))}}}),r.state={content:"",element:null,hasCache:!!t.cacheRequests&&!!b[t.src],status:p.PENDING},r.hash=t.uniqueHash||function(e){for(var t="abcdefghijklmnopqrstuvwxyz",r="".concat(t).concat(t.toUpperCase()).concat("1234567890"),n="",i=0;i<8;i++)n+=r[Math.floor(Math.random()*r.length)];return n}(0),r}return m(t,e),Object.defineProperty(t.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.isActive=!0,f()&&!this.isInitialized){var e=this.state.status,t=this.props.src;try{if(e===p.PENDING){if(!(function(){if(!document)return!1;var e=document.createElement("div");e.innerHTML="";var t=e.firstChild;return!!t&&"http://www.w3.org/2000/svg"===t.namespaceURI}()&&"undefined"!=typeof window&&null!==window))throw Error("Browser does not support SVG");if(!t)throw Error("Missing src");this.load()}}catch(e){this.handleError(e)}this.isInitialized=!0}}}),Object.defineProperty(t.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(f()){var r=this.state,n=r.hasCache,i=r.status,o=this.props,a=o.onLoad,s=o.src;if(t.status!==p.READY&&i===p.READY&&a&&a(s,n),e.src!==s){if(!s){this.handleError(Error("Missing src"));return}this.load()}}}}),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.isActive=!1}}),Object.defineProperty(t.prototype,"getNode",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.description,r=e.title;try{var n=this.processSVG(),i=d(n,{nodeOnly:!0});if(!i||!(i instanceof SVGSVGElement))throw Error("Could not convert the src to a DOM Node");var o=this.updateSVGAttributes(i);if(t){var a=o.querySelector("desc");a&&a.parentNode&&a.parentNode.removeChild(a);var s=document.createElement("desc");s.innerHTML=t,o.prepend(s)}if(r){var l=o.querySelector("title");l&&l.parentNode&&l.parentNode.removeChild(l);var u=document.createElement("title");u.innerHTML=r,o.prepend(u)}return o}catch(e){return this.handleError(e)}}}),Object.defineProperty(t.prototype,"getElement",{enumerable:!1,configurable:!0,writable:!0,value:function(){try{var e=this.getNode(),t=d(e);if(!t||!n.isValidElement(t))throw Error("Could not convert the src to a React element");this.setState({element:t,status:p.READY})}catch(e){this.handleError(Error(e.message))}}}),Object.defineProperty(t.prototype,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;this.isActive&&this.setState({content:"",element:null,status:p.LOADING},function(){var t,r=e.props,n=r.cacheRequests,i=r.src,o=n&&b[i];if(o&&o.status===p.LOADED){e.handleLoad(o.content);return}var a=i.match(/data:image\/svg[^,]*?(;base64)?,(.*)/);if(a?t=a[1]?window.atob(a[2]):decodeURIComponent(a[2]):i.includes("{"use strict";r.d(t,{Kq:()=>o,ob:()=>a});var n=r(14041);r(75985);var i=n.createContext(null),o=(i.Consumer,i.Provider),a=i},25249:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(57617),i=r(14041),o=r(8953),a=r(21839);function s(e){var t,r=(t=i.useContext(o.ob),(0,a.HM)(t),t),n=r.formatMessage,s=r.textComponent,l=void 0===s?i.Fragment:s,u=e.id,c=e.description,d=e.defaultMessage,h=e.values,p=e.children,f=e.tagName,m=void 0===f?l:f,g=n({id:u,description:c,defaultMessage:d},h,{ignoreTag:e.ignoreTag});return"function"==typeof p?p(Array.isArray(g)?g:[g]):m?i.createElement(m,null,i.Children.toArray(g)):i.createElement(i.Fragment,null,g)}s.displayName="FormattedMessage";var l=i.memo(s,function(e,t){var r=e.values,i=(0,n.Tt)(e,["values"]),o=t.values,s=(0,n.Tt)(t,["values"]);return(0,a.bN)(o,r)&&(0,a.bN)(i,s)});l.displayName="MemoizedFormattedMessage";let u=l},68695:(e,t,r)=>{"use strict";r.d(t,{A:()=>V});var n=r(57617),i=r(14041),o=r(8953),a=r(21839),s=r(93460),l=r(10479),u=r(6502),c=r(86679),d=r(78631);function h(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=(0,s.Cl)({timeZone:t},e[n]),r},{})}function p(e,t){return Object.keys((0,s.Cl)((0,s.Cl)({},e),t)).reduce(function(r,n){return r[n]=(0,s.Cl)((0,s.Cl)({},e[n]||{}),t[n]||{}),r},{})}function f(e,t){if(!t)return e;var r=u.S.formats;return(0,s.Cl)((0,s.Cl)((0,s.Cl)({},r),e),{date:p(h(r.date,t),h(e.date||{},t)),time:p(h(r.time,t),h(e.time||{},t))})}var m=function(e,t,r,n,i){var o=e.locale,a=e.formats,u=e.messages,h=e.defaultLocale,p=e.defaultFormats,m=e.fallbackOnEmptyString,g=e.onError,v=e.timeZone,y=e.defaultRichTextElements;void 0===r&&(r={id:""});var b=r.id,w=r.defaultMessage;(0,l.V1)(!!b,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var k=String(b),x=u&&Object.prototype.hasOwnProperty.call(u,k)&&u[k];if(Array.isArray(x)&&1===x.length&&x[0].type===d.ZE.literal)return x[0].value;if(!n&&x&&"string"==typeof x&&!y)return x.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=(0,s.Cl)((0,s.Cl)({},y),n||{}),a=f(a,v),p=f(p,v),!x){if(!1===m&&""===x)return x;if((!w||o&&o.toLowerCase()!==h.toLowerCase())&&g(new c.sb(r,o)),w)try{var _=t.getMessageFormat(w,h,p,i);return _.format(n)}catch(e){return g(new c.Ho('Error formatting default message for: "'.concat(k,'", rendering default message verbatim'),o,r,e)),"string"==typeof w?w:k}return k}try{var _=t.getMessageFormat(x,o,a,(0,s.Cl)({formatters:t},i||{}));return _.format(n)}catch(e){g(new c.Ho('Error formatting message: "'.concat(k,'", using ').concat(w?"default message":"id"," as fallback."),o,r,e))}if(w)try{var _=t.getMessageFormat(w,h,p,i);return _.format(n)}catch(e){g(new c.Ho('Error formatting the default message for: "'.concat(k,'", rendering message verbatim'),o,r,e))}return"string"==typeof x?x:"string"==typeof w?w:k},g=r(20280),v=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function y(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=a&&(0,g.F3)(i,"number",a,o)||{};return t(n,(0,g.J9)(r,v,s))}function b(e,t,r,n){void 0===n&&(n={});try{return y(e,t,n).format(r)}catch(t){e.onError(new c.Ar(c.lo.FORMAT_ERROR,"Error formatting number.",t))}return String(r)}function w(e,t,r,n){void 0===n&&(n={});try{return y(e,t,n).formatToParts(r)}catch(t){e.onError(new c.Ar(c.lo.FORMAT_ERROR,"Error formatting number.",t))}return[]}var k=r(54179),x=["numeric","style"];function _(e,t,r,n,i){void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new k.IF('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',k.O4.MISSING_INTL_API));try{var o,a,s,l,u,d;return(o=i,a=e.locale,s=e.formats,l=e.onError,void 0===o&&(o={}),d=!!(u=o.format)&&(0,g.F3)(s,"relative",u,l)||{},t(a,(0,g.J9)(o,x,d))).format(r,n)}catch(t){e.onError(new c.pg("Error formatting relative time.",e.locale,t))}return String(r)}var S=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function E(e,t,r,n){var i=e.locale,o=e.formats,a=e.onError,l=e.timeZone;void 0===n&&(n={});var u=n.format,c=(0,s.Cl)((0,s.Cl)({},l&&{timeZone:l}),u&&(0,g.F3)(o,t,u,a)),d=(0,g.J9)(n,S,c);return"time"!==t||d.hour||d.minute||d.second||d.timeStyle||d.dateStyle||(d=(0,s.Cl)((0,s.Cl)({},d),{hour:"numeric",minute:"numeric"})),r(i,d)}function C(e,t){for(var r=[],n=2;n{"use strict";r.d(t,{HM:()=>s,JF:()=>l,bN:()=>c,yU:()=>u});var n=r(57617),i=r(14041),o=r(10479),a=r(20280);function s(e){(0,o.V1)(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}var l=(0,n.Cl)((0,n.Cl)({},a.JF),{textComponent:i.Fragment});function u(e){return function(t){return e(i.Children.toArray(t))}}function c(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var o=0;o{"use strict";r.d(t,{C6:()=>i,Cl:()=>o,Tt:()=>a,fX:()=>s});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i{"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.module.reference")},524:(e,t,r)=>{"use strict";r(90320)},83858:(e,t,r)=>{"use strict";r.d(t,{E:()=>c});var n=r(14041),i=r(59980),o=r(55320),a=r.n(o),s=function(e){return e.reduce(function(e,t){var r=t[0],n=t[1];return e[r]=n,e},{})},l="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect,u=[],c=function(e,t,r){void 0===r&&(r={});var o=n.useRef(null),c={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||u},d=n.useState({styles:{popper:{position:c.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),h=d[0],p=d[1],f=n.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,r=Object.keys(t.elements);p({styles:s(r.map(function(e){return[e,t.styles[e]||{}]})),attributes:s(r.map(function(e){return[e,t.attributes[e]]}))})},requires:["computeStyles"]}},[]),m=n.useMemo(function(){var e={onFirstUpdate:c.onFirstUpdate,placement:c.placement,strategy:c.strategy,modifiers:[].concat(c.modifiers,[f,{name:"applyStyles",enabled:!1}])};return a()(o.current,e)?o.current||e:(o.current=e,e)},[c.onFirstUpdate,c.placement,c.strategy,c.modifiers,f]),g=n.useRef();return l(function(){g.current&&g.current.setOptions(m)},[m]),l(function(){if(null!=e&&null!=t){var n=(r.createPopper||i.n4)(e,t,m);return g.current=n,function(){n.destroy(),g.current=null}}},[e,t,r.createPopper]),{state:g.current?g.current.state:null,styles:h.styles,attributes:h.attributes,update:g.current?g.current.update:null,forceUpdate:g.current?g.current.forceUpdate:null}}},55320:e=>{var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,u,c;if(o.constructor!==a.constructor)return!1;if(Array.isArray(o)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(!e(o[l],a[l]))return!1;return!0}if(r&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=o.entries();!(l=c.next()).done;)if(!e(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(o[l]!==a[l])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===a.toString();if((s=(u=Object.keys(o)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&o instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!o.$$typeof)&&!e(o[u[l]],a[u[l]]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},32133:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>b,wA:()=>x,d4:()=>g,Pj:()=>k});var n=r(58139),i=r(37121),o=r(43144);let a=function(e){e()},s=()=>a;var l=r(14041);let u=Symbol.for("react-redux-context"),c="undefined"!=typeof globalThis?globalThis:{},d=function(){var e;if(!l.createContext)return{};let t=null!=(e=c[u])?e:c[u]=new Map,r=t.get(l.createContext);return r||(r=l.createContext(null),t.set(l.createContext,r)),r}();function h(e=d){return function(){return(0,l.useContext)(e)}}let p=h(),f=()=>{throw Error("uSES not initialized!")},m=(e,t)=>e===t,g=function(e=d){let t=e===d?p:h(e);return function(e,r={}){let{equalityFn:n=m,stabilityCheck:i,noopCheck:o}="function"==typeof r?{equalityFn:r}:r,{store:a,subscription:s,getServerState:u,stabilityCheck:c,noopCheck:d}=t();(0,l.useRef)(!0);let h=(0,l.useCallback)({[e.name]:t=>e(t)}[e.name],[e,c,i]),p=f(s.addNestedSub,a.getState,u||a.getState,h,n);return(0,l.useDebugValue)(p),p}}();r(75985),r(524);let v={notify(){},get:()=>[]},y="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect,b=function({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:o="once"}){let a=l.useMemo(()=>{let t=function(e,t){let r;let n=v,i=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function l(){i++,r||(r=e.subscribe(a),n=function(){let e=s(),t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let e=t;for(;e;)e.callback(),e=e.next})},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let n=!0,i=r={callback:e,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){n&&null!==t&&(n=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}function u(){i--,r&&0===i&&(r(),r=void 0,n.clear(),n=v)}let c={addNestedSub:function(e){l();let t=n.subscribe(e),r=!1;return()=>{r||(r=!0,t(),u())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,l())},tryUnsubscribe:function(){o&&(o=!1,u())},getListeners:()=>n};return c}(e);return{store:e,subscription:t,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:o}},[e,n,i,o]),u=l.useMemo(()=>e.getState(),[e]);return y(()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),u!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[a,u]),l.createElement((t||d).Provider,{value:a},r)};function w(e=d){let t=e===d?p:h(e);return function(){let{store:e}=t();return e}}let k=w(),x=function(e=d){let t=e===d?k:w(e);return function(){return t().dispatch}}();f=i.useSyncExternalStoreWithSelector,n.useSyncExternalStore,a=o.unstable_batchedUpdates},96141:(e,t,r)=>{"use strict";r.d(t,{E9:()=>o,Mi:()=>n,pN:()=>i,xi:()=>a});var n="right-scroll-bar-position",i="width-before-scroll-bar",o="with-scroll-bars-hidden",a="--removed-body-scroll-bar-size"},18106:(e,t,r)=>{"use strict";r.d(t,{jp:()=>h});var n=r(14041),i=r(11405),o=r(96141),a={left:0,top:0,right:0,gap:0},s=function(e){return parseInt(e||"",10)||0},l=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[s(r),s(n),s(i)]},u=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return a;var t=l(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},c=(0,i.T0)(),d=function(e,t,r,n){var i=e.left,a=e.top,s=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat(o.E9," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(l,"px ").concat(n,";\n }\n body {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(o.Mi," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(o.pN," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(o.Mi," .").concat(o.Mi," {\n right: 0 ").concat(n,";\n }\n \n .").concat(o.pN," .").concat(o.pN," {\n margin-right: 0 ").concat(n,";\n }\n \n body {\n ").concat(o.xi,": ").concat(l,"px;\n }\n")},h=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,o=void 0===i?"margin":i,a=n.useMemo(function(){return u(o)},[o]);return n.createElement(c,{styles:d(a,!t,o,r?"":"!important")})}},33513:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(14041);function i(){return(i=Object.assign||function(e){for(var t=1;t{"use strict";r.d(t,{T0:()=>s});var n,i=r(14041),o=function(){var e=0,t=null;return{add:function(i){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},a=function(){var e=o();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},s=function(){var e=a();return function(t){return e(t.styles,t.dynamic),null}}},40520:(e,t,r)=>{var n,i=r(96644),o=r(44706),a=r(41924),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return n=0,t=Math.pow(10,void 0===t?5:t),o(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(r,o,l){if(n++>100)throw n=0,Error("Call stack overflow for "+l);if(""===r)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],r=[],n=/[\.0-9]([%a-z]+)/gi,i=n.exec(e);i;)i&&i[1]&&(-1===r.indexOf(i[1].toLowerCase())&&(t.push(i[1]),r.push(i[1].toLowerCase())),i=n.exec(e));return t}(r=function(t,r){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var n,o="",a=t;n=s.exec(a);){n[0].index>0&&(o+=a.substring(0,n[0].index));var l=i("(",")",a.substring(void 0));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",r);o+=l.pre+u,a=l.post}return o+a}(r,l));if(c.length>1||r.indexOf("var(")>-1)return o+"("+r+")";var d=c[0]||"";"%"===d&&(r=r.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var h=r.replace(RegExp(d,"gi"),"");try{u=a.eval(h)}catch(e){return o+"("+r+")"}return"%"===d&&(u*=100),(o.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},96644:e=>{function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,a,s,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(n=[],o=r.length;c>=0&&!s;)c==l?(n.push(c),l=r.indexOf(e,c+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())=0?l:u;n.length&&(s=[o,a])}return s}e.exports=t,t.range=n},44706:(e,t,r)=>{var n=r(99986);e.exports=function e(t,r,i){return(function(e,t){var r=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)break;if(void 0===o[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,l=n("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");r.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return r})(t,r).reduce(function(n,o){var a,s;return n.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,r,i),s,t)))},t)}},70747:(e,t,r)=>{"use strict";r.d(t,{Tw:()=>p,HY:()=>d,Zz:()=>h,y$:()=>c});var n=r(24586);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},41054:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>o});var n="NOT_FOUND",i=function(e,t){return e===t},o=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n-1){var o=r[i];return i>0&&(r.splice(i,1),r.unshift(o)),o.value}return n}return{get:i,put:function(t,o){i(t)===n&&(r.unshift({key:t,value:o}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(u,d);function p(){var t=h.get(arguments);if(t===n){if(t=e.apply(null,arguments),c){var r=h.getEntries().find(function(e){return c(e.value,t)});r&&(t=r.value)}h.put(arguments,t)}return t}return p.clearCache=function(){return h.clear()},p})},92464:(e,t,r)=>{var n=r(9241),i=r(87480),o=r(88150),a=r(43420),s=r(42346),l=r(98868),u=r(3808);u.alea=n,u.xor128=i,u.xorwow=o,u.xorshift7=a,u.xor4096=s,u.tychei=l,e.exports=u},9241:function(e,t,r){var n;!function(e,i,o){function a(e){var t,r=this,n=(t=0xefc8249d,function(e){e=String(e);for(var r=0;r>>0,n-=t,n*=t,t=n>>>0,n-=t,t+=0x100000000*n}return(t>>>0)*23283064365386963e-26});r.next=function(){var e=2091639*r.s0+23283064365386963e-26*r.c;return r.s0=r.s1,r.s1=r.s2,r.s2=e-(r.c=0|e)},r.c=1,r.s0=n(" "),r.s1=n(" "),r.s2=n(" "),r.s0-=n(e),r.s0<0&&(r.s0+=1),r.s1-=n(e),r.s1<0&&(r.s1+=1),r.s2-=n(e),r.s2<0&&(r.s2+=1)}function s(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function l(e,t){var r=new a(e),n=t&&t.state,i=r.next;return i.int32=function(){return 0x100000000*r.next()|0},i.double=function(){return i()+(2097152*i()|0)*11102230246251565e-32},i.quick=i,n&&("object"==typeof n&&s(n,r),i.state=function(){return s(r,{})}),i}i&&i.exports?i.exports=l:r.amdD&&r.amdO?void 0!==(n=(function(){return l}).call(t,r,t,i))&&(i.exports=n):this.alea=l}(0,e=r.nmd(e),r.amdD)},98868:function(e,t,r){var n;!function(e,i,o){function a(e){var t=this,r="";t.next=function(){var e=t.b,r=t.c,n=t.d,i=t.a;return e=e<<25^e>>>7^r,r=r-n|0,n=n<<24^n>>>8^i,i=i-e|0,t.b=e=e<<20^e>>>12^r,t.c=r=r-n|0,t.d=n<<16^r>>>16^i,t.a=i-e|0},t.a=0,t.b=0,t.c=-0x61c88647,t.d=0x517cc1b7,e===Math.floor(e)?(t.a=e/0x100000000|0,t.b=0|e):r+=e;for(var n=0;n>>0)/0x100000000};return i.double=function(){do var e=((r.next()>>>11)+(r.next()>>>0)/0x100000000)/2097152;while(0===e);return e},i.int32=r.next,i.quick=i,n&&("object"==typeof n&&s(n,r),i.state=function(){return s(r,{})}),i}i&&i.exports?i.exports=l:r.amdD&&r.amdO?void 0!==(n=(function(){return l}).call(t,r,t,i))&&(i.exports=n):this.tychei=l}(0,e=r.nmd(e),r.amdD)},87480:function(e,t,r){var n;!function(e,i,o){function a(e){var t=this,r="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:r+=e;for(var n=0;n>>0)/0x100000000};return i.double=function(){do var e=((r.next()>>>11)+(r.next()>>>0)/0x100000000)/2097152;while(0===e);return e},i.int32=r.next,i.quick=i,n&&("object"==typeof n&&s(n,r),i.state=function(){return s(r,{})}),i}i&&i.exports?i.exports=l:r.amdD&&r.amdO?void 0!==(n=(function(){return l}).call(t,r,t,i))&&(i.exports=n):this.xor128=l}(0,e=r.nmd(e),r.amdD)},42346:function(e,t,r){var n;!function(e,i,o){function a(e){var t=this;t.next=function(){var e,r,n=t.w,i=t.X,o=t.i;return t.w=n=n+0x61c88647|0,r=i[o+34&127],e=i[o=o+1&127],r^=r<<13,e^=e<<17,r^=r>>>15,e^=e>>>12,r=i[o]=r^e,t.i=o,r+(n^n>>>16)|0},function(e,t){var r,n,i,o,a,s=[],l=128;for(t===(0|t)?(n=t,t=null):(t+="\0",n=0,l=Math.max(l,t.length)),i=0,o=-32;o>>15,n^=n<<4,n^=n>>>13,o>=0&&(a=a+0x61c88647|0,i=0==(r=s[127&o]^=n+a)?i+1:0);for(i>=128&&(s[127&(t&&t.length||0)]=-1),i=127,o=512;o>0;--o)n=s[i+34&127],r=s[i=i+1&127],n^=n<<13,r^=r<<17,n^=n>>>15,r^=r>>>12,s[i]=n^r;e.w=a,e.X=s,e.i=i}(t,e)}function s(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function l(e,t){null==e&&(e=+new Date);var r=new a(e),n=t&&t.state,i=function(){return(r.next()>>>0)/0x100000000};return i.double=function(){do var e=((r.next()>>>11)+(r.next()>>>0)/0x100000000)/2097152;while(0===e);return e},i.int32=r.next,i.quick=i,n&&(n.X&&s(n,r),i.state=function(){return s(r,{})}),i}i&&i.exports?i.exports=l:r.amdD&&r.amdO?void 0!==(n=(function(){return l}).call(t,r,t,i))&&(i.exports=n):this.xor4096=l}(0,e=r.nmd(e),r.amdD)},43420:function(e,t,r){var n;!function(e,i,o){function a(e){var t=this;t.next=function(){var e,r,n=t.x,i=t.i;return e=n[i],e^=e>>>7,r=e^e<<24^((e=n[i+1&7])^e>>>10)^((e=n[i+3&7])^e>>>3)^((e=n[i+4&7])^e<<7),e=n[i+7&7],e^=e<<13,r^=e^e<<9,n[i]=r,t.i=i+1&7,r},function(e,t){var r,n=[];if(t===(0|t))n[0]=t;else for(r=0,t=""+t;r0;--r)e.next()}(t,e)}function s(e,t){return t.x=e.x.slice(),t.i=e.i,t}function l(e,t){null==e&&(e=+new Date);var r=new a(e),n=t&&t.state,i=function(){return(r.next()>>>0)/0x100000000};return i.double=function(){do var e=((r.next()>>>11)+(r.next()>>>0)/0x100000000)/2097152;while(0===e);return e},i.int32=r.next,i.quick=i,n&&(n.x&&s(n,r),i.state=function(){return s(r,{})}),i}i&&i.exports?i.exports=l:r.amdD&&r.amdO?void 0!==(n=(function(){return l}).call(t,r,t,i))&&(i.exports=n):this.xorshift7=l}(0,e=r.nmd(e),r.amdD)},88150:function(e,t,r){var n;!function(e,i,o){function a(e){var t=this,r="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^(e^e<<1))|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:r+=e;for(var n=0;n>>4),t.next()}function s(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function l(e,t){var r=new a(e),n=t&&t.state,i=function(){return(r.next()>>>0)/0x100000000};return i.double=function(){do var e=((r.next()>>>11)+(r.next()>>>0)/0x100000000)/2097152;while(0===e);return e},i.int32=r.next,i.quick=i,n&&("object"==typeof n&&s(n,r),i.state=function(){return s(r,{})}),i}i&&i.exports?i.exports=l:r.amdD&&r.amdO?void 0!==(n=(function(){return l}).call(t,r,t,i))&&(i.exports=n):this.xorwow=l}(0,e=r.nmd(e),r.amdD)},3808:function(e,t,r){var n;!function(i,o,a){var s,l=a.pow(256,6),u=a.pow(2,52),c=2*u;function d(e,t,r){var n=[],d=f(function e(t,r){var n,i=[],o=typeof t;if(r&&"object"==o)for(n in t)try{i.push(e(t[n],r-1))}catch(e){}return i.length?i:"string"==o?t:t+"\0"}((t=!0==t?{entropy:!0}:t||{}).entropy?[e,m(o)]:null==e?function(){try{var e;return s&&(e=s.randomBytes)?e=e(256):(e=new Uint8Array(256),(i.crypto||i.msCrypto).getRandomValues(e)),m(e)}catch(e){var t=i.navigator,r=t&&t.plugins;return[+new Date,i,r,i.screen,m(o)]}}():e,3),n),g=new h(n),v=function(){for(var e=g.g(6),t=l,r=0;e=c;)e/=2,t/=2,r>>>=1;return(e+r)/t};return v.int32=function(){return 0|g.g(4)},v.quick=function(){return g.g(4)/0x100000000},v.double=v,f(m(g.S),o),(t.pass||r||function(e,t,r,n){return(n&&(n.S&&p(n,g),e.state=function(){return p(g,{})}),r)?(a.random=e,t):e})(v,d,"global"in t?t.global:this==a,t.state)}function h(e){var t,r=e.length,n=this,i=0,o=n.i=n.j=0,a=n.S=[];for(r||(e=[r++]);i<256;)a[i]=i++;for(i=0;i<256;i++)a[i]=a[o=255&o+e[i%r]+(t=a[i])],a[o]=t;(n.g=function(e){for(var t,r=0,i=n.i,o=n.j,a=n.S;e--;)t=a[i=255&i+1],r=256*r+a[255&(a[i]=a[o=255&o+t])+(a[o]=t)];return n.i=i,n.j=o,r})(256)}function p(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function f(e,t){for(var r,n=e+"",i=0;i{"use strict";var n=r(528),i=r(79818),o=r(48660),a=n("%TypeError%"),s=n("%WeakMap%",!0),l=n("%Map%",!0),u=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),h=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),f=i("Map.prototype.has",!0),m=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},g=function(e,t){var r=m(e,t);return r&&r.value},v=function(e,t,r){var n=m(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+o(e))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(l){if(t)return h(t,n)}else if(r)return g(r,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return d(e,n)}else if(l){if(t)return f(t,n)}else if(r)return!!m(r,n);return!1},set:function(n,i){s&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new s),c(e,n,i)):l?(t||(t=new l),p(t,n,i)):(r||(r={key:{},next:null}),v(r,n,i))}};return n}},88110:e=>{var t;t=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r+=(n&i|~n&o)+t[0]-0x28955b88|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[1]-0x173848aa|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[2]+0x242070db|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[4]-0xa83f051|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[5]+0x4787c62a|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[6]-0x57cfb9ed|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[8]+0x698098d8|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[9]-0x74bb0851|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[10]-42063|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[12]+0x6b901122|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[13]-0x2678e6d|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[14]-0x5986bc72|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+i|0)&o|i&~o)+t[1]-0x9e1da9e|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[6]-0x3fbf4cc0|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[5]-0x29d0efa3|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[10]+0x2441453|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[9]+0x21e1cde6|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[14]-0x3cc8f82a|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[13]-0x561c16fb|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[2]-0x3105c08|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+i|0)^i^o)+t[5]-378558|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[8]-0x788e097f|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[1]-0x5b4115bc|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[4]+0x4bdecfa9|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[13]+0x289b7ec6|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[0]-0x155ed806|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[9]-0x262b2fc7|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[12]-0x1924661b|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+i|0,r+=(i^(n|~o))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[7]+0x432aff97|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[14]-0x546bdc59|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[3]-0x70f3336e|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[15]-0x1d31920|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[6]-0x5cfebcec|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[11]-0x42c50dcb|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[2]+0x2ad7d2bb|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+i|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function i(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,i,o,a,s,l,u=e.length,c=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(t=64;t<=u;t+=64)r(c,n(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(c,o),t=0;t<16;t+=1)o[t]=0;return s=parseInt((a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,r(c,o),c}function a(e){var r;for(r=0;r>8*r+4&15]+t[e>>8*r&15];return n}(e[r]);return e.join("")}function s(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,r=[],n=e.length;for(t=0;tc)?new ArrayBuffer(0):(a=new Uint8Array(o=new ArrayBuffer(i=c-u)),s=new Uint8Array(this,u,i),a.set(s),o)}}(),u.prototype.append=function(e){return this.appendBinary(s(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),r=a(this._hash),e&&(r=l(r)),this.reset(),r},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var n,i,o,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(r(this._hash,e),a=0;a<16;a+=1)e[a]=0;i=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(n[1],16)||0,e[14]=i,e[15]=o,r(this._hash,e)},u.hash=function(e,t){return u.hashBinary(s(e),t)},u.hashBinary=function(e,t){var r=a(o(e));return t?l(r):r},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,n,o,a=((n=new Uint8Array((t=this._buff.buffer).byteLength+e.byteLength)).set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),n),s=a.length;for(this._length+=e.byteLength,o=64;o<=s;o+=64)r(this._hash,i(a.subarray(o-64,o)));return this._buff=new Uint8Array(o-64>2]|=n[t]<<(t%4<<3);return this._finish(o,i),r=a(this._hash),e&&(r=l(r)),this.reset(),r},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(c,o),t=0;t<16;t+=1)o[t]=0;return s=parseInt((a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,r(c,o),c}(new Uint8Array(e)));return t?l(n):n},u},e.exports=t()},31569:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"undefined"!=typeof window?i=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),i=void 0):i=self;var i,o=r(88106),a=r(30282),s=r(45810),l=r(62157),u=r(57090),c=r(95409),d=r(31569);function h(){}e.exports=function(e,r){return"function"==typeof r?new t.Request("GET",e).end(r):1==arguments.length?new t.Request("GET",e):new t.Request(e,r)};var p=t=e.exports;t.Request=b,p.getXHR=function(){if(i.XMLHttpRequest&&(!i.location||"file:"!==i.location.protocol||!i.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw Error("Browser-only version of superagent could not find XHR")};var f="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function m(e){if(!u(e))return e;var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&function e(t,r,n){if(void 0!==n){if(null===n){t.push(encodeURI(r));return}if(Array.isArray(n))n.forEach(function(n){e(t,r,n)});else if(u(n))for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e(t,"".concat(r,"[").concat(i,"]"),n[i]);else t.push(encodeURI(r)+"="+encodeURIComponent(n))}}(t,r,e[r]);return t.join("&")}function g(e){for(var t,r,n={},i=e.split("&"),o=0,a=i.length;o0||e instanceof Object)?t(e):null)},y.prototype.toError=function(){var e=this.req,t=e.method,r=e.url,n=Error("cannot ".concat(t," ").concat(r," (").concat(this.status,")"));return n.status=this.status,n.method=t,n.url=r,n},p.Response=y,o(b.prototype),l(b.prototype),b.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},b.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},b.prototype.auth=function(e,t,r){return 1==arguments.length&&(t=""),"object"===n(t)&&null!==t&&(r=t,t=""),r||(r={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,r,function(e){if("function"==typeof btoa)return btoa(e);throw Error("Cannot use basic auth, btoa is not a function")})},b.prototype.query=function(e){return"string"!=typeof e&&(e=m(e)),e&&this._query.push(e),this},b.prototype.attach=function(e,t,r){if(t){if(this._data)throw Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,r||t.name)}return this},b.prototype._getFormData=function(){return this._formData||(this._formData=new i.FormData),this._formData},b.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var r=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),r(e,t)},b.prototype.crossDomainError=function(){var e=Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},b.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},b.prototype.ca=b.prototype.agent,b.prototype.buffer=b.prototype.ca,b.prototype.write=function(){throw Error("Streaming is not supported in browser version of superagent")},b.prototype.pipe=b.prototype.write,b.prototype._isHost=function(e){return e&&"object"===n(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},b.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||h,this._finalizeQueryString(),this._end()},b.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},b.prototype._end=function(){if(this._aborted)return this.callback(Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=p.getXHR();var t=this.xhr,r=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var r,n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var n=function(t,r){r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(e._uploadTimeoutTimer)),r.direction=t,e.emit("progress",r)};if(this.hasListeners("progress"))try{t.addEventListener("progress",n.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",n.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){var i=this._header["content-type"],o=this._serializer||p.serialize[i?i.split(";")[0]:""];!o&&v(i)&&(o=p.serialize["application/json"]),o&&(r=o(r))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===r?null:r)},p.agent=function(){return new d},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){d.prototype[e.toLowerCase()]=function(t,r){var n=new p.Request(e,t);return this._setDefaults(n),r&&n.end(r),n}}),d.prototype.del=d.prototype.delete,p.get=function(e,t,r){var n=p("GET",e);return"function"==typeof t&&(r=t,t=null),t&&n.query(t),r&&n.end(r),n},p.head=function(e,t,r){var n=p("HEAD",e);return"function"==typeof t&&(r=t,t=null),t&&n.query(t),r&&n.end(r),n},p.options=function(e,t,r){var n=p("OPTIONS",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},p.del=w,p.delete=w,p.patch=function(e,t,r){var n=p("PATCH",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},p.post=function(e,t,r){var n=p("POST",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},p.put=function(e,t,r){var n=p("PUT",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n}},57090:e=>{"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},62157:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(57090);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},o.prototype.parse=function(e){return this._parser=e,this},o.prototype.responseType=function(e){return this._responseType=e,this},o.prototype.serialize=function(e){return this._serializer=e,this},o.prototype.timeout=function(e){if(!e||"object"!==n(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},o.prototype.retry=function(e,t){return(0==arguments.length||!0===e)&&(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var a=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),s=new Set([408,413,429,500,502,503,504,521,522,524]);o.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(e,t);if(!0===r)return!0;if(!1===r)return!1}catch(e){console.error(e)}return!!(t&&t.status&&s.has(t.status)||e&&(e.code&&a.has(e.code)||e.timeout&&"ECONNABORTED"===e.code||e.crossDomain))},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},o.prototype.then=function(e,t){var r=this;if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){n.on("abort",function(){if(!r._maxRetries||!(r._maxRetries>r._retries)){if(r.timedout&&r.timedoutError){t(r.timedoutError);return}var e=Error("Aborted");e.code="ABORTED",e.status=r.status,e.method=r.method,e.url=r.url,t(e)}}),n.end(function(r,n){r?t(r):e(n)})})}return this._fullfilledPromise.then(e,t)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(i(e)){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&this.set(r,e[r]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null==e)throw Error(".field(name, val) name can not be empty");if(this._data)throw Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(i(e)){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&this.field(r,e[r]);return this}if(Array.isArray(t)){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.field(e,t[n]);return this}if(null==t)throw Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},o.prototype._auth=function(e,t,r,n){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(n("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},o.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=i(e),r=this._header["content-type"];if(this._formData)throw Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&i(this._data))for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(this._data[n]=e[n]);else"string"==typeof e?(r||this.type("form"),(r=this._header["content-type"])&&(r=r.toLowerCase().trim()),"application/x-www-form-urlencoded"===r?this._data=this._data?"".concat(this._data,"&").concat(e):e:this._data=(this._data||"")+e):this._data=e;return!t||this._isHost(e)||r||this.type("json"),this},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var r=this.url.slice(t+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.slice(0,t)+"?"+r.join("&")}}},o.prototype._appendQueryString=function(){console.warn("Unsupported")},o.prototype._timeoutError=function(e,t,r){if(!this._aborted){var n=Error("".concat(e+t,"ms exceeded"));n.timeout=t,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.timedoutError=n,this.abort(),this.callback(n)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},95409:(e,t,r)=>{"use strict";var n=r(45591);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.get=function(e){return this.header[e.toLowerCase()]},i.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=n.type(t);var r=n.params(t);for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(this[i]=r[i]);this.links={};try{e.link&&(this.links=n.parseLinks(e.link))}catch(e){}},i.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},45591:(e,t)=>{"use strict";function r(e,t){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return n(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,void 0)}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{var n;!function(i){var o,a,s,l=/^\s+/,u=/\s+$/,c=0,d=i.round,h=i.min,p=i.max,f=i.random;function m(e,t){if(t=t||{},(e=e||"")instanceof m)return e;if(!(this instanceof m))return new m(e,t);var r,n,o,a,s,f,g,v,y,b,w,k,x,_,S,E,C,D,A,j,O=(n={r:0,g:0,b:0},o=1,a=null,s=null,f=null,g=!1,v=!1,"string"==typeof(r=e)&&(r=function(e){e=e.replace(l,"").replace(u,"").toLowerCase();var t,r=!1;if(R[e])e=R[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=q.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=q.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=q.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=q.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=q.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=q.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=q.hex8.exec(e))?{r:L(t[1]),g:L(t[2]),b:L(t[3]),a:L(t[4])/255,format:r?"name":"hex8"}:(t=q.hex6.exec(e))?{r:L(t[1]),g:L(t[2]),b:L(t[3]),format:r?"name":"hex"}:(t=q.hex4.exec(e))?{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),a:L(t[4]+""+t[4])/255,format:r?"name":"hex8"}:!!(t=q.hex3.exec(e))&&{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),format:r?"name":"hex"}}(r)),"object"==typeof r&&(H(r.r)&&H(r.g)&&H(r.b)?(y=r.r,b=r.g,w=r.b,n={r:255*F(y,255),g:255*F(b,255),b:255*F(w,255)},g=!0,v="%"===String(r.r).substr(-1)?"prgb":"rgb"):H(r.h)&&H(r.s)&&H(r.v)?(a=z(r.s),s=z(r.v),k=r.h,x=a,_=s,k=6*F(k,360),x=F(x,100),_=F(_,100),S=i.floor(k),E=k-S,C=_*(1-x),D=_*(1-E*x),A=_*(1-(1-E)*x),n={r:255*[_,D,C,C,A,_][j=S%6],g:255*[A,_,_,D,C,C][j],b:255*[C,C,A,_,_,D][j]},g=!0,v="hsv"):H(r.h)&&H(r.s)&&H(r.l)&&(a=z(r.s),f=z(r.l),n=function(e,t,r){var n,i,o;function a(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=F(e,360),t=F(t,100),r=F(r,100),0===t)n=i=o=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*n,g:255*i,b:255*o}}(r.h,a,f),g=!0,v="hsl"),r.hasOwnProperty("a")&&(o=r.a)),o=N(o),{ok:g,format:r.format||v,r:h(255,p(n.r,0)),g:h(255,p(n.g,0)),b:h(255,p(n.b,0)),a:o});this._originalInput=e,this._r=O.r,this._g=O.g,this._b=O.b,this._a=O.a,this._roundA=d(100*this._a)/100,this._format=t.format||O.format,this._gradientType=t.gradientType,this._r<1&&(this._r=d(this._r)),this._g<1&&(this._g=d(this._g)),this._b<1&&(this._b=d(this._b)),this._ok=O.ok,this._tc_id=c++}function g(e,t,r){var n,i,o=p(e=F(e,255),t=F(t,255),r=F(r,255)),a=h(e,t,r),s=(o+a)/2;if(o==a)n=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case e:n=(t-r)/l+(t>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(m(n));return o}function P(e,t){t=t||6;for(var r=m(e).toHsv(),n=r.h,i=r.s,o=r.v,a=[],s=1/t;t--;)a.push(m({h:n,s:i,v:o})),o=(o+s)%1;return a}m.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:i.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=d(100*this._a)/100,this},toHsv:function(){var e=v(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=v(this._r,this._g,this._b),t=d(360*e.h),r=d(100*e.s),n=d(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=g(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=g(this._r,this._g,this._b),t=d(360*e.h),r=d(100*e.s),n=d(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return y(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t,r,n,i,o;return t=this._r,r=this._g,n=this._b,i=this._a,o=[B(d(t).toString(16)),B(d(r).toString(16)),B(d(n).toString(16)),B(U(i))],e&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:d(this._r),g:d(this._g),b:d(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+d(this._r)+", "+d(this._g)+", "+d(this._b)+")":"rgba("+d(this._r)+", "+d(this._g)+", "+d(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:d(100*F(this._r,255))+"%",g:d(100*F(this._g,255))+"%",b:d(100*F(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+d(100*F(this._r,255))+"%, "+d(100*F(this._g,255))+"%, "+d(100*F(this._b,255))+"%)":"rgba("+d(100*F(this._r,255))+"%, "+d(100*F(this._g,255))+"%, "+d(100*F(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[y(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+b(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var i=m(e);r="#"+b(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return!t&&n&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return m(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(A,arguments)},tetrad:function(){return this._applyCombination(j,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&("a"===n?r[n]=e[n]:r[n]=z(e[n]));e=r}return m(e,t)},m.equals=function(e,t){return!!e&&!!t&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:f(),g:f(),b:f()})},m.mix=function(e,t,r){r=0===r?0:r||50;var n=m(e).toRgb(),i=m(t).toRgb(),o=r/100;return m({r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a})},m.readability=function(e,t){var r=m(e),n=m(t);return(i.max(r.getLuminance(),n.getLuminance())+.05)/(i.min(r.getLuminance(),n.getLuminance())+.05)},m.isReadable=function(e,t,r){var n,i,o,a,s,l=m.readability(e,t);switch(s=!1,(i=((n=(n=r)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),o=(n.size||"small").toLowerCase(),"AA"!==i&&"AAA"!==i&&(i="AA"),"small"!==o&&"large"!==o&&(o="small"),a={level:i,size:o}).level+a.size){case"AAsmall":case"AAAlarge":s=l>=4.5;break;case"AAlarge":s=l>=3;break;case"AAAsmall":s=l>=7}return s},m.mostReadable=function(e,t,r){var n,i,o,a,s=null,l=0;i=(r=r||{}).includeFallbackColors,o=r.level,a=r.size;for(var u=0;ul&&(l=n,s=m(t[u]));return m.isReadable(e,s,{level:o,size:a})||!i?s:(r.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],r))};var R=m.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=m.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(R);function N(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function F(e,t){"string"==typeof(r=e)&&-1!=r.indexOf(".")&&1===parseFloat(r)&&(e="100%");var r,n,o="string"==typeof(n=e)&&-1!=n.indexOf("%");return(e=h(t,p(0,parseFloat(e))),o&&(e=parseInt(e*t,10)/100),1e-6>i.abs(e-t))?1:e%t/parseFloat(t)}function I(e){return h(1,p(0,e))}function L(e){return parseInt(e,16)}function B(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function U(e){return i.round(255*parseFloat(e)).toString(16)}var q=(a="[\\s|\\(]+("+(o="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+o+")[,|\\s]+("+o+")\\s*\\)?",s="[\\s|\\(]+("+o+")[,|\\s]+("+o+")[,|\\s]+("+o+")[,|\\s]+("+o+")\\s*\\)?",{CSS_UNIT:new RegExp(o),rgb:RegExp("rgb"+a),rgba:RegExp("rgba"+s),hsl:RegExp("hsl"+a),hsla:RegExp("hsla"+s),hsv:RegExp("hsv"+a),hsva:RegExp("hsva"+s),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(e){return!!q.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0!==(n=(function(){return m}).call(t,r,t,e))&&(e.exports=n)}(Math)},29097:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>H});var n=r(59980),i=r(26084),o="tippy-content",a="tippy-arrow",s="tippy-svg-arrow",l={passive:!0,capture:!0},u=function(){return document.body};function c(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function d(e,t){var r=({}).toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function h(e,t){return"function"==typeof e?e.apply(void 0,t):e}function p(e,t){var r;return 0===t?e:function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)}}function f(e){return[].concat(e)}function m(e,t){-1===e.indexOf(t)&&e.push(t)}function g(e){return[].slice.call(e)}function v(e){return Object.keys(e).reduce(function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t},{})}function y(){return document.createElement("div")}function b(e){return["Element","Fragment"].some(function(t){return d(e,t)})}function w(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function k(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function x(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,r)})}function _(e,t){for(var r,n=t;n;){if(e.contains(n))return!0;n=null==n.getRootNode?void 0:null==(r=n.getRootNode())?void 0:r.host}return!1}var S={isTouch:!1},E=0;function C(){!S.isTouch&&(S.isTouch=!0,window.performance&&document.addEventListener("mousemove",D))}function D(){var e=performance.now();e-E<20&&(S.isTouch=!1,document.removeEventListener("mousemove",D)),E=e}function A(){var e=document.activeElement;if(e&&e._tippy&&e._tippy.reference===e){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var j=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,O=Object.assign({appendTo:u,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),T=Object.keys(O);function P(e){var t=(e.plugins||[]).reduce(function(t,r){var n,i=r.name,o=r.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:null!=(n=O[i])?n:o),t},{});return Object.assign({},e,t)}function R(e,t){var r,n=Object.assign({},t,{content:h(t.content,[e])},t.ignoreAttributes?{}:((r=t.plugins)?Object.keys(P(Object.assign({},O,{plugins:r}))):T).reduce(function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t},{}));return n.aria=Object.assign({},O.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function M(e,t){e.innerHTML=t}function N(e){var t=y();return!0===e?t.className=a:(t.className=s,b(e)?t.appendChild(e):M(t,e)),t}function F(e,t){b(t.content)?(M(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?M(e,t.content):e.textContent=t.content)}function I(e){var t=e.firstElementChild,r=g(t.children);return{box:t,content:r.find(function(e){return e.classList.contains(o)}),arrow:r.find(function(e){return e.classList.contains(a)||e.classList.contains(s)}),backdrop:r.find(function(e){return e.classList.contains("tippy-backdrop")})}}function L(e){var t=y(),r=y();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=y();function i(r,n){var i=I(t),o=i.box,a=i.content,s=i.arrow;n.theme?o.setAttribute("data-theme",n.theme):o.removeAttribute("data-theme"),"string"==typeof n.animation?o.setAttribute("data-animation",n.animation):o.removeAttribute("data-animation"),n.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),(r.content!==n.content||r.allowHTML!==n.allowHTML)&&F(a,e.props),n.arrow?s?r.arrow!==n.arrow&&(o.removeChild(s),o.appendChild(N(n.arrow))):o.appendChild(N(n.arrow)):s&&o.removeChild(s)}return n.className=o,n.setAttribute("data-state","hidden"),F(n,e.props),t.appendChild(r),r.appendChild(n),i(e.props,e.props),{popper:t,onUpdate:i}}L.$$tippy=!0;var B=1,z=[],U=[];function q(e,t){void 0===t&&(t={});var r=O.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",C,l),window.addEventListener("blur",A);var i=Object.assign({},t,{plugins:r}),o=(b(e)?[e]:d(e,"NodeList")?g(e):Array.isArray(e)?e:g(document.querySelectorAll(e))).reduce(function(e,t){var r=t&&function(e,t){var r,i,o,a,s,b,E,C,D=R(e,Object.assign({},O,P(v(t)))),A=!1,T=!1,M=!1,N=!1,F=[],L=p(eg,D.interactiveDebounce),q=B++,H=(r=D.plugins).filter(function(e,t){return r.indexOf(e)===t}),V={id:q,reference:e,popper:y(),popperInstance:null,props:D,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:H,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(a)},setProps:function(t){if(!V.state.isDestroyed){er("onBeforeUpdate",[V,t]),ef();var r=V.props,n=R(e,Object.assign({},r,v(t),{ignoreAttributes:!0}));V.props=n,ep(),r.interactiveDebounce!==n.interactiveDebounce&&(eo(),L=p(eg,n.interactiveDebounce)),r.triggerTarget&&!n.triggerTarget?f(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded"),ei(),et(),Y&&Y(r,n),V.popperInstance&&(ew(),ex().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),er("onAfterUpdate",[V,t])}},setContent:function(e){V.setProps({content:e})},show:function(){var t,r,n,i=V.state.isVisible,o=V.state.isDestroyed,a=!V.state.isEnabled,s=S.isTouch&&!V.props.touch,l=c(V.props.duration,0,O.duration);if(!(i||o||a||s||(C||e).hasAttribute("disabled"))&&(er("onShow",[V],!1),!1!==V.props.onShow(V))){if(V.state.isVisible=!0,Q()&&(W.style.visibility="visible"),et(),eu(),V.state.isMounted||(W.style.transition="none"),Q()){var d=I(W);w([d.box,d.content],0)}E=function(){var e;if(V.state.isVisible&&!N){if(N=!0,W.offsetHeight,W.style.transition=V.props.moveTransition,Q()&&V.props.animation){var t=I(W),r=t.box,n=t.content;w([r,n],l),k([r,n],"visible")}en(),ei(),m(U,V),null==(e=V.popperInstance)||e.forceUpdate(),er("onMount",[V]),V.props.animation&&Q()&&ed(l,function(){V.state.isShown=!0,er("onShown",[V])})}},r=V.props.appendTo,n=C||e,(t=V.props.interactive&&r===u||"parent"===r?n.parentNode:h(r,[n])).contains(W)||t.appendChild(W),V.state.isMounted=!0,ew()}},hide:function(){var e,t=!V.state.isVisible,r=V.state.isDestroyed,n=!V.state.isEnabled,i=c(V.props.duration,1,O.duration);if(!t&&!r&&!n&&(er("onHide",[V],!1),!1!==V.props.onHide(V))){if(V.state.isVisible=!1,V.state.isShown=!1,N=!1,A=!1,Q()&&(W.style.visibility="hidden"),eo(),ec(),et(!0),Q()){var o=I(W),a=o.box,s=o.content;V.props.animation&&(w([a,s],i),k([a,s],"hidden"))}(en(),ei(),V.props.animation)?Q()&&(e=V.unmount,ed(i,function(){!V.state.isVisible&&W.parentNode&&W.parentNode.contains(W)&&e()})):V.unmount()}},hideWithInteractivity:function(e){Z().addEventListener("mousemove",L),m(z,L),L(e)},enable:function(){V.state.isEnabled=!0},disable:function(){V.hide(),V.state.isEnabled=!1},unmount:function(){V.state.isVisible&&V.hide(),V.state.isMounted&&(ek(),ex().forEach(function(e){e._tippy.unmount()}),W.parentNode&&W.parentNode.removeChild(W),U=U.filter(function(e){return e!==V}),V.state.isMounted=!1,er("onHidden",[V]))},destroy:function(){V.state.isDestroyed||(V.clearDelayTimeouts(),V.unmount(),ef(),delete e._tippy,V.state.isDestroyed=!0,er("onDestroy",[V]))}};if(!D.render)return V;var $=D.render(V),W=$.popper,Y=$.onUpdate;W.setAttribute("data-tippy-root",""),W.id="tippy-"+V.id,V.popper=W,e._tippy=V,W._tippy=V;var G=H.map(function(e){return e.fn(V)}),K=e.hasAttribute("aria-expanded");return ep(),ei(),et(),er("onCreate",[V]),D.showOnCreate&&e_(),W.addEventListener("mouseenter",function(){V.props.interactive&&V.state.isVisible&&V.clearDelayTimeouts()}),W.addEventListener("mouseleave",function(){V.props.interactive&&V.props.trigger.indexOf("mouseenter")>=0&&Z().addEventListener("mousemove",L)}),V;function X(){var e=V.props.touch;return Array.isArray(e)?e:[e,0]}function J(){return"hold"===X()[0]}function Q(){var e;return!!(null!=(e=V.props.render)&&e.$$tippy)}function Z(){var t,r,n=(C||e).parentNode;return n&&null!=(r=f(n)[0])&&null!=(t=r.ownerDocument)&&t.body?r.ownerDocument:document}function ee(e){return V.state.isMounted&&!V.state.isVisible||S.isTouch||s&&"focus"===s.type?0:c(V.props.delay,e?0:1,O.delay)}function et(e){void 0===e&&(e=!1),W.style.pointerEvents=V.props.interactive&&!e?"":"none",W.style.zIndex=""+V.props.zIndex}function er(e,t,r){if(void 0===r&&(r=!0),G.forEach(function(r){r[e]&&r[e].apply(r,t)}),r){var n;(n=V.props)[e].apply(n,t)}}function en(){var t=V.props.aria;if(t.content){var r="aria-"+t.content,n=W.id;f(V.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(r);if(V.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var i=t&&t.replace(n,"").trim();i?e.setAttribute(r,i):e.removeAttribute(r)}})}}function ei(){!K&&V.props.aria.expanded&&f(V.props.triggerTarget||e).forEach(function(t){V.props.interactive?t.setAttribute("aria-expanded",V.state.isVisible&&t===(C||e)?"true":"false"):t.removeAttribute("aria-expanded")})}function eo(){Z().removeEventListener("mousemove",L),z=z.filter(function(e){return e!==L})}function ea(t){if(!S.isTouch||!M&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!(V.props.interactive&&_(W,r))){if(f(V.props.triggerTarget||e).some(function(e){return _(e,r)})){if(S.isTouch||V.state.isVisible&&V.props.trigger.indexOf("click")>=0)return}else er("onClickOutside",[V,t]);!0!==V.props.hideOnClick||(V.clearDelayTimeouts(),V.hide(),T=!0,setTimeout(function(){T=!1}),V.state.isMounted||ec())}}}function es(){M=!0}function el(){M=!1}function eu(){var e=Z();e.addEventListener("mousedown",ea,!0),e.addEventListener("touchend",ea,l),e.addEventListener("touchstart",el,l),e.addEventListener("touchmove",es,l)}function ec(){var e=Z();e.removeEventListener("mousedown",ea,!0),e.removeEventListener("touchend",ea,l),e.removeEventListener("touchstart",el,l),e.removeEventListener("touchmove",es,l)}function ed(e,t){var r=I(W).box;function n(e){e.target===r&&(x(r,"remove",n),t())}if(0===e)return t();x(r,"remove",b),x(r,"add",n),b=n}function eh(t,r,n){void 0===n&&(n=!1),f(V.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,r,n),F.push({node:e,eventType:t,handler:r,options:n})})}function ep(){J()&&(eh("touchstart",em,{passive:!0}),eh("touchend",ev,{passive:!0})),V.props.trigger.split(/\s+/).filter(Boolean).forEach(function(e){if("manual"!==e)switch(eh(e,em),e){case"mouseenter":eh("mouseleave",ev);break;case"focus":eh(j?"focusout":"blur",ey);break;case"focusin":eh("focusout",ey)}})}function ef(){F.forEach(function(e){var t=e.node,r=e.eventType,n=e.handler,i=e.options;t.removeEventListener(r,n,i)}),F=[]}function em(e){var t,r=!1;if(!(!V.state.isEnabled||eb(e))&&!T){var n=(null==(t=s)?void 0:t.type)==="focus";s=e,C=e.currentTarget,ei(),!V.state.isVisible&&d(e,"MouseEvent")&&z.forEach(function(t){return t(e)}),"click"===e.type&&(0>V.props.trigger.indexOf("mouseenter")||A)&&!1!==V.props.hideOnClick&&V.state.isVisible?r=!0:e_(e),"click"===e.type&&(A=!r),r&&!n&&eS(e)}}function eg(t){var r,n,i,o=t.target,a=(C||e).contains(o)||W.contains(o);("mousemove"!==t.type||!a)&&(r=ex().concat(W).map(function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:D}:null}).filter(Boolean),n=t.clientX,i=t.clientY,r.every(function(e){var t=e.popperRect,r=e.popperState,o=e.props.interactiveBorder,a=r.placement.split("-")[0],s=r.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,c="right"===a?s.left.x:0,d="left"===a?s.right.x:0,h=t.top-i+l>o,p=i-t.bottom-u>o,f=t.left-n+c>o,m=n-t.right-d>o;return h||p||f||m})&&(eo(),eS(t)))}function ev(e){if(!(eb(e)||V.props.trigger.indexOf("click")>=0&&A)){if(V.props.interactive){V.hideWithInteractivity(e);return}eS(e)}}function ey(t){0>V.props.trigger.indexOf("focusin")&&t.target!==(C||e)||V.props.interactive&&t.relatedTarget&&W.contains(t.relatedTarget)||eS(t)}function eb(e){return!!S.isTouch&&J()!==e.type.indexOf("touch")>=0}function ew(){ek();var t=V.props,r=t.popperOptions,i=t.placement,o=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,l=Q()?I(W).arrow:null,u=a?{getBoundingClientRect:a,contextElement:a.contextElement||C||e}:e,c=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(Q()){var r=I(W).box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)}),t.attributes.popper={}}}}];Q()&&l&&c.push({name:"arrow",options:{element:l,padding:3}}),c.push.apply(c,(null==r?void 0:r.modifiers)||[]),V.popperInstance=(0,n.n4)(u,W,Object.assign({},r,{placement:i,onFirstUpdate:E,modifiers:c}))}function ek(){V.popperInstance&&(V.popperInstance.destroy(),V.popperInstance=null)}function ex(){return g(W.querySelectorAll("[data-tippy-root]"))}function e_(e){V.clearDelayTimeouts(),e&&er("onTrigger",[V,e]),eu();var t=ee(!0),r=X(),n=r[0],o=r[1];S.isTouch&&"hold"===n&&o&&(t=o),t?i=setTimeout(function(){V.show()},t):V.show()}function eS(e){if(V.clearDelayTimeouts(),er("onUntrigger",[V,e]),!V.state.isVisible){ec();return}if(!(V.props.trigger.indexOf("mouseenter")>=0&&V.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0)||!A){var t=ee(!1);t?o=setTimeout(function(){V.state.isVisible&&V.hide()},t):a=requestAnimationFrame(function(){V.hide()})}}}(t,i);return r&&e.push(r),e},[]);return b(e)?o[0]:o}q.defaultProps=O,q.setDefaultProps=function(e){Object.keys(e).forEach(function(t){O[t]=e[t]})},q.currentInput=S,Object.assign({},i.A,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}});q.setDefaultProps({render:L});let H=q},59646:(e,t,r)=>{"use strict";var n=r(18652),i=null,o=function(e,t){let n=t&&t.allowPrivateTLD||!1,o=t&&t.allowUnknownTLD||!1,a=t&&t.allowDotlessTLD||!1;i||((i=r(49844)).combined=Object.assign({},i.icann,i.private));for(var s,l=e.split("."),u="",c=-1,d=n?i.combined:i.icann,h=l.length-1;h>=0;h--)s=l[h],d[u=u?s+"."+u:s]&&(c=d[u]);if(-1==c&&o&&(c=1),(l.length<=c||-1==c)&&!(l.length==c&&a))throw Error("Invalid TLD "+JSON.stringify({parts:l,tld_level:c,allowUnknownTLD:o}));return{tld:l.slice(-c).join("."),domain:l.slice(-c-1).join("."),sub:l.slice(0,-c-1).join(".")}};e.exports=function(e,t){return"string"==typeof e&&(e=n.parse(e)),o(e.hostname,t)},e.exports.parse_host=o},71761:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n{"use strict";r.d(t,{Cl:()=>n,Tt:()=>i,fX:()=>a,zs:()=>o});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function o(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function a(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i{"use strict";function n(e,t){return Array(t+1).join(e)}r.d(t,{A:()=>T});var i,o=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function a(e){return c(e,o)}var s=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function l(e){return c(e,s)}var u=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function c(e,t){return t.indexOf(e.nodeName)>=0}function d(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}var h={};function p(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}function f(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function m(e,t,r){for(var n=0;n-1)return!0}else if("function"==typeof n){if(n.call(e,t,r))return!0}else throw TypeError("`filter` needs to be a string, array, or function")}(i,t,r))return i}}function g(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function v(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}h.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},h.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+"\n"}},h.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var i=Number(t.nodeName.charAt(1));if("setext"!==r.headingStyle||!(i<3))return"\n\n"+n("#",i)+" "+e+"\n\n";var o=n(1===i?"=":"-",e.length);return"\n\n"+e+"\n"+o+"\n\n"}},h.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},h.list={filter:["ul","ol"],replacement:function(e,t){var r=t.parentNode;return"LI"===r.nodeName&&r.lastElementChild===t?"\n"+e:"\n\n"+e+"\n\n"}},h.listItem={filter:"li",replacement:function(e,t,r){e=e.replace(/^\n+/,"").replace(/\n+$/,"\n").replace(/\n/gm,"\n ");var n=r.bulletListMarker+" ",i=t.parentNode;if("OL"===i.nodeName){var o=i.getAttribute("start"),a=Array.prototype.indexOf.call(i.children,t);n=(o?Number(o)+a:a+1)+". "}return n+e+(t.nextSibling&&!/\n$/.test(e)?"\n":"")}},h.indentedCodeBlock={filter:function(e,t){return"indented"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,r){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},h.fencedCodeBlock={filter:function(e,t){return"fenced"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,r){for(var i,o=((t.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],a=t.firstChild.textContent,s=r.fence.charAt(0),l=3,u=RegExp("^"+s+"{3,}","gm");i=u.exec(a);)i[0].length>=l&&(l=i[0].length+1);var c=n(s,l);return"\n\n"+c+o+"\n"+a.replace(/\n$/,"")+"\n"+c+"\n\n"}},h.horizontalRule={filter:"hr",replacement:function(e,t,r){return"\n\n"+r.hr+"\n\n"}},h.inlineLink={filter:function(e,t){return"inlined"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var r=t.getAttribute("href"),n=p(t.getAttribute("title"));return n&&(n=' "'+n+'"'),"["+e+"]("+r+n+")"}},h.referenceLink={filter:function(e,t){return"referenced"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t,r){var n,i,o=t.getAttribute("href"),a=p(t.getAttribute("title"));switch(a&&(a=' "'+a+'"'),r.linkReferenceStyle){case"collapsed":n="["+e+"][]",i="["+e+"]: "+o+a;break;case"shortcut":n="["+e+"]",i="["+e+"]: "+o+a;break;default:var s=this.references.length+1;n="["+e+"]["+s+"]",i="["+s+"]: "+o+a}return this.references.push(i),n},references:[],append:function(e){var t="";return this.references.length&&(t="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),t}},h.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}},h.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}},h.code={filter:function(e){var t=e.previousSibling||e.nextSibling,r="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!r},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];-1!==n.indexOf(r);)r+="`";return r+t+e+t+r}},h.image={filter:"img",replacement:function(e,t){var r=p(t.getAttribute("alt")),n=t.getAttribute("src")||"",i=p(t.getAttribute("title"));return n?"!["+r+"]("+n+(i?' "'+i+'"':"")+")":""}},f.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){var t;return e.isBlank?this.blankRule:(t=m(this.array,e,this.options))||(t=m(this._keep,e,this.options))||(t=m(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t'+e+"","text/html").getElementById("turndown-root"):e.cloneNode(!0),isBlock:a,isVoid:l,isPre:t.preformattedCode?k:null}),r}function k(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function x(e,t){return e.isBlock=a(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=!l(e)&&!c(e,u)&&/^\s*$/i.test(e.textContent)&&!d(e,s)&&!d(e,u),e.flankingWhitespace=function(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r,n={leading:(r=e.textContent.match(/^(([ \t\r\n]*)(\s*))[\s\S]*?((\s*?)([ \t\r\n]*))$/))[1],leadingAscii:r[2],leadingNonAscii:r[3],trailing:r[4],trailingNonAscii:r[5],trailingAscii:r[6]};return n.leadingAscii&&_("left",e,t)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&_("right",e,t)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}(e,t),e}function _(e,t,r){var n,i,o;return"left"===e?(n=t.previousSibling,i=/ $/):(n=t.nextSibling,i=/^ /),n&&(3===n.nodeType?o=i.test(n.nodeValue):r.preformattedCode&&"CODE"===n.nodeName?o=!1:1!==n.nodeType||a(n)||(o=i.test(n.textContent))),o}var S=Array.prototype.reduce,E=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function C(e){if(!(this instanceof C))return new C(e);this.options=function(e){for(var t=1;t0&&"\n"===e[t-1];)t--;return e.substring(0,t)}(e),n=t.replace(/^\n*/,""),i=Math.max(e.length-r.length,t.length-n.length);return r+"\n\n".substring(0,i)+n}C.prototype={turndown:function(e){if(!(null!=e&&("string"==typeof e||e.nodeType&&(1===e.nodeType||9===e.nodeType||11===e.nodeType))))throw TypeError(e+" is not a string, or an element/document/fragment node.");return""===e?"":A.call(this,D.call(this,new w(e,this.options)))},use:function(e){if(Array.isArray(e))for(var t=0;t0?2==s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3==s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):void 0:this[s[0]]=c?s[1].call(this,c,s[2]):void 0:4==s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):o):this[s]=c||o;d+=2}},str:function(e,t){for(var r in t)if(typeof t[r]===l&&t[r].length>0){for(var n=0;n255?x.trim(e,255):e,this},this.setUA(r),this};C.VERSION="0.7.28",C.BROWSER={NAME:d,MAJOR:"major",VERSION:f},C.CPU={ARCHITECTURE:m},C.DEVICE={MODEL:c,VENDOR:p,TYPE:h,CONSOLE:g,MOBILE:v,SMARTTV:b,TABLET:y,WEARABLE:w,EMBEDDED:k},C.ENGINE={NAME:d,VERSION:f},C.OS={NAME:d,VERSION:f},typeof t!==s?(e.exports&&(t=e.exports=C),t.UAParser=C):o!==(n=(function(){return C}).call(t,r,t,e))&&(e.exports=n);var D=void 0!==i&&(i.jQuery||i.Zepto);if(D&&!D.ua){var A=new C;D.ua=A.getResult(),D.ua.get=function(){return A.getUA()},D.ua.set=function(e){A.setUA(e);var t=A.getResult();for(var r in t)D.ua[r]=t[r]}}}("object"==typeof window?window:this)},88583:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(r=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])},76850:(e,t,r)=>{"use strict";t.MH=void 0;let n=r(88583);function i(e,t,r){let i=e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16);if(Number.isNaN(i)||void 0!==r&&r!==e.length)throw SyntaxError(n.errorMessages.get(t));return i}function o(e,t){let r=i(e,n.ErrorType.MalformedUnicode,4);return void 0!==t?String.fromCharCode(r,i(t,n.ErrorType.MalformedUnicode,4)):String.fromCharCode(r)}let a=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t"," "],["v","\v"],["0","\0"]]),s=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;t.MH=function(e,t=!1){return e.replace(s,function(e,r,s,l,u,c,d,h,p){if(void 0!==r)return"\\";if(void 0!==s)return String.fromCharCode(i(s,n.ErrorType.MalformedHexadecimal,2));if(void 0!==l)return function(e){if(!("{"===e.charAt(0)&&"}"===e.charAt(e.length-1)))throw SyntaxError(n.errorMessages.get(n.ErrorType.MalformedUnicode));let t=i(e.slice(1,-1),n.ErrorType.MalformedUnicode);try{return String.fromCodePoint(t)}catch(e){throw e instanceof RangeError?SyntaxError(n.errorMessages.get(n.ErrorType.CodePointLimit)):e}}(l);if(void 0!==u)return o(u,c);if(void 0!==d)return o(d);if("0"===h)return"\0";if(void 0!==h)return function(e,t=!1){if(t)throw SyntaxError(n.errorMessages.get(n.ErrorType.OctalDeprecation));return String.fromCharCode(parseInt(e,8))}(h,!t);if(void 0!==p)return a.get(p)||p;throw SyntaxError(n.errorMessages.get(n.ErrorType.EndOfString))})}},52225:(e,t,r)=>{"use strict";var n=r(33062),i=r(1359),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(o,"")}var h=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],p={hash:1,query:1};function f(e){"undefined"!=typeof window?t=window:void 0!==r.g?t=r.g:"undefined"!=typeof self?t=self:t={};var t,n,i=t.location||{},o={},a=typeof(e=e||i);if("blob:"===e.protocol)o=new v(unescape(e.pathname),{});else if("string"===a)for(n in o=new v(e,{}),p)delete o[n];else if("object"===a){for(n in e)n in p||(o[n]=e[n]);void 0===o.slashes&&(o.slashes=s.test(e.href))}return o}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=(e=d(e)).replace(a,""),t=t||{};var r,n=u.exec(e),i=n[1]?n[1].toLowerCase():"",o=!!n[2],s=!!n[3],l=0;return o?s?(r=n[2]+n[3]+n[4],l=n[2].length+n[3].length):(r=n[2]+n[4],l=n[2].length):s?(r=n[3]+n[4],l=n[3].length):r=n[4],"file:"===i?l>=2&&(r=r.slice(2)):m(i)?r=n[4]:i?o&&(r=r.slice(2)):l>=2&&m(t.protocol)&&(r=n[4]),{protocol:i,slashes:o||m(i),slashesCount:l,rest:r}}function v(e,t,r){if(e=(e=d(e)).replace(a,""),!(this instanceof v))return new v(e,t,r);var o,s,l,u,p,y,b=h.slice(),w=typeof t,k=0;for("object"!==w&&"string"!==w&&(r=t,t=null),r&&"function"!=typeof r&&(r=i.parse),o=!(s=g(e||"",t=f(t))).protocol&&!s.slashes,this.slashes=s.slashes||o&&t.slashes,this.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||c.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!m(this.protocol)))&&(b[3]=[/(.*)/,"pathname"]);k{"use strict";r.d(t,{S:()=>i});var n=r(14041);function i(e,t){var r,i,o;return r=t||null,i=function(t){return e.forEach(function(e){return"function"==typeof e?e(t):e&&(e.current=t),e})},(o=(0,n.useState)(function(){return{value:r,callback:i,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=i,o.facade}},1666:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(78693),i=r(14041),o=function(e){var t=e.sideCar,r=(0,n.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw Error("Sidecar medium not found");return i.createElement(o,(0,n.Cl)({},r))};function a(e,t){return e.useMedium(t),o}o.isSideCarExport=!0},95778:(e,t,r)=>{"use strict";r.d(t,{C:()=>a,f:()=>s});var n=r(78693);function i(e){return e}function o(e,t){void 0===t&&(t=i);var r=[],n=!1;return{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;r=[],i.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}}function a(e,t){return void 0===t&&(t=i),o(e,t)}function s(e){void 0===e&&(e={});var t=o(null);return t.options=(0,n.Cl)({async:!0,ssr:!1},e),t}},78693:(e,t,r)=>{"use strict";r.d(t,{Cl:()=>n,Tt:()=>i});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}Object.create,Object.create},34026:(e,t,r)=>{"use strict";var n=r(14041),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},4965:(e,t,r)=>{"use strict";var n=r(14041),i=r(58139),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=n.useRef,l=n.useEffect,u=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var p=a(e,(d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=n(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var r=n(e);return void 0!==i&&i(t,r)?t:(a=e,s=r)}var a,s,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]))[0],d[1]);return l(function(){h.hasValue=!0,h.value=p},[p]),c(p),p}},58139:(e,t,r)=>{"use strict";e.exports=r(34026)},37121:(e,t,r)=>{"use strict";e.exports=r(4965)},11016:function(e,t,r){!function(e){"use strict";let t;let n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:e=>`Symbol(${e})`;function i(){}let o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:void 0;function a(e){return"object"==typeof e&&null!==e||"function"==typeof e}let s=Promise,l=Promise.prototype.then,u=Promise.resolve.bind(s),c=Promise.reject.bind(s);function d(e){return new s(e)}function h(e,t,r){return l.call(e,t,r)}function p(e,t,r){h(h(e,t,r),void 0,i)}function f(e,t){p(e,void 0,t)}function m(e){h(e,void 0,i)}let g=(()=>{let e=o&&o.queueMicrotask;if("function"==typeof e)return e;let t=u(void 0);return e=>h(t,e)})();function v(e,t,r){if("function"!=typeof e)throw TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function y(e,t,r){try{var n;return n=v(e,t,r),u(n)}catch(e){return c(e)}}class b{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(e){let t=this._back,r=t;16383===t._elements.length&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size}shift(){let e=this._front,t=e,r=this._cursor,n=r+1,i=e._elements,o=i[r];return 16384===n&&(t=e._next,n=0),--this._size,this._cursor=n,e!==t&&(this._front=t),i[r]=void 0,o}forEach(e){let t=this._cursor,r=this._front,n=r._elements;for(;!(t===n.length&&void 0===r._next||t===n.length&&(n=(r=r._next)._elements,t=0,0===n.length));)e(n[t]),++t}peek(){let e=this._front,t=this._cursor;return e._elements[t]}}function w(e,t){var r;e._ownerReadableStream=t,t._reader=e,"readable"===t._state?S(e):"closed"===t._state?(S(e),C(e)):(r=t._storedError,S(e),E(e,r))}function k(e,t){return tH(e._ownerReadableStream,t)}function x(e){var t;"readable"===e._ownerReadableStream._state?E(e,TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):(t=TypeError("Reader was released and can no longer be used to monitor the stream's closedness"),S(e),E(e,t)),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function _(e){return TypeError("Cannot "+e+" a stream using a released reader")}function S(e){e._closedPromise=d((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r})}function E(e,t){void 0!==e._closedPromise_reject&&(m(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function C(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}let D=n("[[AbortSteps]]"),A=n("[[ErrorSteps]]"),j=n("[[CancelSteps]]"),O=n("[[PullSteps]]"),T=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},P=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function R(e,t){if(void 0!==e&&"object"!=typeof e&&"function"!=typeof e)throw TypeError(`${t} is not an object.`)}function M(e,t){if("function"!=typeof e)throw TypeError(`${t} is not a function.`)}function N(e,t){if(!("object"==typeof e&&null!==e||"function"==typeof e))throw TypeError(`${t} is not an object.`)}function F(e,t,r){if(void 0===e)throw TypeError(`Parameter ${t} is required in '${r}'.`)}function I(e,t,r){if(void 0===e)throw TypeError(`${t} is required in '${r}'.`)}function L(e){return Number(e)}function B(e,t){var r,n;let i=Number.MAX_SAFE_INTEGER,o=Number(e);if(!T(o=0===(r=o)?0:r))throw TypeError(`${t} is not a finite number`);if((o=0===(n=P(o))?0:n)<0||o>i)throw TypeError(`${t} is outside the accepted range of 0 to ${i}, inclusive`);return T(o)&&0!==o?o:0}function z(e,t){if(!tU(e))throw TypeError(`${t} is not a ReadableStream.`)}function U(e){return new W(e)}function q(e,t){e._reader._readRequests.push(t)}function H(e,t,r){let n=e._reader._readRequests.shift();r?n._closeSteps():n._chunkSteps(t)}function V(e){return e._reader._readRequests.length}function $(e){let t=e._reader;return void 0!==t&&!!Y(t)}class W{constructor(e){if(F(e,1,"ReadableStreamDefaultReader"),z(e,"First parameter"),tq(e))throw TypeError("This stream has already been locked for exclusive reading by another reader");w(this,e),this._readRequests=new b}get closed(){return Y(this)?this._closedPromise:c(K("closed"))}cancel(e){return Y(this)?void 0===this._ownerReadableStream?c(_("cancel")):k(this,e):c(K("cancel"))}read(){let e,t;if(!Y(this))return c(K("read"));if(void 0===this._ownerReadableStream)return c(_("read from"));let r=d((r,n)=>{e=r,t=n});return G(this,{_chunkSteps:t=>e({value:t,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>t(e)}),r}releaseLock(){if(!Y(this))throw K("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");x(this)}}}function Y(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof W}function G(e,t){let r=e._ownerReadableStream;r._disturbed=!0,"closed"===r._state?t._closeSteps():"errored"===r._state?t._errorSteps(r._storedError):r._readableStreamController[O](t)}function K(e){return TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}Object.defineProperties(W.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof n.toStringTag&&Object.defineProperty(W.prototype,n.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0}),"symbol"==typeof n.asyncIterator&&Object.defineProperty(t={[n.asyncIterator](){return this}},n.asyncIterator,{enumerable:!1});class X{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}next(){let e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?h(this._ongoingPromise,e,e):e(),this._ongoingPromise}return(e){let t=()=>this._returnSteps(e);return this._ongoingPromise?h(this._ongoingPromise,t,t):t()}_nextSteps(){let e,t;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let r=this._reader;if(void 0===r._ownerReadableStream)return c(_("iterate"));let n=d((r,n)=>{e=r,t=n});return G(r,{_chunkSteps:t=>{this._ongoingPromise=void 0,g(()=>e({value:t,done:!1}))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,x(r),e({value:void 0,done:!0})},_errorSteps:e=>{this._ongoingPromise=void 0,this._isFinished=!0,x(r),t(e)}}),n}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;let t=this._reader;if(void 0===t._ownerReadableStream)return c(_("finish iterating"));if(!this._preventCancel){let r=k(t,e);return x(t),h(r,()=>({value:e,done:!0}),void 0)}return x(t),u({value:e,done:!0})}}let J={next(){return Q(this)?this._asyncIteratorImpl.next():c(Z("next"))},return(e){return Q(this)?this._asyncIteratorImpl.return(e):c(Z("return"))}};function Q(e){if(!a(e)||!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof X}catch(e){return!1}}function Z(e){return TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}void 0!==t&&Object.setPrototypeOf(J,t);let ee=Number.isNaN||function(e){return e!=e};function et(e){return e.slice()}function er(e,t,r,n,i){new Uint8Array(e).set(new Uint8Array(r,n,i),t)}function en(e,t,r){if(e.slice)return e.slice(t,r);let n=r-t,i=new ArrayBuffer(n);return er(i,0,e,t,n),i}function ei(e){return new Uint8Array(en(e.buffer,e.byteOffset,e.byteOffset+e.byteLength))}function eo(e){let t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function ea(e,t,r){if("number"!=typeof r||ee(r)||r<0||r===1/0)throw RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function es(e){e._queue=new b,e._queueTotalSize=0}class el{constructor(){throw TypeError("Illegal constructor")}get view(){if(!ed(this))throw eR("view");return this._view}respond(e){if(!ed(this))throw eR("respond");if(F(e,1,"respond"),e=B(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw TypeError("This BYOB request has been invalidated");this._view.buffer,eO(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!ed(this))throw eR("respondWithNewView");if(F(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw TypeError("You can only respond with array buffer views");if(void 0===this._associatedReadableByteStreamController)throw TypeError("This BYOB request has been invalidated");e.buffer,eT(this._associatedReadableByteStreamController,e)}}Object.defineProperties(el.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),"symbol"==typeof n.toStringTag&&Object.defineProperty(el.prototype,n.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class eu{constructor(){throw TypeError("Illegal constructor")}get byobRequest(){if(!ec(this))throw eM("byobRequest");return eA(this)}get desiredSize(){if(!ec(this))throw eM("desiredSize");return ej(this)}close(){if(!ec(this))throw eM("close");if(this._closeRequested)throw TypeError("The stream has already been closed; do not close it again!");let e=this._controlledReadableByteStream._state;if("readable"!==e)throw TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);eE(this)}enqueue(e){if(!ec(this))throw eM("enqueue");if(F(e,1,"enqueue"),!ArrayBuffer.isView(e))throw TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw TypeError("stream is closed or draining");let t=this._controlledReadableByteStream._state;if("readable"!==t)throw TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);eC(this,e)}error(e){if(!ec(this))throw eM("error");eD(this,e)}[j](e){ep(this),es(this);let t=this._cancelAlgorithm(e);return eS(this),t}[O](e){let t=this._controlledReadableByteStream;if(this._queueTotalSize>0){let t=this._queue.shift();this._queueTotalSize-=t.byteLength,eb(this);let r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);return void e._chunkSteps(r)}let r=this._autoAllocateChunkSize;if(void 0!==r){let t;try{t=new ArrayBuffer(r)}catch(t){return void e._errorSteps(t)}let n={buffer:t,bufferByteLength:r,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(n)}q(t,e),eh(this)}}function ec(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof eu}function ed(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof el}function eh(e){if(function(e){let t=e._controlledReadableByteStream;return"readable"===t._state&&!e._closeRequested&&!!e._started&&!!($(t)&&V(t)>0||eI(t)&&eF(t)>0||ej(e)>0)}(e)){if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0,p(e._pullAlgorithm(),()=>{e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,eh(e))},t=>{eD(e,t)})}}function ep(e){ew(e),e._pendingPullIntos=new b}function ef(e,t){let r=!1;"closed"===e._state&&(r=!0);let n=em(t);"default"===t.readerType?H(e,n,r):function(e,t,r){let n=e._reader._readIntoRequests.shift();r?n._closeSteps(t):n._chunkSteps(t)}(e,n,r)}function em(e){let t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function eg(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function ev(e,t){let r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,i=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),o=t.bytesFilled+i,a=o-o%r,s=i,l=!1;a>n&&(s=a-t.bytesFilled,l=!0);let u=e._queue;for(;s>0;){let r=u.peek(),n=Math.min(s,r.byteLength),i=t.byteOffset+t.bytesFilled;er(t.buffer,i,r.buffer,r.byteOffset,n),r.byteLength===n?u.shift():(r.byteOffset+=n,r.byteLength-=n),e._queueTotalSize-=n,ey(e,n,t),s-=n}return l}function ey(e,t,r){r.bytesFilled+=t}function eb(e){0===e._queueTotalSize&&e._closeRequested?(eS(e),tV(e._controlledReadableByteStream)):eh(e)}function ew(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function ek(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;let t=e._pendingPullIntos.peek();ev(e,t)&&(e_(e),ef(e._controlledReadableByteStream,t))}}function ex(e,t){let r=e._pendingPullIntos.peek();ew(e),"closed"===e._controlledReadableByteStream._state?function(e,t){let r=e._controlledReadableByteStream;if(eI(r))for(;eF(r)>0;)ef(r,e_(e))}(e):function(e,t,r){if(ey(0,t,r),r.bytesFilled0){let t=r.byteOffset+r.bytesFilled,i=en(r.buffer,t-n,t);eg(e,i,0,i.byteLength)}r.bytesFilled-=n,ef(e._controlledReadableByteStream,r),ek(e)}(e,t,r),eh(e)}function e_(e){return e._pendingPullIntos.shift()}function eS(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function eE(e){let t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state){if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0&&e._pendingPullIntos.peek().bytesFilled>0){let t=TypeError("Insufficient bytes to fill elements in the given buffer");throw eD(e,t),t}eS(e),tV(t)}}}function eC(e,t){let r=e._controlledReadableByteStream;if(e._closeRequested||"readable"!==r._state)return;let n=t.buffer,i=t.byteOffset,o=t.byteLength;if(e._pendingPullIntos.length>0){let t=e._pendingPullIntos.peek();t.buffer,t.buffer=t.buffer}(ew(e),$(r))?0===V(r)?eg(e,n,i,o):(e._pendingPullIntos.length>0&&e_(e),H(r,new Uint8Array(n,i,o),!1)):eI(r)?(eg(e,n,i,o),ek(e)):eg(e,n,i,o),eh(e)}function eD(e,t){let r=e._controlledReadableByteStream;"readable"===r._state&&(ep(e),es(e),eS(e),t$(r,t))}function eA(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){let t=e._pendingPullIntos.peek(),r=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),n=Object.create(el.prototype);n._associatedReadableByteStreamController=e,n._view=r,e._byobRequest=n}return e._byobRequest}function ej(e){let t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function eO(e,t){let r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(0===t)throw TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(r.bytesFilled+t>r.byteLength)throw RangeError("bytesWritten out of range")}r.buffer=r.buffer,ex(e,t)}function eT(e,t){let r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t.byteLength)throw TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(0===t.byteLength)throw TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw RangeError("The region specified by view does not match byobRequest");if(r.bufferByteLength!==t.buffer.byteLength)throw RangeError("The buffer of view has different capacity than byobRequest");if(r.bytesFilled+t.byteLength>r.byteLength)throw RangeError("The region specified by view is larger than byobRequest");let n=t.byteLength;r.buffer=t.buffer,ex(e,n)}function eP(e,t,r,n,i,o,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,es(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=o,t._pullAlgorithm=n,t._cancelAlgorithm=i,t._autoAllocateChunkSize=a,t._pendingPullIntos=new b,e._readableStreamController=t,p(u(r()),()=>{t._started=!0,eh(t)},e=>{eD(t,e)})}function eR(e){return TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function eM(e){return TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function eN(e,t){e._reader._readIntoRequests.push(t)}function eF(e){return e._reader._readIntoRequests.length}function eI(e){let t=e._reader;return void 0!==t&&!!eB(t)}Object.defineProperties(eu.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof n.toStringTag&&Object.defineProperty(eu.prototype,n.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class eL{constructor(e){if(F(e,1,"ReadableStreamBYOBReader"),z(e,"First parameter"),tq(e))throw TypeError("This stream has already been locked for exclusive reading by another reader");if(!ec(e._readableStreamController))throw TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");w(this,e),this._readIntoRequests=new b}get closed(){return eB(this)?this._closedPromise:c(eU("closed"))}cancel(e){return eB(this)?void 0===this._ownerReadableStream?c(_("cancel")):k(this,e):c(eU("cancel"))}read(e){let t,r;if(!eB(this))return c(eU("read"));if(!ArrayBuffer.isView(e))return c(TypeError("view must be an array buffer view"));if(0===e.byteLength)return c(TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return c(TypeError("view's buffer must have non-zero byteLength"));if(e.buffer,void 0===this._ownerReadableStream)return c(_("read from"));let n=d((e,n)=>{t=e,r=n});return ez(this,e,{_chunkSteps:e=>t({value:e,done:!1}),_closeSteps:e=>t({value:e,done:!0}),_errorSteps:e=>r(e)}),n}releaseLock(){if(!eB(this))throw eU("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");x(this)}}}function eB(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof eL}function ez(e,t,r){let n=e._ownerReadableStream;n._disturbed=!0,"errored"===n._state?r._errorSteps(n._storedError):function(e,t,r){let n=e._controlledReadableByteStream,i=1;t.constructor!==DataView&&(i=t.constructor.BYTES_PER_ELEMENT);let o=t.constructor,a=t.buffer,s={buffer:a,bufferByteLength:a.byteLength,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:i,viewConstructor:o,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(s),void eN(n,r);if("closed"!==n._state){if(e._queueTotalSize>0){if(ev(e,s)){let t=em(s);return eb(e),void r._chunkSteps(t)}if(e._closeRequested){let t=TypeError("Insufficient bytes to fill elements in the given buffer");return eD(e,t),void r._errorSteps(t)}}e._pendingPullIntos.push(s),eN(n,r),eh(e)}else{let e=new o(s.buffer,s.byteOffset,0);r._closeSteps(e)}}(n._readableStreamController,t,r)}function eU(e){return TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function eq(e,t){let{highWaterMark:r}=e;if(void 0===r)return t;if(ee(r)||r<0)throw RangeError("Invalid highWaterMark");return r}function eH(e){let{size:t}=e;return t||(()=>1)}function eV(e,t){R(e,t);let r=null==e?void 0:e.highWaterMark,n=null==e?void 0:e.size;return{highWaterMark:void 0===r?void 0:L(r),size:void 0===n?void 0:(M(n,`${t} has member 'size' that`),e=>L(n(e)))}}function e$(e,t){if(!eK(e))throw TypeError(`${t} is not a WritableStream.`)}Object.defineProperties(eL.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof n.toStringTag&&Object.defineProperty(eL.prototype,n.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});let eW="function"==typeof AbortController;class eY{constructor(e={},t={}){void 0===e?e=null:N(e,"First parameter");let r=eV(t,"Second parameter"),n=function(e,t){R(e,t);let r=null==e?void 0:e.abort,n=null==e?void 0:e.close,i=null==e?void 0:e.start,o=null==e?void 0:e.type,a=null==e?void 0:e.write;return{abort:void 0===r?void 0:(M(r,`${t} has member 'abort' that`),t=>y(r,e,[t])),close:void 0===n?void 0:(M(n,`${t} has member 'close' that`),()=>y(n,e,[])),start:void 0===i?void 0:(M(i,`${t} has member 'start' that`),t=>v(i,e,[t])),write:void 0===a?void 0:(M(a,`${t} has member 'write' that`),(t,r)=>y(a,e,[t,r])),type:o}}(e,"First parameter");if(eG(this),void 0!==n.type)throw RangeError("Invalid type is specified");let i=eH(r);!function(e,t,r,n){let i=Object.create(tr.prototype),o=()=>{},a=()=>u(void 0),s=()=>u(void 0),l=()=>u(void 0);void 0!==t.start&&(o=()=>t.start(i)),void 0!==t.write&&(a=e=>t.write(e,i)),void 0!==t.close&&(s=()=>t.close()),void 0!==t.abort&&(l=e=>t.abort(e)),ti(e,i,o,a,s,l,r,n)}(this,n,eq(r,1),i)}get locked(){if(!eK(this))throw tc("locked");return eX(this)}abort(e){return eK(this)?eX(this)?c(TypeError("Cannot abort a stream that already has a writer")):eJ(this,e):c(tc("abort"))}close(){return eK(this)?eX(this)?c(TypeError("Cannot close a stream that already has a writer")):e2(this)?c(TypeError("Cannot close an already-closing stream")):eQ(this):c(tc("close"))}getWriter(){if(!eK(this))throw tc("getWriter");return new e4(this)}}function eG(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new b,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function eK(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof eY}function eX(e){return void 0!==e._writer}function eJ(e,t){var r;if("closed"===e._state||"errored"===e._state)return u(void 0);e._writableStreamController._abortReason=t,null===(r=e._writableStreamController._abortController)||void 0===r||r.abort();let n=e._state;if("closed"===n||"errored"===n)return u(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let i=!1;"erroring"===n&&(i=!0,t=void 0);let o=d((r,n)=>{e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:n,_reason:t,_wasAlreadyErroring:i}});return e._pendingAbortRequest._promise=o,i||e0(e,t),o}function eQ(e){var t;let r=e._state;if("closed"===r||"errored"===r)return c(TypeError(`The stream (in ${r} state) is not in the writable state and cannot be closed`));let n=d((t,r)=>{e._closeRequest={_resolve:t,_reject:r}}),i=e._writer;return void 0!==i&&e._backpressure&&"writable"===r&&tw(i),ea(t=e._writableStreamController,tt,0),ts(t),n}function eZ(e,t){"writable"!==e._state?e1(e):e0(e,t)}function e0(e,t){let r=e._writableStreamController;e._state="erroring",e._storedError=t;let n=e._writer;void 0!==n&&e9(n,t),!(void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest)&&r._started&&e1(e)}function e1(e){e._state="errored",e._writableStreamController[A]();let t=e._storedError;if(e._writeRequests.forEach(e=>{e._reject(t)}),e._writeRequests=new b,void 0===e._pendingAbortRequest)return void e3(e);let r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void e3(e);p(e._writableStreamController[D](r._reason),()=>{r._resolve(),e3(e)},t=>{r._reject(t),e3(e)})}function e2(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function e3(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);let t=e._writer;void 0!==t&&tm(t,e._storedError)}function e5(e,t){let r=e._writer;void 0!==r&&t!==e._backpressure&&(t?tv(r):tw(r)),e._backpressure=t}Object.defineProperties(eY.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof n.toStringTag&&Object.defineProperty(eY.prototype,n.toStringTag,{value:"WritableStream",configurable:!0});class e4{constructor(e){if(F(e,1,"WritableStreamDefaultWriter"),e$(e,"First parameter"),eX(e))throw TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;let t=e._state;if("writable"===t)!e2(e)&&e._backpressure?tv(this):(tv(this),tw(this)),tf(this);else if("erroring"===t)ty(this,e._storedError),tf(this);else if("closed"===t)tv(this),tw(this),tf(this),tg(this);else{let t=e._storedError;ty(this,t),tf(this),tm(this,t)}}get closed(){return e6(this)?this._closedPromise:c(th("closed"))}get desiredSize(){if(!e6(this))throw th("desiredSize");if(void 0===this._ownerWritableStream)throw tp("desiredSize");return function(e){let t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:ta(t._writableStreamController)}(this)}get ready(){return e6(this)?this._readyPromise:c(th("ready"))}abort(e){return e6(this)?void 0===this._ownerWritableStream?c(tp("abort")):eJ(this._ownerWritableStream,e):c(th("abort"))}close(){if(!e6(this))return c(th("close"));let e=this._ownerWritableStream;return void 0===e?c(tp("close")):e2(e)?c(TypeError("Cannot close an already-closing stream")):e8(this)}releaseLock(){if(!e6(this))throw th("releaseLock");void 0!==this._ownerWritableStream&&e7(this)}write(e){return e6(this)?void 0===this._ownerWritableStream?c(tp("write to")):te(this,e):c(th("write"))}}function e6(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof e4}function e8(e){return eQ(e._ownerWritableStream)}function e9(e,t){"pending"===e._readyPromiseState?tb(e,t):ty(e,t)}function e7(e){let t=e._ownerWritableStream,r=TypeError("Writer was released and can no longer be used to monitor the stream's closedness");e9(e,r),"pending"===e._closedPromiseState||tf(e),tm(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function te(e,t){let r=e._ownerWritableStream,n=r._writableStreamController,i=function(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return tl(e,t),1}}(n,t);if(r!==e._ownerWritableStream)return c(tp("write to"));let o=r._state;if("errored"===o)return c(r._storedError);if(e2(r)||"closed"===o)return c(TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return c(r._storedError);let a=d((e,t)=>{r._writeRequests.push({_resolve:e,_reject:t})});return function(e,t,r){try{ea(e,t,r)}catch(t){return void tl(e,t)}let n=e._controlledWritableStream;e2(n)||"writable"!==n._state||e5(n,0>=ta(e)),ts(e)}(n,t,i),a}Object.defineProperties(e4.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),"symbol"==typeof n.toStringTag&&Object.defineProperty(e4.prototype,n.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});let tt={};class tr{constructor(){throw TypeError("Illegal constructor")}get abortReason(){if(!tn(this))throw td("abortReason");return this._abortReason}get signal(){if(!tn(this))throw td("signal");if(void 0===this._abortController)throw TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(e){if(!tn(this))throw td("error");"writable"===this._controlledWritableStream._state&&tu(this,e)}[D](e){let t=this._abortAlgorithm(e);return to(this),t}[A](){es(this)}}function tn(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof tr}function ti(e,t,r,n,i,o,a,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,es(t),t._abortReason=void 0,t._abortController=function(){if(eW)return new AbortController}(),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=a,t._writeAlgorithm=n,t._closeAlgorithm=i,t._abortAlgorithm=o,e5(e,0>=ta(t)),p(u(r()),()=>{t._started=!0,ts(t)},r=>{t._started=!0,eZ(e,r)})}function to(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function ta(e){return e._strategyHWM-e._queueTotalSize}function ts(e){let t=e._controlledWritableStream;if(!e._started||void 0!==t._inFlightWriteRequest)return;if("erroring"===t._state)return void e1(t);if(0===e._queue.length)return;let r=e._queue.peek().value;r===tt?function(e){let t=e._controlledWritableStream;t._inFlightCloseRequest=t._closeRequest,t._closeRequest=void 0,eo(e);let r=e._closeAlgorithm();to(e),p(r,()=>{!function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";let t=e._writer;void 0!==t&&tg(t)}(t)},e=>{t._inFlightCloseRequest._reject(e),t._inFlightCloseRequest=void 0,void 0!==t._pendingAbortRequest&&(t._pendingAbortRequest._reject(e),t._pendingAbortRequest=void 0),eZ(t,e)})}(e):function(e,t){let r=e._controlledWritableStream;r._inFlightWriteRequest=r._writeRequests.shift(),p(e._writeAlgorithm(t),()=>{r._inFlightWriteRequest._resolve(void 0),r._inFlightWriteRequest=void 0;let t=r._state;eo(e),e2(r)||"writable"!==t||e5(r,0>=ta(e)),ts(e)},t=>{"writable"===r._state&&to(e),r._inFlightWriteRequest._reject(t),r._inFlightWriteRequest=void 0,eZ(r,t)})}(e,r)}function tl(e,t){"writable"===e._controlledWritableStream._state&&tu(e,t)}function tu(e,t){let r=e._controlledWritableStream;to(e),e0(r,t)}function tc(e){return TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function td(e){return TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`)}function th(e){return TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function tp(e){return TypeError("Cannot "+e+" a stream using a released writer")}function tf(e){e._closedPromise=d((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"})}function tm(e,t){void 0!==e._closedPromise_reject&&(m(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function tg(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function tv(e){e._readyPromise=d((t,r)=>{e._readyPromise_resolve=t,e._readyPromise_reject=r}),e._readyPromiseState="pending"}function ty(e,t){tv(e),tb(e,t)}function tb(e,t){void 0!==e._readyPromise_reject&&(m(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function tw(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(tr.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),"symbol"==typeof n.toStringTag&&Object.defineProperty(tr.prototype,n.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});let tk="undefined"!=typeof DOMException?DOMException:void 0,tx=!function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;try{return new e,!0}catch(e){return!1}}(tk)?function(){let e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}():tk;function t_(e,t,r,n,o,a){let s=U(e),l=new e4(t);e._disturbed=!0;let g=!1,v=u(void 0);return d((y,b)=>{var w,k;let _;if(void 0!==a){if(_=()=>{let r=new tx("Aborted","AbortError"),i=[];n||i.push(()=>"writable"===t._state?eJ(t,r):u(void 0)),o||i.push(()=>"readable"===e._state?tH(e,r):u(void 0)),C(()=>Promise.all(i.map(e=>e())),!0,r)},a.aborted)return void _();a.addEventListener("abort",_)}if(E(e,s._closedPromise,e=>{n?D(!0,e):C(()=>eJ(t,e),!0,e)}),E(t,l._closedPromise,t=>{o?D(!0,t):C(()=>tH(e,t),!0,t)}),w=s._closedPromise,k=()=>{r?D():C(()=>(function(e){let t=e._ownerWritableStream,r=t._state;return e2(t)||"closed"===r?u(void 0):"errored"===r?c(t._storedError):e8(e)})(l))},"closed"===e._state?k():p(w,k),e2(t)||"closed"===t._state){let t=TypeError("the destination writable stream closed before all data could be piped to it");o?D(!0,t):C(()=>tH(e,t),!0,t)}function S(){let e=v;return h(v,()=>e!==v?S():void 0)}function E(e,t,r){"errored"===e._state?r(e._storedError):f(t,r)}function C(e,r,n){function i(){p(e(),()=>A(r,n),e=>A(!0,e))}g||(g=!0,"writable"!==t._state||e2(t)?i():p(S(),i))}function D(e,r){g||(g=!0,"writable"!==t._state||e2(t)?A(e,r):p(S(),()=>A(e,r)))}function A(e,t){e7(l),x(s),void 0!==a&&a.removeEventListener("abort",_),e?b(t):y(void 0)}m(d((e,t)=>{!function r(n){n?e():h(g?u(!0):h(l._readyPromise,()=>d((e,t)=>{G(s,{_chunkSteps:t=>{v=h(te(l,t),void 0,i),e(!1)},_closeSteps:()=>e(!0),_errorSteps:t})})),r,t)}(!1)}))})}class tS{constructor(){throw TypeError("Illegal constructor")}get desiredSize(){if(!tE(this))throw tN("desiredSize");return tP(this)}close(){if(!tE(this))throw tN("close");if(!tR(this))throw TypeError("The stream is not in a state that permits close");tj(this)}enqueue(e){if(!tE(this))throw tN("enqueue");if(!tR(this))throw TypeError("The stream is not in a state that permits enqueue");return tO(this,e)}error(e){if(!tE(this))throw tN("error");tT(this,e)}[j](e){es(this);let t=this._cancelAlgorithm(e);return tA(this),t}[O](e){let t=this._controlledReadableStream;if(this._queue.length>0){let r=eo(this);this._closeRequested&&0===this._queue.length?(tA(this),tV(t)):tC(this),e._chunkSteps(r)}else q(t,e),tC(this)}}function tE(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof tS}function tC(e){if(tD(e)){if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0,p(e._pullAlgorithm(),()=>{e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,tC(e))},t=>{tT(e,t)})}}function tD(e){let t=e._controlledReadableStream;return!!tR(e)&&!!e._started&&(!!(tq(t)&&V(t)>0)||tP(e)>0)}function tA(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function tj(e){if(!tR(e))return;let t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(tA(e),tV(t))}function tO(e,t){if(!tR(e))return;let r=e._controlledReadableStream;if(tq(r)&&V(r)>0)H(r,t,!1);else{let r;try{r=e._strategySizeAlgorithm(t)}catch(t){throw tT(e,t),t}try{ea(e,t,r)}catch(t){throw tT(e,t),t}}tC(e)}function tT(e,t){let r=e._controlledReadableStream;"readable"===r._state&&(es(e),tA(e),t$(r,t))}function tP(e){let t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function tR(e){let t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function tM(e,t,r,n,i,o,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,es(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=o,t._pullAlgorithm=n,t._cancelAlgorithm=i,e._readableStreamController=t,p(u(r()),()=>{t._started=!0,tC(t)},e=>{tT(t,e)})}function tN(e){return TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function tF(e,t){R(e,t);let r=null==e?void 0:e.preventAbort,n=null==e?void 0:e.preventCancel,i=null==e?void 0:e.preventClose,o=null==e?void 0:e.signal;return void 0!==o&&function(e,t){if(!function(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}(e))throw TypeError(`${t} is not an AbortSignal.`)}(o,`${t} has member 'signal' that`),{preventAbort:!!r,preventCancel:!!n,preventClose:!!i,signal:o}}Object.defineProperties(tS.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof n.toStringTag&&Object.defineProperty(tS.prototype,n.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class tI{constructor(e={},t={}){void 0===e?e=null:N(e,"First parameter");let r=eV(t,"Second parameter"),n=function(e,t){R(e,t);let r=null==e?void 0:e.autoAllocateChunkSize,n=null==e?void 0:e.cancel,i=null==e?void 0:e.pull,o=null==e?void 0:e.start,a=null==e?void 0:e.type;return{autoAllocateChunkSize:void 0===r?void 0:B(r,`${t} has member 'autoAllocateChunkSize' that`),cancel:void 0===n?void 0:(M(n,`${t} has member 'cancel' that`),t=>y(n,e,[t])),pull:void 0===i?void 0:(M(i,`${t} has member 'pull' that`),t=>y(i,e,[t])),start:void 0===o?void 0:(M(o,`${t} has member 'start' that`),t=>v(o,e,[t])),type:void 0===a?void 0:function(e,t){if("bytes"!=(e=`${e}`))throw TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}(a,`${t} has member 'type' that`)}}(e,"First parameter");if(tz(this),"bytes"===n.type){if(void 0!==r.size)throw RangeError("The strategy for a byte stream cannot have a size function");!function(e,t,r){let n=Object.create(eu.prototype),i=()=>{},o=()=>u(void 0),a=()=>u(void 0);void 0!==t.start&&(i=()=>t.start(n)),void 0!==t.pull&&(o=()=>t.pull(n)),void 0!==t.cancel&&(a=e=>t.cancel(e));let s=t.autoAllocateChunkSize;if(0===s)throw TypeError("autoAllocateChunkSize must be greater than 0");eP(e,n,i,o,a,r,s)}(this,n,eq(r,0))}else{let e=eH(r);!function(e,t,r,n){let i=Object.create(tS.prototype),o=()=>{},a=()=>u(void 0),s=()=>u(void 0);void 0!==t.start&&(o=()=>t.start(i)),void 0!==t.pull&&(a=()=>t.pull(i)),void 0!==t.cancel&&(s=e=>t.cancel(e)),tM(e,i,o,a,s,r,n)}(this,n,eq(r,1),e)}}get locked(){if(!tU(this))throw tW("locked");return tq(this)}cancel(e){return tU(this)?tq(this)?c(TypeError("Cannot cancel a stream that already has a reader")):tH(this,e):c(tW("cancel"))}getReader(e){if(!tU(this))throw tW("getReader");return void 0===function(e,t){R(e,t);let r=null==e?void 0:e.mode;return{mode:void 0===r?void 0:function(e,t){if("byob"!=(e=`${e}`))throw TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}(r,`${t} has member 'mode' that`)}}(e,"First parameter").mode?U(this):new eL(this)}pipeThrough(e,t={}){if(!tU(this))throw tW("pipeThrough");F(e,1,"pipeThrough");let r=function(e,t){R(e,t);let r=null==e?void 0:e.readable;I(r,"readable","ReadableWritablePair"),z(r,`${t} has member 'readable' that`);let n=null==e?void 0:e.writable;return I(n,"writable","ReadableWritablePair"),e$(n,`${t} has member 'writable' that`),{readable:r,writable:n}}(e,"First parameter"),n=tF(t,"Second parameter");if(tq(this))throw TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(eX(r.writable))throw TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return m(t_(this,r.writable,n.preventClose,n.preventAbort,n.preventCancel,n.signal)),r.readable}pipeTo(e,t={}){let r;if(!tU(this))return c(tW("pipeTo"));if(void 0===e)return c("Parameter 1 is required in 'pipeTo'.");if(!eK(e))return c(TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));try{r=tF(t,"Second parameter")}catch(e){return c(e)}return tq(this)?c(TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):eX(e)?c(TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):t_(this,e,r.preventClose,r.preventAbort,r.preventCancel,r.signal)}tee(){if(!tU(this))throw tW("tee");return et(ec(this._readableStreamController)?function(e){let t,r,n,i,o,a=U(e),s=!1,l=!1,c=!1,h=!1,p=!1,m=d(e=>{o=e});function v(e){f(e._closedPromise,t=>{e===a&&(eD(n._readableStreamController,t),eD(i._readableStreamController,t),h&&p||o(void 0))})}function y(){eB(a)&&(x(a),v(a=U(e))),G(a,{_chunkSteps:t=>{g(()=>{l=!1,c=!1;let r=t;if(!h&&!p)try{r=ei(t)}catch(t){return eD(n._readableStreamController,t),eD(i._readableStreamController,t),void o(tH(e,t))}h||eC(n._readableStreamController,t),p||eC(i._readableStreamController,r),s=!1,l?w():c&&k()})},_closeSteps:()=>{s=!1,h||eE(n._readableStreamController),p||eE(i._readableStreamController),n._readableStreamController._pendingPullIntos.length>0&&eO(n._readableStreamController,0),i._readableStreamController._pendingPullIntos.length>0&&eO(i._readableStreamController,0),h&&p||o(void 0)},_errorSteps:()=>{s=!1}})}function b(t,r){Y(a)&&(x(a),v(a=new eL(e)));let u=r?i:n,d=r?n:i;ez(a,t,{_chunkSteps:t=>{g(()=>{l=!1,c=!1;let n=r?p:h;if(r?h:p)n||eT(u._readableStreamController,t);else{let r;try{r=ei(t)}catch(t){return eD(u._readableStreamController,t),eD(d._readableStreamController,t),void o(tH(e,t))}n||eT(u._readableStreamController,t),eC(d._readableStreamController,r)}s=!1,l?w():c&&k()})},_closeSteps:e=>{s=!1;let t=r?p:h,n=r?h:p;t||eE(u._readableStreamController),n||eE(d._readableStreamController),void 0!==e&&(t||eT(u._readableStreamController,e),!n&&d._readableStreamController._pendingPullIntos.length>0&&eO(d._readableStreamController,0)),t&&n||o(void 0)},_errorSteps:()=>{s=!1}})}function w(){if(s)return l=!0,u(void 0);s=!0;let e=eA(n._readableStreamController);return null===e?y():b(e._view,!1),u(void 0)}function k(){if(s)return c=!0,u(void 0);s=!0;let e=eA(i._readableStreamController);return null===e?y():b(e._view,!0),u(void 0)}function _(){}return n=tB(_,w,function(n){if(h=!0,t=n,p){let n=tH(e,et([t,r]));o(n)}return m}),i=tB(_,k,function(n){if(p=!0,r=n,h){let n=tH(e,et([t,r]));o(n)}return m}),v(a),[n,i]}(this):function(e,t){let r=U(e),n,i,o,a,s,l=!1,c=!1,h=!1,p=!1,m=d(e=>{s=e});function v(){return l?c=!0:(l=!0,G(r,{_chunkSteps:e=>{g(()=>{c=!1,h||tO(o._readableStreamController,e),p||tO(a._readableStreamController,e),l=!1,c&&v()})},_closeSteps:()=>{l=!1,h||tj(o._readableStreamController),p||tj(a._readableStreamController),h&&p||s(void 0)},_errorSteps:()=>{l=!1}})),u(void 0)}function y(){}return o=tL(y,v,function(t){if(h=!0,n=t,p){let t=tH(e,et([n,i]));s(t)}return m}),a=tL(y,v,function(t){if(p=!0,i=t,h){let t=tH(e,et([n,i]));s(t)}return m}),f(r._closedPromise,e=>{tT(o._readableStreamController,e),tT(a._readableStreamController,e),h&&p||s(void 0)}),[o,a]}(this))}values(e){if(!tU(this))throw tW("values");return function(e,t){let r=new X(U(e),t),n=Object.create(J);return n._asyncIteratorImpl=r,n}(this,(R(e,"First parameter"),{preventCancel:!!(null==e?void 0:e.preventCancel)}).preventCancel)}}function tL(e,t,r,n=1,i=()=>1){let o=Object.create(tI.prototype);return tz(o),tM(o,Object.create(tS.prototype),e,t,r,n,i),o}function tB(e,t,r){let n=Object.create(tI.prototype);return tz(n),eP(n,Object.create(eu.prototype),e,t,r,0,void 0),n}function tz(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function tU(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof tI}function tq(e){return void 0!==e._reader}function tH(e,t){if(e._disturbed=!0,"closed"===e._state)return u(void 0);if("errored"===e._state)return c(e._storedError);tV(e);let r=e._reader;return void 0!==r&&eB(r)&&(r._readIntoRequests.forEach(e=>{e._closeSteps(void 0)}),r._readIntoRequests=new b),h(e._readableStreamController[j](t),i,void 0)}function tV(e){e._state="closed";let t=e._reader;void 0!==t&&(C(t),Y(t)&&(t._readRequests.forEach(e=>{e._closeSteps()}),t._readRequests=new b))}function t$(e,t){e._state="errored",e._storedError=t;let r=e._reader;void 0!==r&&(E(r,t),Y(r)?(r._readRequests.forEach(e=>{e._errorSteps(t)}),r._readRequests=new b):(r._readIntoRequests.forEach(e=>{e._errorSteps(t)}),r._readIntoRequests=new b))}function tW(e){return TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function tY(e,t){R(e,t);let r=null==e?void 0:e.highWaterMark;return I(r,"highWaterMark","QueuingStrategyInit"),{highWaterMark:L(r)}}Object.defineProperties(tI.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof n.toStringTag&&Object.defineProperty(tI.prototype,n.toStringTag,{value:"ReadableStream",configurable:!0}),"symbol"==typeof n.asyncIterator&&Object.defineProperty(tI.prototype,n.asyncIterator,{value:tI.prototype.values,writable:!0,configurable:!0});let tG=e=>e.byteLength;try{Object.defineProperty(tG,"name",{value:"size",configurable:!0})}catch(e){}class tK{constructor(e){F(e,1,"ByteLengthQueuingStrategy"),e=tY(e,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!tJ(this))throw tX("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!tJ(this))throw tX("size");return tG}}function tX(e){return TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`)}function tJ(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_byteLengthQueuingStrategyHighWaterMark")&&e instanceof tK}Object.defineProperties(tK.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof n.toStringTag&&Object.defineProperty(tK.prototype,n.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});let tQ=()=>1;try{Object.defineProperty(tQ,"name",{value:"size",configurable:!0})}catch(e){}class tZ{constructor(e){F(e,1,"CountQueuingStrategy"),e=tY(e,"First parameter"),this._countQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!t1(this))throw t0("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!t1(this))throw t0("size");return tQ}}function t0(e){return TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`)}function t1(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_countQueuingStrategyHighWaterMark")&&e instanceof tZ}Object.defineProperties(tZ.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof n.toStringTag&&Object.defineProperty(tZ.prototype,n.toStringTag,{value:"CountQueuingStrategy",configurable:!0});class t2{constructor(e={},t={},r={}){let n;void 0===e&&(e=null);let i=eV(t,"Second parameter"),o=eV(r,"Third parameter"),a=function(e,t){R(e,t);let r=null==e?void 0:e.flush,n=null==e?void 0:e.readableType,i=null==e?void 0:e.start,o=null==e?void 0:e.transform,a=null==e?void 0:e.writableType;return{flush:void 0===r?void 0:(M(r,`${t} has member 'flush' that`),t=>y(r,e,[t])),readableType:n,start:void 0===i?void 0:(M(i,`${t} has member 'start' that`),t=>v(i,e,[t])),transform:void 0===o?void 0:(M(o,`${t} has member 'transform' that`),(t,r)=>y(o,e,[t,r])),writableType:a}}(e,"First parameter");if(void 0!==a.readableType)throw RangeError("Invalid readableType specified");if(void 0!==a.writableType)throw RangeError("Invalid writableType specified");let s=eq(o,0),l=eH(o),p=eq(i,1),f=eH(i);(function(e,t,r,n,i,o){function a(){return t}e._writable=function(e,t,r,n,i=1,o=()=>1){let a=Object.create(eY.prototype);return eG(a),ti(a,Object.create(tr.prototype),e,t,r,n,i,o),a}(a,function(t){return function(e,t){let r=e._transformStreamController;return e._backpressure?h(e._backpressureChangePromise,()=>{let n=e._writable;if("erroring"===n._state)throw n._storedError;return rt(r,t)},void 0):rt(r,t)}(e,t)},function(){return function(e){let t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return t7(r),h(n,()=>{if("errored"===t._state)throw t._storedError;tj(t._readableStreamController)},r=>{throw t5(e,r),t._storedError})}(e)},function(t){return t5(e,t),u(void 0)},r,n),e._readable=tL(a,function(){return t6(e,!1),e._backpressureChangePromise},function(t){return t4(e,t),u(void 0)},i,o),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,t6(e,!0),e._transformStreamController=void 0})(this,d(e=>{n=e}),p,f,s,l),function(e,t){var r,n;let i=Object.create(t8.prototype),o=e=>{try{var t;return re(i,e),t=void 0,u(t)}catch(e){return c(e)}},a=()=>u(void 0);void 0!==t.transform&&(o=e=>t.transform(e,i)),void 0!==t.flush&&(a=()=>t.flush(i)),r=o,n=a,i._controlledTransformStream=e,e._transformStreamController=i,i._transformAlgorithm=r,i._flushAlgorithm=n}(this,a),void 0!==a.start?n(a.start(this._transformStreamController)):n(void 0)}get readable(){if(!t3(this))throw rn("readable");return this._readable}get writable(){if(!t3(this))throw rn("writable");return this._writable}}function t3(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")&&e instanceof t2}function t5(e,t){tT(e._readable._readableStreamController,t),t4(e,t)}function t4(e,t){t7(e._transformStreamController),tl(e._writable._writableStreamController,t),e._backpressure&&t6(e,!1)}function t6(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=d(t=>{e._backpressureChangePromise_resolve=t}),e._backpressure=t}Object.defineProperties(t2.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"==typeof n.toStringTag&&Object.defineProperty(t2.prototype,n.toStringTag,{value:"TransformStream",configurable:!0});class t8{constructor(){throw TypeError("Illegal constructor")}get desiredSize(){if(!t9(this))throw rr("desiredSize");return tP(this._controlledTransformStream._readable._readableStreamController)}enqueue(e){if(!t9(this))throw rr("enqueue");re(this,e)}error(e){if(!t9(this))throw rr("error");t5(this._controlledTransformStream,e)}terminate(){if(!t9(this))throw rr("terminate");!function(e){let t=e._controlledTransformStream;tj(t._readable._readableStreamController),t4(t,TypeError("TransformStream terminated"))}(this)}}function t9(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof t8}function t7(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function re(e,t){let r=e._controlledTransformStream,n=r._readable._readableStreamController;if(!tR(n))throw TypeError("Readable side is not in a state that permits enqueue");try{tO(n,t)}catch(e){throw t4(r,e),r._readable._storedError}!tD(n)!==r._backpressure&&t6(r,!0)}function rt(e,t){return h(e._transformAlgorithm(t),void 0,t=>{throw t5(e._controlledTransformStream,t),t})}function rr(e){return TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}function rn(e){return TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`)}Object.defineProperties(t8.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof n.toStringTag&&Object.defineProperty(t8.prototype,n.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});let ri={ReadableStream:tI,ReadableStreamDefaultController:tS,ReadableByteStreamController:eu,ReadableStreamBYOBRequest:el,ReadableStreamDefaultReader:W,ReadableStreamBYOBReader:eL,WritableStream:eY,WritableStreamDefaultController:tr,WritableStreamDefaultWriter:e4,ByteLengthQueuingStrategy:tK,CountQueuingStrategy:tZ,TransformStream:t2,TransformStreamDefaultController:t8};if(void 0!==o)for(let e in ri)Object.prototype.hasOwnProperty.call(ri,e)&&Object.defineProperty(o,e,{value:ri[e],writable:!0,configurable:!0});e.ByteLengthQueuingStrategy=tK,e.CountQueuingStrategy=tZ,e.ReadableByteStreamController=eu,e.ReadableStream=tI,e.ReadableStreamBYOBReader=eL,e.ReadableStreamBYOBRequest=el,e.ReadableStreamDefaultController=tS,e.ReadableStreamDefaultReader=W,e.TransformStream=t2,e.TransformStreamDefaultController=t8,e.WritableStream=eY,e.WritableStreamDefaultController=tr,e.WritableStreamDefaultWriter=e4,Object.defineProperty(e,"__esModule",{value:!0})}(t)},67764:e=>{"use strict";function t(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}t.prototype.match=function(e){var t,r,n=!0,i=this.parts,o=i.length;if("string"==typeof e||e instanceof String){if(this.hasWild||this.text==e){for(t=0,r=(e||"").split(this.separator);n&&t{"use strict";let n,i;r.d(t,{vG:()=>c,yb:()=>d});var o=r(4818);let a=e=>void 0!==e.method&&"call"===e.method,s=e=>null===e.error&&"number"==typeof e.id,l=null,u=(n=e=>{let t=new Map([[0,()=>{}]]),r=new Map([[0,()=>{}]]),n=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(a(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=n.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if(void 0!==e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===o){let e=r.get(i);if("number"==typeof e){let t=n.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if(void 0!==e)e(),r.delete(i);else throw Error("The timer is in an undefined state.")}}else if(s(e)){let{id:i}=e,o=n.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;n.delete(i),"interval"===s?t.delete(a):r.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let r=(0,o.generateUniqueNumber)(n);n.set(r,{timerId:e,timerType:"interval"}),t.set(e,r),i.postMessage({id:r,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,o.generateUniqueNumber)(n);n.set(t,{timerId:e,timerType:"timeout"}),r.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,r)=>{let n=(0,o.generateUniqueNumber)(t);return t.set(n,()=>{e(),"function"==typeof t.get(n)&&i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}}),n},setTimeout:(e,t)=>{let n=(0,o.generateUniqueNumber)(r);return r.set(n,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:n,timerType:"timeout"}}),n}}},i='(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(({data:i})=>{try{if("clear"===i.method){const{id:r,params:{timerId:o,timerType:s}}=i;if("interval"===s)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==s)throw new Error(\'The given type "\'.concat(s,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==i.method)throw new Error(\'The given method "\'.concat(i.method,\'" is not supported\'));{const{params:{delay:s,now:n,timerId:a,timerType:d}}=i;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(s,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(s,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:i.id,result:null})}}))})();',()=>{if(null!==l)return l;let e=new Blob([i],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return(l=n(t)).setTimeout(()=>URL.revokeObjectURL(t),0),l}),c=e=>u().clearInterval(e),d=(e,t)=>u().setInterval(e,t)},41194:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(r=>{t.hasOwnProperty(r)||Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>e[r]})})}(r(89458))},62103:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(r=>{t.hasOwnProperty(r)||Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>e[r]})})}(r(5679))},60841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(r=>{t.hasOwnProperty(r)||Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>e[r]})})}(r(35473))},48162:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(r=>{t.hasOwnProperty(r)||Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>e[r]})})}(r(6794))},87089:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(r=>{t.hasOwnProperty(r)||Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>e[r]})})}(r(41321))},20428:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(r=>{t.hasOwnProperty(r)||Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>e[r]})})}(r(55476))},16437:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(r=>{t.hasOwnProperty(r)||Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>e[r]})})}(r(30861))},68836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e,t){this.operator=e,this.value=t,Object.defineProperty(this,"t",{writable:!0})}get notes(){return this.t}addNote(e){this.t=this.t||[],this.t.push(e)}}class n extends r{}class i extends n{constructor(e,t){if(!Array.isArray(t))throw Error(`"${e}" operator expects to receive an array of conditions`);super(e,t)}}class o extends r{constructor(e,t,r){super(e,r),this.field=t}}let a=new n("__null__",null),s=Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty);function l(e,t){return t instanceof i&&t.operator===e}function u(e,t){return 1===t.length?t[0]:new i(e,function e(t,r,n){let i=n||[];for(let n=0,o=r.length;ne,d=()=>Object.create(null),h=Object.defineProperty(d(),"__@type@__",{value:"ignore value"});function p(e,t,r=!1){if(!e||e&&e.constructor!==Object)return!1;for(let n in e)if(s(e,n)&&s(t,n)&&(!r||e[n]!==h))return!0;return!1}function f(e){let t=[];for(let r in e)s(e,r)&&e[r]!==h&&t.push(r);return t}function m(e,t){t!==a&&e.push(t)}let g=e=>u("and",e),v={compound(e,t,r){let n=(Array.isArray(t)?t:[t]).map(e=>r.parse(e));return new i(e.name,n)},field:(e,t,r)=>new o(e.name,r.field,t),document:(e,t)=>new n(e.name,t)};class y{constructor(e,t=d()){this.o=void 0,this.s=void 0,this.i=void 0,this.u=void 0,this.h=void 0,this.parse=this.parse.bind(this),this.u={operatorToConditionName:t.operatorToConditionName||c,defaultOperatorName:t.defaultOperatorName||"eq",mergeFinalConditions:t.mergeFinalConditions||g},this.o=Object.keys(e).reduce((t,r)=>(t[r]=Object.assign({name:this.u.operatorToConditionName(r)},e[r]),t),{}),this.s=Object.assign({},t.fieldContext,{field:"",query:{},parse:this.parse,hasOperators:e=>p(e,this.o,t.useIgnoreValue)}),this.i=Object.assign({},t.documentContext,{parse:this.parse,query:{}}),this.h=t.useIgnoreValue?f:Object.keys}setParse(e){this.parse=e,this.s.parse=e,this.i.parse=e}parseField(e,t,r,n){let i=this.o[t];if(!i)throw Error(`Unsupported operator "${t}"`);if("field"!==i.type)throw Error(`Unexpected ${i.type} operator "${t}" at field level`);return this.s.field=e,this.s.query=n,this.parseInstruction(i,r,this.s)}parseInstruction(e,t,r){return"function"==typeof e.validate&&e.validate(e,t),(e.parse||v[e.type])(e,t,r)}parseFieldOperators(e,t){let r=[],n=this.h(t);for(let i=0,o=n.length;iu("or",e),t.createInterpreter=function(e,t){let r;let n=t&&t.getInterpreterName||w;switch(t?t.numberOfArguments:0){case 1:r=r=>b(e,n(r,t))(r,i);break;case 3:r=(r,o,a)=>b(e,n(r,t))(r,o,a,i);break;default:r=(r,o)=>b(e,n(r,t))(r,o,i)}let i=Object.assign({},t,{interpret:r});return i.interpret},t.createTranslatorFactory=function(e,t){return(r,...n)=>{let i=e(r,...n),o=t.bind(null,i);return o.ast=i,o}},t.defaultInstructionParsers=v,t.hasOperators=p,t.identity=c,t.ignoreValue=h,t.isCompound=l,t.object=d,t.optimizedCompoundCondition=u,t.parseInstruction=k},53096:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(68836);function i(e,t,r){for(let n=0,i=e.length;n{let i=n.get(r,t.field);return Array.isArray(i)?i.some(r=>e(t,r,n)):e(t,i,n)}}let l=(e,t)=>e[t];function u(e,t,r){let n=t.lastIndexOf(".");return -1===n?[e,t]:[r(e,t.slice(0,n)),t.slice(n+1)]}function c(e,t,r=l){if(t===n.ITSELF)return e;if(!e)throw Error(`Unable to get field "${t}" out of ${String(e)}.`);return function(e,t,r){if(-1===t.indexOf("."))return a(e,t,r);let n=t.split("."),i=e;for(let e=0,t=n.length;et?1:-1}function h(e,t={}){return n.createInterpreter(e,Object.assign({get:c,compare:d},t))}let p=(e,t,{interpret:r})=>e.value.some(e=>r(e,t)),f=(e,t,r)=>!p(e,t,r),m=(e,t,{interpret:r})=>e.value.every(e=>r(e,t)),g=(e,t,{interpret:r})=>!r(e.value[0],t),v=(e,t,{compare:r,get:n})=>{let o=n(t,e.field);return Array.isArray(o)&&!Array.isArray(e.value)?i(o,e.value,r):0===r(o,e.value)},y=(e,t,r)=>!v(e,t,r),b=s((e,t,r)=>{let n=r.compare(t,e.value);return 0===n||-1===n}),w=s((e,t,r)=>-1===r.compare(t,e.value)),k=s((e,t,r)=>1===r.compare(t,e.value)),x=s((e,t,r)=>{let n=r.compare(t,e.value);return 0===n||1===n}),_=(e,t,{get:r})=>{if(e.field===n.ITSELF)return void 0!==t;let[i,a]=u(t,e.field,r),s=t=>!!t&&t.hasOwnProperty(a)===e.value;return o(i,a)?i.some(s):s(i)},S=s((e,t)=>"number"==typeof t&&t%e.value[0]===e.value[1]),E=(e,t,{get:r})=>{let[i,a]=u(t,e.field,r),s=t=>{let n=r(t,a);return Array.isArray(n)&&n.length===e.value};return e.field!==n.ITSELF&&o(i,a)?i.some(s):s(i)},C=s((e,t)=>"string"==typeof t&&e.value.test(t)),D=s((e,t,{compare:r})=>i(e.value,t,r)),A=(e,t,r)=>!D(e,t,r),j=(e,t,{compare:r,get:n})=>{let o=n(t,e.field);return Array.isArray(o)&&e.value.every(e=>i(o,e,r))},O=(e,t,{interpret:r,get:n})=>{let i=n(t,e.field);return Array.isArray(i)&&i.some(t=>r(e.value,t))},T=(e,t)=>e.value.call(t),P=Object.assign({},Object.freeze({__proto__:null,or:p,nor:f,and:m,not:g,eq:v,ne:y,lte:b,lt:w,gt:k,gte:x,exists:_,mod:S,size:E,regex:C,within:D,nin:A,all:j,elemMatch:O,where:T}),{in:D}),R=h(P);t.all=j,t.allInterpreters=P,t.and=m,t.compare=d,t.createGetter=function(e){return(t,r)=>c(t,r,e)},t.createJsInterpreter=h,t.elemMatch=O,t.eq=v,t.exists=_,t.getObjectField=c,t.getObjectFieldCursor=u,t.gt=k,t.gte=x,t.interpret=R,t.lt=w,t.lte=b,t.mod=S,t.ne=y,t.nin=A,t.nor=f,t.not=g,t.or=p,t.regex=C,t.size=E,t.where=T,t.within=D},92507:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(68836);function i(e,t){if(!Array.isArray(t))throw Error(`"${e.name}" expects value to be an array`)}function o(e,t){if(i(e,t),!t.length)throw Error(`"${e.name}" expects to have at least one element in array`)}let a=e=>(t,r)=>{if(typeof r!==e)throw Error(`"${t.name}" expects value to be a "${e}"`)},s={type:"compound",validate:o,parse(e,t,{parse:r}){let i=t.map(e=>r(e));return n.optimizedCompoundCondition(e.name,i)}},l={type:"compound",validate:o},u={type:"field",validate(e,t){if(!(t&&(t instanceof RegExp||t.constructor===Object)))throw Error(`"${e.name}" expects to receive either regular expression or object of field operators`)},parse(e,t,r){let i=t instanceof RegExp?new n.FieldCondition("regex",r.field,t):r.parse(t,r);return new n.CompoundCondition(e.name,[i])}},c={type:"field",validate(e,t){if(!t||t.constructor!==Object)throw Error(`"${e.name}" expects to receive an object with nested query or field level operators`)},parse(e,t,{parse:r,field:i,hasOperators:o}){let a=o(t)?r(t,{field:n.ITSELF}):r(t);return new n.FieldCondition(e.name,i,a)}},d={type:"field",validate:a("number")},h={type:"field",validate:i},p={type:"field",validate(e,t){if(!Array.isArray(t)||2!==t.length)throw Error(`"${e.name}" expects an array with 2 numeric elements`)}},f={type:"field",validate:a("boolean")},m={type:"field",validate:function(e,t){if(!("string"==typeof t||"number"==typeof t||t instanceof Date))throw Error(`"${e.name}" expects value to be comparable (i.e., string, number or date)`)}},g={type:"field"},v={type:"field",validate(e,t){if(!(t instanceof RegExp)&&"string"!=typeof t)throw Error(`"${e.name}" expects value to be a regular expression or a string that represents regular expression`)},parse(e,t,r){let i="string"==typeof t?new RegExp(t,r.query.$options||""):t;return new n.FieldCondition(e.name,r.field,i)}},y={type:"field",parse:()=>n.NULL_CONDITION},b={type:"document",validate:a("function")};var w=Object.freeze({__proto__:null,$and:s,$or:s,$nor:l,$not:u,$elemMatch:c,$size:d,$in:h,$nin:h,$all:h,$mod:p,$exists:f,$gte:m,$gt:m,$lt:m,$lte:m,$eq:g,$ne:g,$regex:v,$options:y,$where:b});class k extends n.ObjectQueryParser{constructor(e){super(e,{defaultOperatorName:"$eq",operatorToConditionName:e=>e.slice(1)})}parse(e,t){return t&&t.field?n.buildAnd(this.parseFieldOperators(t.field,e)):super.parse(e)}}Object.defineProperty(t,"defaultParsers",{enumerable:!0,get:function(){return n.defaultInstructionParsers}}),t.$all=h,t.$and=s,t.$elemMatch=c,t.$eq=g,t.$exists=f,t.$gt=m,t.$gte=m,t.$in=h,t.$lt=m,t.$lte=m,t.$mod=p,t.$ne=g,t.$nin=h,t.$nor=l,t.$not=u,t.$options=y,t.$or=s,t.$regex=v,t.$size=d,t.$where=b,t.MongoQueryParser=k,t.allParsingInstructions=w},78830:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(68836),i=r(92507),o=r(53096);function a(e){return e instanceof Date?e.getTime():e&&"function"==typeof e.toJSON?e.toJSON():e}let s=(e,t)=>o.compare(a(e),a(t));function l(e,t,r){let a=new i.MongoQueryParser(e),l=o.createJsInterpreter(t,Object.assign({compare:s},r));if(r&&r.forPrimitives){let e={field:n.ITSELF},t=a.parse;a.setParse(r=>t(r,e))}return n.createTranslatorFactory(a.parse,l)}let u=l(i.allParsingInstructions,o.allInterpreters),c=l(["$and","$or"].reduce((e,t)=>(e[t]=Object.assign({},e[t],{type:"field"}),e),Object.assign({},i.allParsingInstructions,{$nor:Object.assign({},i.allParsingInstructions.$nor,{type:"field",parse:i.defaultParsers.compound})})),o.allInterpreters,{forPrimitives:!0});Object.keys(n).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})}),Object.keys(i).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}),Object.keys(o).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}),t.createFactory=l,t.filter=u,t.guard=u,t.squire=c},25897:e=>{"use strict";function t(e){this.content=e}t.prototype={constructor:t,find:function(e){for(var t=0;t>1}},t.from=function(e){if(e instanceof t)return e;var r=[];if(e)for(var n in e)r.push(n,e[n]);return new t(r)},e.exports=t},89458:(e,t,r)=>{"use strict";var n=r(55476),i=r(35473),o=r(41321),a=function(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)};function s(e,t){var r=e.selection.$cursor;return r&&(t?t.endOfTextblock("backward",e):!(r.parentOffset>0))?r:null}var l=function(e,t,r){var a=s(e,r);if(!a)return!1;var l=h(a);if(!l){var u=a.blockRange(),d=u&&n.liftTarget(u);return null!=d&&(t&&t(e.tr.lift(u,d).scrollIntoView()),!0)}var p=l.nodeBefore;if(E(e,l,t,-1))return!0;if(0==a.parent.content.size&&(c(p,"end")||o.NodeSelection.isSelectable(p)))for(var f=a.depth;;f--){var m=n.replaceStep(e.doc,a.before(f),a.after(f),i.Slice.empty);if(m&&m.slice.size1)break}return!!p.isAtom&&l.depth==a.depth-1&&(t&&t(e.tr.delete(l.pos-p.nodeSize,l.pos).scrollIntoView()),!0)};function u(e,t,r){for(var a=t.nodeBefore,s=t.pos-1;!a.isTextblock;s--){if(a.type.spec.isolating)return!1;var l=a.lastChild;if(!l)return!1;a=l}for(var u=t.nodeAfter,c=t.pos+1;!u.isTextblock;c++){if(u.type.spec.isolating)return!1;var d=u.firstChild;if(!d)return!1;u=d}var h=n.replaceStep(e.doc,s,c,i.Slice.empty);if(!h||h.from!=s||h instanceof n.ReplaceStep&&h.slice.size>=c-s)return!1;if(r){var p=e.tr.step(h);p.setSelection(o.TextSelection.create(p.doc,s)),r(p.scrollIntoView())}return!0}function c(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e;n;n="start"==t?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&1!=n.childCount)break}return!1}var d=function(e,t,r){var n=e.selection,i=n.$head,a=n.empty,s=i;if(!a)return!1;if(i.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):i.parentOffset>0)return!1;s=h(i)}var l=s&&s.nodeBefore;return!!(l&&o.NodeSelection.isSelectable(l))&&(t&&t(e.tr.setSelection(o.NodeSelection.create(e.doc,s.pos-l.nodeSize)).scrollIntoView()),!0)};function h(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function p(e,t){var r=e.selection.$cursor;return r&&(t?t.endOfTextblock("forward",e):!(r.parentOffset=0;t--){var r=e.node(t);if(e.index(t)+11&&r.after()!=r.end(-1)){var i=r.before();if(n.canSplit(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}var o=r.blockRange(),a=o&&n.liftTarget(o);return null!=a&&(t&&t(e.tr.lift(o,a).scrollIntoView()),!0)};function x(e){return function(t,r){var i=t.selection,a=i.$from,s=i.$to;if(t.selection instanceof o.NodeSelection&&t.selection.node.isBlock)return!!(a.parentOffset&&n.canSplit(t.doc,a.pos))&&(r&&r(t.tr.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(r){var l=s.parentOffset==s.parent.content.size,u=t.tr;(t.selection instanceof o.TextSelection||t.selection instanceof o.AllSelection)&&u.deleteSelection();var c=0==a.depth?null:y(a.node(-1).contentMatchAt(a.indexAfter(-1))),d=e&&e(s.parent,l,a),h=d?[d]:l&&c?[{type:c}]:void 0,p=n.canSplit(u.doc,u.mapping.map(a.pos),1,h);if(!h&&!p&&n.canSplit(u.doc,u.mapping.map(a.pos),1,c?[{type:c}]:void 0)&&(c&&(h=[{type:c}]),p=!0),p&&(u.split(u.mapping.map(a.pos),1,h),!l&&!a.parentOffset&&a.parent.type!=c)){var f=u.mapping.map(a.before()),m=u.doc.resolve(f);c&&a.node(-1).canReplaceWith(m.index(),m.index()+1,c)&&u.setNodeMarkup(u.mapping.map(a.before()),c)}r(u.scrollIntoView())}return!0}}var _=x(),S=function(e,t){return t&&t(e.tr.setSelection(new o.AllSelection(e.doc))),!0};function E(e,t,r,a){var s,l,u,d,h,p=t.nodeBefore,f=t.nodeAfter,m=p.type.spec.isolating||f.type.spec.isolating;if(!m&&(s=t.nodeBefore,l=t.nodeAfter,u=t.index(),s&&l&&s.type.compatibleContent(l.type)&&(!s.content.size&&t.parent.canReplace(u-1,u)?(r&&r(e.tr.delete(t.pos-s.nodeSize,t.pos).scrollIntoView()),!0):!!(t.parent.canReplace(u,u+1)&&(l.isTextblock||n.canJoin(e.doc,t.pos)))&&(r&&r(e.tr.clearIncompatible(t.pos,s.type,s.contentMatchAt(s.childCount)).join(t.pos).scrollIntoView()),!0))))return!0;var g=!m&&t.parent.canReplace(t.index(),t.index()+1);if(g&&(d=(h=p.contentMatchAt(p.childCount)).findWrapping(f.type))&&h.matchType(d[0]||f.type).validEnd){if(r){for(var v=t.pos+f.nodeSize,y=i.Fragment.empty,b=d.length-1;b>=0;b--)y=i.Fragment.from(d[b].create(null,y));y=i.Fragment.from(p.copy(y));var w=e.tr.step(new n.ReplaceAroundStep(t.pos-1,v,t.pos,v,new i.Slice(y,1,0),d.length,!0)),k=v+2*d.length;n.canJoin(w.doc,k)&&w.join(k),r(w.scrollIntoView())}return!0}var x=f.type.spec.isolating||a>0&&m?null:o.Selection.findFrom(t,1),_=x&&x.$from.blockRange(x.$to),S=_&&n.liftTarget(_);if(null!=S&&S>=t.depth)return r&&r(e.tr.lift(_,S).scrollIntoView()),!0;if(g&&c(f,"start",!0)&&c(p,"end")){for(var E=p,C=[];C.push(E),!E.isTextblock;)E=E.lastChild;for(var D=f,A=1;!D.isTextblock;D=D.firstChild)A++;if(E.canReplace(E.childCount,E.childCount,D.content)){if(r){for(var j=i.Fragment.empty,O=C.length-1;O>=0;O--)j=i.Fragment.from(C[O].copy(j));r(e.tr.step(new n.ReplaceAroundStep(t.pos-C.length,t.pos+f.nodeSize,t.pos+A,t.pos+f.nodeSize-A,new i.Slice(j,C.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function C(e){return function(t,r){for(var n=t.selection,i=e<0?n.$from:n.$to,a=i.depth;i.node(a).isInline;){if(!a)return!1;a--}return!!i.node(a).isTextblock&&(r&&r(t.tr.setSelection(o.TextSelection.create(t.doc,e<0?i.start(a):i.end(a)))),!0)}}var D=C(-1),A=C(1);function j(){for(var e=arguments.length,t=Array(e),r=0;r-1}:t;return function(t,i,o){return e(t,i&&function(e){if(!e.isGeneric)return i(e);for(var t=[],o=0;o=0;b--)n.canJoin(e.doc,l[b])&&e.join(l[b]);i(e)},o)}},t.baseKeymap=N,t.chainCommands=j,t.createParagraphNear=w,t.deleteSelection=a,t.exitCode=b,t.joinBackward=l,t.joinDown=function(e,t){var r,i=e.selection;if(i instanceof o.NodeSelection){if(i.node.isTextblock||!n.canJoin(e.doc,i.to))return!1;r=i.to}else if(null==(r=n.joinPoint(e.doc,i.to,1)))return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},t.joinForward=f,t.joinTextblockBackward=function(e,t,r){var n=s(e,r);if(!n)return!1;var i=h(n);return!!i&&u(e,i,t)},t.joinTextblockForward=function(e,t,r){var n=p(e,r);if(!n)return!1;var i=g(n);return!!i&&u(e,i,t)},t.joinUp=function(e,t){var r,i=e.selection,a=i instanceof o.NodeSelection;if(a){if(i.node.isTextblock||!n.canJoin(e.doc,i.from))return!1;r=i.from}else if(null==(r=n.joinPoint(e.doc,i.from,-1)))return!1;if(t){var s=e.tr.join(r);a&&s.setSelection(o.NodeSelection.create(s.doc,r-e.doc.resolve(r).nodeBefore.nodeSize)),t(s.scrollIntoView())}return!0},t.lift=function(e,t){var r=e.selection,i=r.$from,o=r.$to,a=i.blockRange(o),s=a&&n.liftTarget(a);return null!=s&&(t&&t(e.tr.lift(a,s).scrollIntoView()),!0)},t.liftEmptyBlock=k,t.macBaseKeymap=R,t.newlineInCode=v,t.pcBaseKeymap=P,t.selectAll=S,t.selectNodeBackward=d,t.selectNodeForward=m,t.selectParentNode=function(e,t){var r,n=e.selection,i=n.$from,a=n.to,s=i.sharedDepth(a);return 0!=s&&(r=i.before(s),t&&t(e.tr.setSelection(o.NodeSelection.create(e.doc,r))),!0)},t.selectTextblockEnd=A,t.selectTextblockStart=D,t.setBlockType=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(r,n){for(var i=!1,o=0;o1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,n=!1!==(r&&r.removeWhenPresent),i=!1!==(r&&r.enterInlineAtoms);return function(r,a){var s=r.selection,l=s.empty,u=s.$cursor,c=s.ranges;if(l&&!u||!function(e,t,r,n){for(var i,o=0;o=a.pos&&t+e.nodeSize<=s.pos)return!1;l=e.inlineContent&&e.type.allowsMarkType(r)}),l)return{v:!0}}())return i.v;return!1}(r.doc,c,e,i))return!1;if(a){if(u)a(e.isInSet(r.storedMarks||u.marks())?r.tr.removeStoredMark(e):r.tr.addStoredMark(e.create(t)));else{var d,h=r.tr;i||(c=function(e){for(var t=[],r=0;r=i.pos&&r+e.nodeSize<=a.pos)return r+1>i.pos&&t.push(new o.SelectionRange(i,i.doc.resolve(r+1))),i=i.doc.resolve(r+1+e.content.size),!1}),i.pos1&&void 0!==arguments[1]?arguments[1]:null;return function(r,i){var o=r.selection,a=o.$from,s=o.$to,l=a.blockRange(s),u=l&&n.findWrapping(l,e,t);return!!u&&(i&&i(r.tr.wrap(l,u).scrollIntoView()),!0)}}},5679:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(33462),i=r(41321),o="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function a(e,t){var r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),r&&t.shiftKey&&(e="Shift-"+e),e}function s(e){var t=function(e){var t=Object.create(null);for(var r in e)t[function(e){var t,r,n,i,a=e.split(/-(?!$)/),s=a[a.length-1];"Space"==s&&(s=" ");for(var l=0;l127)&&(i=n.base[r.keyCode])&&i!=o){var u=t[a(i,r)];if(u&&u(e.state,e.dispatch,e))return!0}}return!1}}t.keydownHandler=s,t.keymap=function(e){return new i.Plugin({props:{handleKeyDown:s(e)}})}},35473:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0,o=0,a=0;ae&&!1!==r(s,n+a,i||null,o)&&s.content.size){var u=a+1;s.nodesBetween(Math.max(0,e-u),Math.min(s.content.size,t-u),r,n+u)}a=l}}},{key:"descendants",value:function(e){this.nodesBetween(0,this.size,e)}},{key:"textBetween",value:function(e,t,r,n){var i="",o=!0;return this.nodesBetween(e,t,function(a,s){var l=a.isText?a.text.slice(Math.max(e,s)-s,t-s):a.isLeaf?n?"function"==typeof n?n(a):n:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&l||a.isTextblock)&&r&&(o?o=!1:i+=r),i+=l},0),i}},{key:"append",value:function(t){if(!t.size)return this;if(!this.size)return t;var r=this.lastChild,n=t.firstChild,i=this.content.slice(),o=0;for(r.isText&&r.sameMarkup(n)&&(i[i.length-1]=r.withText(r.text+n.text),o=1);o1&&void 0!==arguments[1]?arguments[1]:this.size;if(0==t&&r==this.size)return this;var n=[],i=0;if(r>t)for(var o=0,a=0;at&&((ar)&&(s=s.isText?s.cut(Math.max(0,t-a),Math.min(s.text.length,r-a)):s.cut(Math.max(0,t-a-1),Math.min(s.content.size,r-a-1))),n.push(s),i+=s.nodeSize),a=l}return new e(n,i)}},{key:"cutByIndex",value:function(t,r){return t==r?e.empty:0==t&&r==this.content.length?this:new e(this.content.slice(t,r))}},{key:"replaceChild",value:function(t,r){var n=this.content[t];if(n==r)return this;var i=this.content.slice(),o=this.size+r.nodeSize-n.nodeSize;return i[t]=r,new e(i,o)}},{key:"addToStart",value:function(t){return new e([t].concat(this.content),this.size+t.nodeSize)}},{key:"addToEnd",value:function(t){return new e(this.content.concat(t),this.size+t.nodeSize)}},{key:"eq",value:function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:0;return function e(t,r,n){for(var i=0;;i++){if(i==t.childCount||i==r.childCount)return t.childCount==r.childCount?null:n;var o=t.child(i),a=r.child(i);if(o==a){n+=o.nodeSize;continue}if(!o.sameMarkup(a))return n;if(o.isText&&o.text!=a.text){for(var s=0;o.text[s]==a.text[s];s++)n++;return n}if(o.content.size||a.content.size){var l=e(o.content,a.content,n+1);if(null!=l)return l}n+=o.nodeSize}}(this,e,t)}},{key:"findDiffEnd",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.size;return function e(t,r,n,i){for(var o=t.childCount,a=r.childCount;;){if(0==o||0==a)return o==a?null:{a:n,b:i};var s=t.child(--o),l=r.child(--a),u=s.nodeSize;if(s==l){n-=u,i-=u;continue}if(!s.sameMarkup(l))return{a:n,b:i};if(s.isText&&s.text!=l.text){for(var c=0,d=Math.min(s.text.length,l.text.length);c1&&void 0!==arguments[1]?arguments[1]:-1;if(0==e)return b(0,e);if(e==this.size)return b(this.content.length,e);if(e>this.size||e<0)throw RangeError("Position ".concat(e," outside of fragment (").concat(this,")"));for(var r=0,n=0;;r++){var i=n+this.child(r).nodeSize;if(i>=e){if(i==e||t>0)return b(r+1,i);return b(r,n)}n=i}}},{key:"toString",value:function(){return"<"+this.toStringInner()+">"}},{key:"toStringInner",value:function(){return this.content.join(", ")}},{key:"toJSON",value:function(){return this.content.length?this.content.map(function(e){return e.toJSON()}):null}}],[{key:"fromJSON",value:function(t,r){if(!r)return e.empty;if(!Array.isArray(r))throw RangeError("Invalid input for Fragment.fromJSON");return new e(r.map(t.nodeFromJSON))}},{key:"fromArray",value:function(t){if(!t.length)return e.empty;for(var r,n=0,i=0;ithis.type.rank&&(t||(t=e.slice(0,n)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}},{key:"removeFromSet",value:function(e){for(var t=0;t0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}}],[{key:"fromJSON",value:function(t,r){if(!r)return e.empty;var n=r.openStart||0,i=r.openEnd||0;if("number"!=typeof n||"number"!=typeof i)throw RangeError("Invalid input for Slice.fromJSON");return new e(v.fromJSON(t,r.content),n,i)}},{key:"maxOpen",value:function(t){for(var r=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=0,i=0,o=t.firstChild;o&&!o.isLeaf&&(r||!o.type.spec.isolating);o=o.firstChild)n++;for(var a=t.lastChild;a&&!a.isLeaf&&(r||!a.type.spec.isolating);a=a.lastChild)i++;return new e(t,n,i)}}]),e}();function S(e,t){if(!t.type.compatibleContent(e.type))throw new x("Cannot join "+t.type.name+" onto "+e.type.name)}function E(e,t,r){var n=e.node(r);return S(n,t.node(r)),n}function C(e,t){var r=t.length-1;r>=0&&e.isText&&e.sameMarkup(t[r])?t[r]=e.withText(t[r].text+e.text):t.push(e)}function D(e,t,r,n){var i=(t||e).node(r),o=0,a=t?t.index(r):i.childCount;e&&(o=e.index(r),e.depth>r?o++:e.textOffset&&(C(e.nodeAfter,n),o++));for(var s=o;sr&&C(A(E(e,t,r+1),j(e,t,r+1)),n),D(t,null,r,n),new v(n)}_.empty=new _(v.empty,0,0);var O=function(){function e(t,r,n){p(this,e),this.pos=t,this.path=r,this.parentOffset=n,this.depth=r.length/3-1}return m(e,[{key:"resolveDepth",value:function(e){return null==e?this.depth:e<0?this.depth+e:e}},{key:"parent",get:function(){return this.node(this.depth)}},{key:"doc",get:function(){return this.node(0)}},{key:"node",value:function(e){return this.path[3*this.resolveDepth(e)]}},{key:"index",value:function(e){return this.path[3*this.resolveDepth(e)+1]}},{key:"indexAfter",value:function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}},{key:"start",value:function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}},{key:"end",value:function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}},{key:"before",value:function(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}},{key:"after",value:function(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}},{key:"textOffset",get:function(){return this.pos-this.path[this.path.length-1]}},{key:"nodeAfter",get:function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var r=this.pos-this.path[this.path.length-1],n=e.child(t);return r?e.child(t).cut(r):n}},{key:"nodeBefore",get:function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}},{key:"posAtIndex",value:function(e,t){t=this.resolveDepth(t);for(var r=this.path[3*t],n=0==t?0:this.path[3*t-1]+1,i=0;i0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}},{key:"blockRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this,t=arguments.length>1?arguments[1]:void 0;if(e.pos=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new M(this,e,r);return null}},{key:"sameParent",value:function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}},{key:"max",value:function(e){return e.pos>this.pos?e:this}},{key:"min",value:function(e){return e.pos=0&&r<=t.content.size))throw RangeError("Position "+r+" out of range");for(var n=[],i=0,o=r,a=t;;){var s=a.content.findIndex(o),l=s.index,u=s.offset,c=o-u;if(n.push(a,l,i+u),!c||(a=a.child(l)).isText)break;o=c-1,i+=u+1}return new e(r,n,o)}},{key:"resolveCached",value:function(t,r){var n=R.get(t);if(n)for(var i=0;i3&&void 0!==arguments[3]?arguments[3]:k.none;p(this,e),this.type=t,this.attrs=r,this.marks=i,this.content=n||v.empty}return m(e,[{key:"nodeSize",get:function(){return this.isLeaf?1:2+this.content.size}},{key:"childCount",get:function(){return this.content.childCount}},{key:"child",value:function(e){return this.content.child(e)}},{key:"maybeChild",value:function(e){return this.content.maybeChild(e)}},{key:"forEach",value:function(e){this.content.forEach(e)}},{key:"nodesBetween",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.content.nodesBetween(e,t,r,n,this)}},{key:"descendants",value:function(e){this.nodesBetween(0,this.content.size,e)}},{key:"textContent",get:function(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}},{key:"textBetween",value:function(e,t,r,n){return this.content.textBetween(e,t,r,n)}},{key:"firstChild",get:function(){return this.content.firstChild}},{key:"lastChild",get:function(){return this.content.lastChild}},{key:"eq",value:function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}},{key:"sameMarkup",value:function(e){return this.hasMarkup(e.type,e.attrs,e.marks)}},{key:"hasMarkup",value:function(e,t,r){return this.type==e&&w(this.attrs,t||e.defaultAttrs||N)&&k.sameSet(this.marks,r||k.none)}},{key:"copy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}},{key:"mark",value:function(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}},{key:"cut",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content.size;return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}},{key:"slice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content.size,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e==t)return _.empty;var n=this.resolve(e),i=this.resolve(t),o=r?0:n.sharedDepth(t),a=n.start(o);return new _(n.node(o).content.cut(n.pos-a,i.pos-a),n.depth-o,i.depth-o)}},{key:"replace",value:function(e,t,r){return function(e,t,r){if(r.openStart>e.depth)throw new x("Inserted content deeper than insertion position");if(e.depth-r.openStart!=t.depth-r.openEnd)throw new x("Inconsistent open depths");return function e(t,r,n,i){var o=t.index(i),a=t.node(i);if(o==r.index(i)&&i=0;i--)n=t.node(i).copy(v.from(n));return{start:n.resolveNoCache(e.openStart+r),end:n.resolveNoCache(n.content.size-e.openEnd-r)}}(n,t);return A(a,function e(t,r,n,i,o){var a=t.depth>o&&E(t,r,o+1),s=i.depth>o&&E(n,i,o+1),l=[];return D(null,t,o,l),a&&s&&r.index(o)==n.index(o)?(S(a,s),C(A(a,e(t,r,n,i,o+1)),l)):(a&&C(A(a,j(t,r,o+1)),l),D(r,n,o,l),s&&C(A(s,j(n,i,o+1)),l)),D(i,null,o,l),new v(l)}(t,l.start,l.end,r,i))}var u=t.parent,c=u.content;return A(u,c.cut(0,t.parentOffset).append(n.content).append(c.cut(r.parentOffset)))}(e,t,r,0)}(this.resolve(e),this.resolve(t),r)}},{key:"nodeAt",value:function(e){for(var t=this;;){var r=t.content.findIndex(e),n=r.index,i=r.offset;if(!(t=t.maybeChild(n)))return null;if(i==e||t.isText)return t;e-=i+1}}},{key:"childAfter",value:function(e){var t=this.content.findIndex(e),r=t.index,n=t.offset;return{node:this.content.maybeChild(r),index:r,offset:n}}},{key:"childBefore",value:function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),r=t.index,n=t.offset;if(ne&&this.nodesBetween(e,t,function(e){return r.isInSet(e.marks)&&(n=!0),!n}),n}},{key:"isBlock",get:function(){return this.type.isBlock}},{key:"isTextblock",get:function(){return this.type.isTextblock}},{key:"inlineContent",get:function(){return this.type.inlineContent}},{key:"isInline",get:function(){return this.type.isInline}},{key:"isText",get:function(){return this.type.isText}},{key:"isLeaf",get:function(){return this.type.isLeaf}},{key:"isAtom",get:function(){return this.type.isAtom}},{key:"toString",value:function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),L(this.marks,e)}},{key:"contentMatchAt",value:function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}},{key:"canReplace",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.empty,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.childCount,o=this.contentMatchAt(e).matchFragment(r,n,i),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(var s=n;s0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.text.length;return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}},{key:"eq",value:function(e){return this.sameMarkup(e)&&this.text==e.text}},{key:"toJSON",value:function(){var e=i(d(r.prototype),"toJSON",this).call(this);return e.text=this.text,e}}]),r}(F);function L(e,t){for(var r=e.length-1;r>=0;r--)t=e[r].type.name+"("+t+")";return t}var B=function(){function e(t){p(this,e),this.validEnd=t,this.next=[],this.wrapCache=[]}return m(e,[{key:"matchType",value:function(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.childCount,n=this,i=t;n&&i1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=[this];return function i(o,a){var s=o.matchFragment(e,r);if(s&&(!t||s.validEnd))return v.from(a.map(function(e){return e.createAndFill()}));for(var l=0;l=this.next.length)throw RangeError("There's no ".concat(e,"th edge in this content match"));return this.next[e]}},{key:"toString",value:function(){var e=[];return function t(r){e.push(r);for(var n=0;n"+e.indexOf(t.next[i].next);return n}).join("\n")}}],[{key:"parse",value:function(t,r){var n,i,o=new z(t,r);if(null==o.next)return e.empty;var a=function e(t){var r=[];do r.push(function(t){var r=[];do r.push(function(t){for(var r=function(t){if(t.eat("(")){var r=e(t);return t.eat(")")||t.err("Missing closing paren"),r}if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{var n=(function(e,t){var r=e.nodeTypes,n=r[t];if(n)return[n];var i=[];for(var o in r){var a=r[o];a.groups.indexOf(t)>-1&&i.push(a)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i})(t,t.next).map(function(e){return null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}});return t.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}}(t);;)if(t.eat("+"))r={type:"plus",expr:r};else if(t.eat("*"))r={type:"star",expr:r};else if(t.eat("?"))r={type:"opt",expr:r};else if(t.eat("{"))r=function(e,t){var r=U(e),n=r;return e.eat(",")&&(n="}"!=e.next?U(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:t}}(t,r);else break;return r}(t));while(t.next&&")"!=t.next&&"|"!=t.next);return 1==r.length?r[0]:{type:"seq",exprs:r}}(t));while(t.eat("|"));return 1==r.length?r[0]:{type:"choice",exprs:r}}(o);o.next&&o.err("Unexpected trailing text");var s=(n=function(e){var t=[[]];return i(function e(t,o){if("choice"==t.type)return t.exprs.reduce(function(t,r){return t.concat(e(r,o))},[]);if("seq"==t.type)for(var a=0;;a++){var s=e(t.exprs[a],o);if(a==t.exprs.length-1)return s;i(s,o=r())}else if("star"==t.type){var l=r();return n(o,l),i(e(t.expr,l),l),[n(l)]}else if("plus"==t.type){var u=r();return i(e(t.expr,o),u),i(e(t.expr,u),u),[n(u)]}else if("opt"==t.type)return[n(o)].concat(e(t.expr,o));else if("range"==t.type){for(var c=o,d=0;d-1),a=0;a0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;if(this.isText)throw Error("NodeType.create can't construct text nodes");return new F(this,this.computeAttrs(e),v.from(t),k.setFrom(r))}},{key:"createChecked",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t=v.from(t),this.checkContent(t),new F(this,this.computeAttrs(e),t,k.setFrom(r))}},{key:"createAndFill",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;if(e=this.computeAttrs(e),(t=v.from(t)).size){var n=this.contentMatch.fillBefore(t);if(!n)return null;t=n.append(t)}var i=this.contentMatch.matchFragment(t),o=i&&i.fillBefore(v.empty,!0);return o?new F(this,e,t.append(o),k.setFrom(r)):null}},{key:"validContent",value:function(e){var t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(var r=0;r-1}},{key:"allowsMarks",value:function(e){if(null==this.markSet)return!0;for(var t=0;ti.indexOf(n))throw RangeError("Expected value of type ".concat(i," for attribute ").concat(r," on type ").concat(t,", got ").concat(n))}):n.validate}return m(e,[{key:"isRequired",get:function(){return!this.hasDefault}}]),e}(),X=function(){function e(t,r,n,i){p(this,e),this.name=t,this.rank=r,this.schema=n,this.spec=i,this.attrs=Y(t,i.attrs),this.excluded=null;var o=V(this.attrs);this.instance=o?new k(this,o):null}return m(e,[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!e&&this.instance?this.instance:new k(this,$(this.attrs,e))}},{key:"removeFromSet",value:function(e){for(var t=0;t-1}}],[{key:"compile",value:function(t,r){var n=Object.create(null),i=0;return t.forEach(function(t,o){return n[t]=new e(t,i++,r,o)}),n}}]),e}(),J=function(){function e(t){p(this,e),this.linebreakReplacement=null,this.cached=Object.create(null);var r=this.spec={};for(var n in t)r[n]=t[n];r.nodes=g.from(t.nodes),r.marks=g.from(t.marks||{}),this.nodes=G.compile(this.spec.nodes,this),this.marks=X.compile(this.spec.marks,this);var i=Object.create(null);for(var o in this.nodes){if(o in this.marks)throw RangeError(o+" can not be both a node and a mark");var a=this.nodes[o],s=a.spec.content||"",l=a.spec.marks;if(a.contentMatch=i[s]||(i[s]=B.parse(s,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!a.isInline||!a.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=a}a.markSet="_"==l?null:l?Q(this,l.split(" ")):""!=l&&a.inlineContent?null:[]}for(var u in this.marks){var c=this.marks[u],d=c.spec.excludes;c.excluded=null==d?[c]:""==d?[]:Q(this,d.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}return m(e,[{key:"node",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if("string"==typeof e)e=this.nodeType(e);else if(e instanceof G){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,r,n)}},{key:"text",value:function(e,t){var r=this.nodes.text;return new I(r,r.defaultAttrs,e,k.setFrom(t))}},{key:"mark",value:function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}},{key:"nodeFromJSON",value:function(e){return F.fromJSON(this,e)}},{key:"markFromJSON",value:function(e){return k.fromJSON(this,e)}},{key:"nodeType",value:function(e){var t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}]),e}();function Q(e,t){for(var r=[],n=0;n-1)&&r.push(a=l)}if(!a)throw SyntaxError("Unknown mark type: '"+t[n]+"'")}return r}var Z=function(){function e(t,r){var n=this;p(this,e),this.schema=t,this.rules=r,this.tags=[],this.styles=[];var i=this.matchedStyles=[];r.forEach(function(e){if(null!=e.tag)n.tags.push(e);else if(null!=e.style){var t=/[^=]*/.exec(e.style)[0];0>i.indexOf(t)&&i.push(t),n.styles.push(e)}}),this.normalizeLists=!this.tags.some(function(e){if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;var r=t.nodes[e.node];return r.contentMatch.matchType(r)})}return m(e,[{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new eo(this,t,!1);return r.addAll(e,k.none,t.from,t.to),r.finish()}},{key:"parseSlice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new eo(this,t,!0);return r.addAll(e,k.none,t.from,t.to),_.maxOpen(r.finish())}},{key:"matchTag",value:function(e,t,r){for(var n=r?this.tags.indexOf(r)+1:0;ne.length)||61==a.charCodeAt(e.length)&&a.slice(e.length+1)==t)){if(o.getAttrs){var s=o.getAttrs(t);if(!1===s)continue;o.attrs=s||void 0}return o}}}}],[{key:"schemaRules",value:function(e){var t=[];function r(e){for(var r=null==e.priority?50:e.priority,n=0;n=0;i--){var o=this.nodes[i],a=o.findWrapping(e);if(a&&(!r||r.length>a.length)&&(r=a,n=o,!a.length)||o.solid)break}if(!r)return null;this.sync(n);for(var s=0;s=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}(i.concat(e.marks));try{for(l.s();!(a=l.n()).done;){var u=a.value;(o.type?o.type.allowsMarkType(u.type):es(u.type,e.type))&&(s=u.addToSet(s))}}catch(e){l.e(e)}finally{l.f()}return o.content.push(e.mark(s)),!0}return!1}},{key:"enter",value:function(e,t,r,n){var i=this.findPlace(e.create(t),r);return i&&(i=this.enterInner(e,t,r,!0,n)),i}},{key:"enterInner",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;this.closeExtra();var o=this.top;o.match=o.match&&o.match.matchType(e);var a=en(e,i,o.options);4&o.options&&0==o.content.length&&(a|=4);var s=k.none;return r=r.filter(function(t){return(o.type?!o.type.allowsMarkType(t.type):!es(t.type,e))||(s=t.addToSet(s),!1)}),this.nodes.push(new ei(e,t,s,n,null,a)),this.open++,r}},{key:"closeExtra",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}},{key:"finish",value:function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}},{key:"sync",value:function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}},{key:"currentPos",get:function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var r=this.nodes[t].content,n=r.length-1;n>=0;n--)e+=r[n].nodeSize;t&&e++}return e}},{key:"findAtPoint",value:function(e,t){if(this.find)for(var r=0;r-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var r=e.split("/"),n=this.options.context,i=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),o=-(n?n.depth+1:0)+(i?0:1);return function e(a,s){for(;a>=0;a--){var l=r[a];if(""==l){if(a==r.length-1||0==a)continue;for(;s>=o;s--)if(e(a-1,s))return!0;return!1}var u=s>0||0==s&&i?t.nodes[s].type:n&&s>=o?n.node(s-o).type:null;if(!u||u.name!=l&&-1==u.groups.indexOf(l))return!1;s--}return!0}(r.length-1,this.open)}},{key:"textblockFromContext",value:function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(var n in this.parser.schema.nodes){var i=this.parser.schema.nodes[n];if(i.isTextblock&&i.defaultAttrs)return i}}}]),e}();function ea(e){var t={};for(var r in e)t[r]=e[r];return t}function es(e,t){var r,n=t.schema.nodes;for(var i in n)if(0!==(r=function(){var r=n[i];if(!r.allowsMarkType(e))return 0;var o=[];if(function e(r){o.push(r);for(var n=0;no.indexOf(s)&&e(s))return!0}}(r.contentMatch))return{v:!0}}())&&r)return r.v}var el=function(){function e(t,r){p(this,e),this.nodes=t,this.marks=r}return m(e,[{key:"serializeFragment",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;n||(n=ec(r).createDocumentFragment());var i=n,o=[];return e.forEach(function(e){if(o.length||e.marks.length){for(var n=0,a=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=this.serializeNodeInner(e,t),n=e.marks.length-1;n>=0;n--){var i=this.serializeMark(e.marks[n],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}},{key:"serializeMark",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.marks[e.type.name];return n&&eh(ec(r),n(e,t),null,e.attrs)}}],[{key:"renderSpec",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return eh(e,t,r,n)}},{key:"fromSchema",value:function(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}},{key:"nodesFromSchema",value:function(e){var t=eu(e.nodes);return t.text||(t.text=function(e){return e.text}),t}},{key:"marksFromSchema",value:function(e){return eu(e.marks)}}]),e}();function eu(e){var t={};for(var r in e){var n=e[r].spec.toDOM;n&&(t[r]=n)}return t}function ec(e){return e.document||window.document}var ed=new WeakMap;function eh(e,t,r,n){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;var i,o,a,s,l=t[0];if("string"!=typeof l)throw RangeError("Invalid array passed to renderSpec");if(n&&(void 0===(o=ed.get(n))&&ed.set(n,(i=null,function e(t){if(t&&"object"==h(t)){if(Array.isArray(t)){if("string"==typeof t[0])i||(i=[]),i.push(t);else for(var r=0;r-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");var u=l.indexOf(" ");u>0&&(r=l.slice(0,u),l=l.slice(u+1));var c=r?e.createElementNS(r,l):e.createElement(l),d=t[1],p=1;if(d&&"object"==h(d)&&null==d.nodeType&&!Array.isArray(d)){for(var f in p=2,d)if(null!=d[f]){var m=f.indexOf(" ");m>0?c.setAttributeNS(f.slice(0,m),f.slice(m+1),d[f]):c.setAttribute(f,d[f])}}for(var g=p;gp)throw RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}var y=eh(e,v,r,n),b=y.dom,w=y.contentDOM;if(c.appendChild(b),w){if(a)throw RangeError("Multiple content holes");a=w}}return{dom:c,contentDOM:a}}t.ContentMatch=B,t.DOMParser=Z,t.DOMSerializer=el,t.Fragment=v,t.Mark=k,t.MarkType=X,t.Node=F,t.NodeRange=M,t.NodeType=G,t.ReplaceError=x,t.ResolvedPos=O,t.Schema=J,t.Slice=_},6794:(e,t,r)=>{"use strict";var n=r(55476),i=r(35473),o=r(41321),a=["ol",0],s=["ul",0],l=["li",0],u={attrs:{order:{default:1}},parseDOM:[{tag:"ol",getAttrs:function(e){return{order:e.hasAttribute("start")?+e.getAttribute("start"):1}}}],toDOM:function(e){return 1==e.attrs.order?a:["ol",{start:e.attrs.order},0]}},c={parseDOM:[{tag:"ul"}],toDOM:function(){return s}},d={parseDOM:[{tag:"li"}],toDOM:function(){return l},defining:!0};function h(e,t){var r={};for(var n in e)r[n]=e[n];for(var i in t)r[i]=t[i];return r}function p(e,t){return function(r,a){var s=r.selection,l=s.$from,u=s.$to,c=s.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(u))return!1;var d=l.node(-1);if(d.type!=e)return!1;if(0==l.parent.content.size&&l.node(-1).childCount==l.indexAfter(-1)){if(3==l.depth||l.node(-3).type!=e||l.index(-2)!=l.node(-2).childCount-1)return!1;if(a){for(var h=i.Fragment.empty,p=l.index(-1)?1:l.index(-2)?2:3,f=l.depth-p;f>=l.depth-3;f--)h=i.Fragment.from(l.node(f).copy(h));var m=l.indexAfter(-1)-1)return!1;e.isTextblock&&0==e.content.size&&(y=t+1)}),y>-1&&v.setSelection(o.Selection.near(v.doc.resolve(y))),a(v.scrollIntoView())}return!0}var b=u.pos==l.end()?d.contentMatchAt(0).defaultType:null,w=r.tr.delete(l.pos,u.pos),k=b?[t?{type:e,attrs:t}:null,{type:b}]:void 0;return!!n.canSplit(w.doc,l.pos,2,k)&&(a&&a(w.split(l.pos,2,k).scrollIntoView()),!0)}}t.addListNodes=function(e,t,r){return e.append({ordered_list:h(u,{content:"list_item+",group:r}),bullet_list:h(c,{content:"list_item+",group:r}),list_item:h(d,{content:t})})},t.bulletList=c,t.liftListItem=function(e){return function(t,r){var o=t.selection,a=o.$from,s=o.$to,l=a.blockRange(s,function(t){return t.childCount>0&&t.firstChild.type==e});return!!l&&(!r||(a.node(l.depth-1).type==e?function(e,t,r,o){var a=e.tr,s=o.end,l=o.$to.end(o.depth);su;l--)s-=a.child(l).nodeSize,o.delete(s-1,s+1);var c=o.doc.resolve(r.start),d=c.nodeAfter;if(o.mapping.map(r.end)!=r.start+c.nodeAfter.nodeSize)return!1;var h=0==r.startIndex,p=r.endIndex==a.childCount,f=c.node(-1),m=c.index(-1);if(!f.canReplace(m+(h?0:1),m+1,d.content.append(p?i.Fragment.empty:i.Fragment.from(a))))return!1;var g=c.pos,v=g+d.nodeSize;return o.step(new n.ReplaceAroundStep(g-(h?1:0),v+(p?1:0),g+1,v-1,new i.Slice((h?i.Fragment.empty:i.Fragment.from(a.copy(i.Fragment.empty))).append(p?i.Fragment.empty:i.Fragment.from(a.copy(i.Fragment.empty))),h?0:1,p?0:1),h?0:1)),t(o.scrollIntoView()),!0}(t,r,l)))}},t.listItem=d,t.orderedList=u,t.sinkListItem=function(e){return function(t,r){var o=t.selection,a=o.$from,s=o.$to,l=a.blockRange(s,function(t){return t.childCount>0&&t.firstChild.type==e});if(!l)return!1;var u=l.startIndex;if(0==u)return!1;var c=l.parent,d=c.child(u-1);if(d.type!=e)return!1;if(r){var h=d.lastChild&&d.lastChild.type==c.type,p=i.Fragment.from(h?e.create():null),f=new i.Slice(i.Fragment.from(e.create(null,i.Fragment.from(c.type.create(null,p)))),h?3:1,0),m=l.start,g=l.end;r(t.tr.step(new n.ReplaceAroundStep(m-(h?3:1),g,m,g,f,1,!0)).scrollIntoView())}return!0}},t.splitListItem=p,t.splitListItemKeepMarks=function(e,t){var r=p(e,t);return function(e,t){return r(e,t&&function(r){var n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();n&&r.ensureMarks(n),t(r)})}},t.wrapInList=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(r,o){var a=r.selection,s=a.$from,l=a.$to,u=s.blockRange(l),c=!1,d=u;if(!u)return!1;if(u.depth>=2&&s.node(u.depth-1).type.compatibleContent(e)&&0==u.startIndex){if(0==s.index(u.depth-1))return!1;var h=r.doc.resolve(u.start-2);d=new i.NodeRange(h,h,u.depth),u.endIndex=0;l--)s=i.Fragment.from(r[l].type.create(r[l].attrs,s));e.step(new n.ReplaceAroundStep(t.start-(o?2:0),t.end,t.start,t.end,new i.Slice(s,0,0),r.length,!0));for(var u=0,c=0;c{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,i=l(e);return r=t?Reflect.construct(i,arguments,l(this).constructor):i.apply(this,arguments),function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:h.Slice.empty,r=t.content.lastChild,n=null,i=0;i2&&void 0!==arguments[2]&&arguments[2],n=e.parent.inlineContent?new b(e):E(e.node(0),e.parent,e.pos,e.index(),t,r);if(n)return n;for(var i=e.depth-1;i>=0;i--){var o=t<0?E(e.node(0),e.node(i),e.before(i+1),e.index(i),t,r):E(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,r);if(o)return o}return null}},{key:"near",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.findFrom(e,t)||this.findFrom(e,-t)||new _(e.node(0))}},{key:"atStart",value:function(e){return E(e,e,0,0,1)||new _(e)}},{key:"atEnd",value:function(e){return E(e,e,e.content.size,e.childCount,-1)||new _(e)}},{key:"fromJSON",value:function(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");var r=f[t.type];if(!r)throw RangeError("No selection type ".concat(t.type," defined"));return r.fromJSON(e,t)}},{key:"jsonID",value:function(e,t){if(e in f)throw RangeError("Duplicate use of selection JSON ID "+e);return f[e]=t,t.prototype.jsonID=e,t}}]),e}();m.prototype.visible=!0;var g=d(function e(t,r){u(this,e),this.$from=t,this.$to=r}),v=!1;function y(e){v||e.parent.inlineContent||(v=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}var b=function(e){o(r,e);var t=s(r);function r(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return u(this,r),y(e),y(n),t.call(this,e,n)}return d(r,[{key:"$cursor",get:function(){return this.$anchor.pos==this.$head.pos?this.$head:null}},{key:"map",value:function(e,t){var n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return m.near(n);var i=e.resolve(t.map(this.anchor));return new r(i.parent.inlineContent?i:n,n)}},{key:"replace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.Slice.empty;if(i(l(r.prototype),"replace",this).call(this,e,t),t==h.Slice.empty){var n=this.$from.marksAcross(this.$to);n&&e.ensureMarks(n)}}},{key:"eq",value:function(e){return e instanceof r&&e.anchor==this.anchor&&e.head==this.head}},{key:"getBookmark",value:function(){return new w(this.anchor,this.head)}},{key:"toJSON",value:function(){return{type:"text",anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new r(e.resolve(t.anchor),e.resolve(t.head))}},{key:"create",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,n=e.resolve(t);return new this(n,r==t?n:e.resolve(r))}},{key:"between",value:function(e,t,n){var i=e.pos-t.pos;if((!n||i)&&(n=i>=0?1:-1),!t.parent.inlineContent){var o=m.findFrom(t,n,!0)||m.findFrom(t,-n,!0);if(!o)return m.near(t,n);t=o.$head}return e.parent.inlineContent||(0==i?e=t:(e=(m.findFrom(e,-n,!0)||m.findFrom(e,n,!0)).$anchor).pos1&&void 0!==arguments[1]?arguments[1]:h.Slice.empty;if(t==h.Slice.empty){e.delete(0,e.doc.content.size);var n=m.atStart(e.doc);n.eq(e.selection)||e.setSelection(n)}else i(l(r.prototype),"replace",this).call(this,e,t)}},{key:"toJSON",value:function(){return{type:"all"}}},{key:"map",value:function(e){return new r(e)}},{key:"eq",value:function(e){return e instanceof r}},{key:"getBookmark",value:function(){return S}}],[{key:"fromJSON",value:function(e){return new r(e)}}]),r}(m);m.jsonID("all",_);var S={map:function(){return this},resolve:function(e){return new _(e)}};function E(e,t,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t.inlineContent)return b.create(e,r);for(var a=n-(i>0?0:1);i>0?a=0;a+=i){var s=t.child(a);if(s.isAtom){if(!o&&k.isSelectable(s))return k.create(e,r-(i<0?s.nodeSize:0))}else{var l=E(e,s,r+i,i<0?s.childCount:0,i,o);if(l)return l}r+=s.nodeSize*i}return null}function C(e,t,r){var n,i=e.steps.length-1;if(!(i0}},{key:"setStoredMarks",value:function(e){return this.storedMarks=e,this.updated|=2,this}},{key:"ensureMarks",value:function(e){return h.Mark.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}},{key:"addStoredMark",value:function(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}},{key:"removeStoredMark",value:function(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}},{key:"storedMarksSet",get:function(){return(2&this.updated)>0}},{key:"addStep",value:function(e,t){i(l(r.prototype),"addStep",this).call(this,e,t),this.updated=-3&this.updated,this.storedMarks=null}},{key:"setTime",value:function(e){return this.time=e,this}},{key:"replaceSelection",value:function(e){return this.selection.replace(this,e),this}},{key:"replaceSelectionWith",value:function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||h.Mark.none))),r.replaceWith(this,e),this}},{key:"deleteSelection",value:function(){return this.selection.replace(this),this}},{key:"insertText",value:function(e,t,r){var n=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(n.text(e),!0):this.deleteSelection();if(null==r&&(r=t),r=null==r?t:r,!e)return this.deleteRange(t,r);var i=this.storedMarks;if(!i){var o=this.doc.resolve(t);i=r==t?o.marks():o.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,n.text(e,i)),this.selection.empty||this.setSelection(m.near(this.selection.$to)),this}},{key:"setMeta",value:function(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}},{key:"getMeta",value:function(e){return this.meta["string"==typeof e?e:e.key]}},{key:"isGeneric",get:function(){for(var e in this.meta)return!1;return!0}},{key:"scrollIntoView",value:function(){return this.updated|=4,this}},{key:"scrolledIntoView",get:function(){return(4&this.updated)>0}}]),r}(p.Transform);function A(e,t){return t&&e?e.bind(t):e}var j=d(function e(t,r,n){u(this,e),this.name=t,this.init=A(r.init,n),this.apply=A(r.apply,n)}),O=[new j("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new j("selection",{init:function(e,t){return e.selection||m.atStart(t.doc)},apply:function(e){return e.selection}}),new j("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,r,n){return n.selection.$cursor?e.storedMarks:null}}),new j("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],T=d(function e(t,r){var n=this;u(this,e),this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=O.slice(),r&&r.forEach(function(e){if(n.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");n.plugins.push(e),n.pluginsByKey[e.key]=e,e.spec.state&&n.fields.push(new j(e.key,e.spec.state,e))})}),P=function(){function e(t){u(this,e),this.config=t}return d(e,[{key:"schema",get:function(){return this.config.schema}},{key:"plugins",get:function(){return this.config.plugins}},{key:"apply",value:function(e){return this.applyTransaction(e).state}},{key:"filterTransaction",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=0;r0&&void 0!==arguments[0]?arguments[0]:"key";u(this,e),this.key=N(t)}return d(e,[{key:"get",value:function(e){return e.config.pluginsByKey[this.key]}},{key:"getState",value:function(e){return e[this.key]}}]),e}();t.AllSelection=_,t.EditorState=P,t.NodeSelection=k,t.Plugin=R,t.PluginKey=F,t.Selection=m,t.SelectionRange=g,t.TextSelection=b,t.Transaction=D},55476:(e,t,r)=>{"use strict";function n(e){var t="function"==typeof Map?new Map:void 0;return(n=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return i(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,e)})(e)}function i(e,t,r){return(i=l()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&a(i,r.prototype),i}).apply(null,arguments)}function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=l();return function(){var r,n=u(e);return r=t?Reflect.construct(n,arguments,u(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function l(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;r0}},{key:"deletedBefore",get:function(){return(5&this.delInfo)>0}},{key:"deletedAfter",get:function(){return(6&this.delInfo)>0}},{key:"deletedAcross",get:function(){return(4&this.delInfo)>0}}]),e}(),g=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(d(this,e),this.ranges=t,this.inverted=r,!t.length&&e.empty)return e.empty}return p(e,[{key:"recover",value:function(e){var t=0,r=65535&e;if(!this.inverted)for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!1)}},{key:"map",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!0)}},{key:"_map",value:function(e,t,r){for(var n=0,i=this.inverted?2:1,o=this.inverted?1:2,a=0;ae)break;var l=this.ranges[a+i],u=this.ranges[a+o],c=s+l;if(e<=c){var d=l?e==s?-1:e==c?1:t:t,h=s+n+(d<0?0:u);if(r)return h;var p=e==(t<0?s:c)?null:a/3+(e-s)*65536,f=e==s?2:e==c?1:4;return(t<0?e!=s:e!=c)&&(f|=8),new m(h,f,p)}n+=u-l}return r?e+n:new m(e+n,0,null)}},{key:"touches",value:function(e,t){for(var r=0,n=65535&t,i=this.inverted?2:1,o=this.inverted?1:2,a=0;ae)break;var l=this.ranges[a+i];if(e<=s+l&&a==3*n)return!0;r+=this.ranges[a+o]-l}return!1}},{key:"forEach",value:function(e){for(var t=this.inverted?2:1,r=this.inverted?1:2,n=0,i=0;n0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;d(this,e),this.maps=t,this.mirror=r,this.from=n,this.to=i}return p(e,[{key:"slice",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.maps.length;return new e(this.maps,this.mirror,t,r)}},{key:"copy",value:function(){return new e(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}},{key:"appendMap",value:function(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)}},{key:"appendMapping",value:function(e){for(var t=0,r=this.maps.length;t=0;t--){var n=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=n&&n>t?r-n-1:void 0)}}},{key:"invert",value:function(){var t=new e;return t.appendMappingInverted(this),t}},{key:"map",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this.mirror)return this._map(e,t,!0);for(var r=this.from;r1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!1)}},{key:"_map",value:function(e,t,r){for(var n=0,i=this.from;ii&&a=n.pos?null:new r(t.pos,n.pos,this.mark)}},{key:"merge",value:function(e){return e instanceof r&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new r(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}},{key:"toJSON",value:function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new r(t.from,t.to,e.markFromJSON(t.mark))}}]),r}(b);b.jsonID("addMark",x);var _=function(e){o(r,e);var t=s(r);function r(e,n,i){var o;return d(this,r),(o=t.call(this)).from=e,o.to=n,o.mark=i,o}return p(r,[{key:"apply",value:function(e){var t=this,r=e.slice(this.from,this.to),n=new f.Slice(k(r.content,function(e){return e.mark(t.mark.removeFromSet(e.marks))},e),r.openStart,r.openEnd);return w.fromReplace(e,this.from,this.to,n)}},{key:"invert",value:function(){return new x(this.from,this.to,this.mark)}},{key:"map",value:function(e){var t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new r(t.pos,n.pos,this.mark)}},{key:"merge",value:function(e){return e instanceof r&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new r(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}},{key:"toJSON",value:function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new r(t.from,t.to,e.markFromJSON(t.mark))}}]),r}(b);b.jsonID("removeMark",_);var S=function(e){o(r,e);var t=s(r);function r(e,n){var i;return d(this,r),(i=t.call(this)).pos=e,i.mark=n,i}return p(r,[{key:"apply",value:function(e){var t=e.nodeAt(this.pos);if(!t)return w.fail("No node at mark step's position");var r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return w.fromReplace(e,this.pos,this.pos+1,new f.Slice(f.Fragment.from(r),0,t.isLeaf?0:1))}},{key:"invert",value:function(e){var t=e.nodeAt(this.pos);if(t){var n=this.mark.addToSet(t.marks);if(n.length==t.marks.length){for(var i=0;i3&&void 0!==arguments[3]&&arguments[3];return d(this,r),(o=t.call(this)).from=e,o.to=n,o.slice=i,o.structure=a,o}return p(r,[{key:"apply",value:function(e){return this.structure&&A(e,this.from,this.to)?w.fail("Structure replace would overwrite content"):w.fromReplace(e,this.from,this.to,this.slice)}},{key:"getMap",value:function(){return new g([this.from,this.to-this.from,this.slice.size])}},{key:"invert",value:function(e){return new r(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}},{key:"map",value:function(e){var t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new r(t.pos,Math.max(t.pos,n.pos),this.slice)}},{key:"merge",value:function(e){if(!(e instanceof r)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var t=this.slice.size+e.slice.size==0?f.Slice.empty:new f.Slice(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new r(e.from,this.to,t,this.structure)}var n=this.slice.size+e.slice.size==0?f.Slice.empty:new f.Slice(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new r(this.from,this.to+(e.to-e.from),n,this.structure)}},{key:"toJSON",value:function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new r(t.from,t.to,f.Slice.fromJSON(e,t.slice),!!t.structure)}}]),r}(b);b.jsonID("replace",C);var D=function(e){o(r,e);var t=s(r);function r(e,n,i,o,a,s){var l,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return d(this,r),(l=t.call(this)).from=e,l.to=n,l.gapFrom=i,l.gapTo=o,l.slice=a,l.insert=s,l.structure=u,l}return p(r,[{key:"apply",value:function(e){if(this.structure&&(A(e,this.from,this.gapFrom)||A(e,this.gapTo,this.to)))return w.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return w.fail("Gap is not a flat range");var r=this.slice.insertAt(this.insert,t.content);return r?w.fromReplace(e,this.from,this.to,r):w.fail("Content does not fit in gap")}},{key:"getMap",value:function(){return new g([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}},{key:"invert",value:function(e){var t=this.gapTo-this.gapFrom;return new r(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}},{key:"map",value:function(e){var t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),i=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||in.pos?null:new r(t.pos,n.pos,i,o,this.slice,this.insert,this.structure)}},{key:"toJSON",value:function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new r(t.from,t.to,t.gapFrom,t.gapTo,f.Slice.fromJSON(e,t.slice),t.insert,!!t.structure)}}]),r}(b);function A(e,t,r){for(var n=e.resolve(t),i=r-t,o=n.depth;i>0&&o>0&&n.indexAfter(o)==n.node(o).childCount;)o--,i--;if(i>0)for(var a=n.node(o).maybeChild(n.indexAfter(o));i>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,i--}return!1}function j(e,t,r){for(var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r.contentMatch,i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=e.doc.nodeAt(t),a=[],s=t+1,l=0;l=0;y--)e.step(a[y])}function O(e){return{type:e,attrs:null}}function T(e,t){return!!(e&&t&&!e.isLeaf&&e.canAppend(t))}function P(e,t,r){var n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(0==n.parentOffset)for(var i=n.depth-1;i>=0;i--){var o=n.index(i);if(n.node(i).canReplaceWith(o,o,r))return n.before(i+1);if(o>0)return null}if(n.parentOffset==n.parent.content.size)for(var a=n.depth-1;a>=0;a--){var s=n.indexAfter(a);if(n.node(a).canReplaceWith(s,s,r))return n.after(a+1);if(s2&&void 0!==arguments[2]?arguments[2]:t,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.Slice.empty;if(t==r&&!n.size)return null;var i=e.resolve(t),o=e.resolve(r);return M(i,o,n)?new C(t,r,n):new N(i,o,n).fit()}function M(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}b.jsonID("replaceAround",D);var N=function(){function e(t,r,n){d(this,e),this.$from=t,this.$to=r,this.unplaced=n,this.frontier=[],this.placed=f.Fragment.empty;for(var i=0;i<=t.depth;i++){var o=t.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(i))})}for(var a=t.depth;a>0;a--)this.placed=f.Fragment.from(t.node(a).copy(this.placed))}return p(e,[{key:"depth",get:function(){return this.frontier.length-1}},{key:"fit",value:function(){for(;this.unplaced.size;){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var t=this.mustMoveInline(),r=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(t<0?this.$to:n.doc.resolve(t));if(!i)return null;for(var o=this.placed,a=n.depth,s=i.depth;a&&s&&1==o.childCount;)o=o.firstChild.content,a--,s--;var l=new f.Slice(o,a,s);return t>-1?new D(n.pos,t,this.$to.pos,this.$to.end(),l,r):l.size||n.pos!=this.$to.pos?new C(n.pos,i.pos,l):null}},{key:"findFittable",value:function(){for(var e=this.unplaced.openStart,t=this.unplaced.content,r=0,n=this.unplaced.openEnd;r1&&(n=0),i.type.spec.isolating&&n<=r){e=r;break}t=i.content}for(var o=1;o<=2;o++)for(var a=1==o?e:this.unplaced.openStart;a>=0;a--)for(var s=null,l=(a?(s=L(this.unplaced.content,a-1).firstChild).content:this.unplaced.content).firstChild,u=this.depth;u>=0;u--){var c=this.frontier[u],d=c.type,h=c.match,p=void 0,m=null;if(1==o&&(l?h.matchType(l.type)||(m=h.fillBefore(f.Fragment.from(l),!1)):s&&d.compatibleContent(s.type)))return{sliceDepth:a,frontierDepth:u,parent:s,inject:m};if(2==o&&l&&(p=h.findWrapping(l.type)))return{sliceDepth:a,frontierDepth:u,parent:s,wrap:p};if(s&&h.matchType(s.type))break}}},{key:"openMore",value:function(){var e=this.unplaced,t=e.content,r=e.openStart,n=e.openEnd,i=L(t,r);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new f.Slice(t,r+1,Math.max(n,i.size+r>=t.size-n?r+1:0)),!0)}},{key:"dropNode",value:function(){var e=this.unplaced,t=e.content,r=e.openStart,n=e.openEnd,i=L(t,r);if(i.childCount<=1&&r>0){var o=t.size-r<=r+i.size;this.unplaced=new f.Slice(F(t,r-1,1),r-1,o?r-1:n)}else this.unplaced=new f.Slice(F(t,r,1),r,n)}},{key:"placeNodes",value:function(e){for(var t=e.sliceDepth,r=e.frontierDepth,n=e.parent,i=e.inject,o=e.wrap;this.depth>r;)this.closeFrontierNode();if(o)for(var a=0;a1||0==u||y.content.size)&&(p=b,d.push(function e(t,r,n){if(r<=0)return t;var i=t.content;return r>1&&(i=i.replaceChild(0,e(i.firstChild,r-1,1==i.childCount?n-1:0))),r>0&&(i=t.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(t.type.contentMatch.matchFragment(i).fillBefore(f.Fragment.empty,!0)))),t.copy(i)}(y.mark(m.allowedMarks(y.marks)),1==c?u:0,c==l.childCount?v:-1)))}var w=c==l.childCount;w||(v=-1),this.placed=I(this.placed,r,f.Fragment.from(d)),this.frontier[r].match=p,w&&v<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var k=0,x=l;k1&&n==this.$to.end(--r);)++n;return n}},{key:"findCloseLevel",value:function(e){n:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var r=this.frontier[t],n=r.match,i=r.type,o=t=0;s--){var l=this.frontier[s],u=l.match,c=B(e,s,l.type,u,!0);if(!c||c.childCount)continue n}return{depth:t,fit:a,move:o?e.doc.resolve(e.after(t+1)):e}}}}},{key:"close",value:function(e){var t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=I(this.placed,t.depth,t.fit)),e=t.move;for(var r=t.depth+1;r<=e.depth;r++){var n=e.node(r),i=n.type.contentMatch.fillBefore(n.content,!0,e.index(r));this.openFrontierNode(n.type,n.attrs,i)}return e}},{key:"openFrontierNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,n=this.frontier[this.depth];n.match=n.match.matchType(e),this.placed=I(this.placed,this.depth,f.Fragment.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}},{key:"closeFrontierNode",value:function(){var e=this.frontier.pop().match.fillBefore(f.Fragment.empty,!0);e.childCount&&(this.placed=I(this.placed,this.frontier.length,e))}}]),e}();function F(e,t,r){return 0==t?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(F(e.firstChild.content,t-1,r)))}function I(e,t,r){return 0==t?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(I(e.lastChild.content,t-1,r)))}function L(e,t){for(var r=0;r=0;i--){var o=e.start(i);if(ot.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(o==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==o-1)&&r.push(i)}return r}var U=function(e){o(r,e);var t=s(r);function r(e,n,i){var o;return d(this,r),(o=t.call(this)).pos=e,o.attr=n,o.value=i,o}return p(r,[{key:"apply",value:function(e){var t=e.nodeAt(this.pos);if(!t)return w.fail("No node at attribute step's position");var r=Object.create(null);for(var n in t.attrs)r[n]=t.attrs[n];r[this.attr]=this.value;var i=t.type.create(r,null,t.marks);return w.fromReplace(e,this.pos,this.pos+1,new f.Slice(f.Fragment.from(i),0,t.isLeaf?0:1))}},{key:"getMap",value:function(){return g.empty}},{key:"invert",value:function(e){return new r(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}},{key:"map",value:function(e){var t=e.mapResult(this.pos,1);return t.deletedAfter?null:new r(t.pos,this.attr,this.value)}},{key:"toJSON",value:function(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new r(t.pos,t.attr,t.value)}}]),r}(b);b.jsonID("attr",U);var q=function(e){o(r,e);var t=s(r);function r(e,n){var i;return d(this,r),(i=t.call(this)).attr=e,i.value=n,i}return p(r,[{key:"apply",value:function(e){var t=Object.create(null);for(var r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;var n=e.type.create(t,e.content,e.marks);return w.ok(n)}},{key:"getMap",value:function(){return g.empty}},{key:"invert",value:function(e){return new r(this.attr,e.attrs[this.attr])}},{key:"map",value:function(e){return this}},{key:"toJSON",value:function(){return{stepType:"docAttr",attr:this.attr,value:this.value}}}],[{key:"fromJSON",value:function(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new r(t.attr,t.value)}}]),r}(b);b.jsonID("docAttr",q),t.TransformError=function(e){o(r,e);var t=s(r);function r(){return d(this,r),t.apply(this,arguments)}return p(r)}(n(Error)),t.TransformError=function e(t){var r=Error.call(this,t);return r.__proto__=e.prototype,r},t.TransformError.prototype=Object.create(Error.prototype),t.TransformError.prototype.constructor=t.TransformError,t.TransformError.prototype.name="TransformError";var H=function(){function e(t){d(this,e),this.doc=t,this.steps=[],this.docs=[],this.mapping=new v}return p(e,[{key:"before",get:function(){return this.docs.length?this.docs[0]:this.doc}},{key:"step",value:function(e){var r=this.maybeStep(e);if(r.failed)throw new t.TransformError(r.failed);return this}},{key:"maybeStep",value:function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}},{key:"docChanged",get:function(){return this.steps.length>0}},{key:"addStep",value:function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}},{key:"replace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.Slice.empty,n=R(this.doc,e,t,r);return n&&this.step(n),this}},{key:"replaceWith",value:function(e,t,r){return this.replace(e,t,new f.Slice(f.Fragment.from(r),0,0))}},{key:"delete",value:function(e,t){return this.replace(e,t,f.Slice.empty)}},{key:"insert",value:function(e,t){return this.replaceWith(e,e,t)}},{key:"replaceRange",value:function(e,t,r){return function(e,t,r,n){if(!n.size)return e.deleteRange(t,r);var i=e.doc.resolve(t),o=e.doc.resolve(r);if(M(i,o,n))return e.step(new C(t,r,n));var a=z(i,e.doc.resolve(r));0==a[a.length-1]&&a.pop();var s=-(i.depth+1);a.unshift(s);for(var l=i.depth,u=i.pos-1;l>0;l--,u--){var c=i.node(l).type.spec;if(c.defining||c.definingAsContext||c.isolating)break;a.indexOf(l)>-1?s=l:i.before(l)==u&&a.splice(1,0,-l)}for(var d=a.indexOf(s),h=[],p=n.openStart,m=n.content,g=0;;g++){var v=m.firstChild;if(h.push(v),g==n.openStart)break;m=v.content}for(var y=p-1;y>=0;y--){var b,w=h[y],k=(b=w.type).spec.defining||b.spec.definingForContent;if(k&&!w.sameMarkup(i.node(Math.abs(s)-1)))p=y;else if(k||!w.type.isTextblock)break}for(var x=n.openStart;x>=0;x--){var _=(x+p+1)%(n.openStart+1),S=h[_];if(S)for(var E=0;Ei){var s=o.contentMatchAt(0),l=s.fillBefore(t).append(t);t=l.append(s.matchFragment(l).fillBefore(f.Fragment.empty,!0))}return t}(n.content,0,n.openStart,_),_,n.openEnd))}}for(var T=e.steps.length,P=a.length-1;P>=0&&(e.replace(t,r,n),!(e.steps.length>T));P--){var R=a[P];R<0||(t=i.before(R),r=o.after(R))}}(this,e,t,r),this}},{key:"replaceRangeWith",value:function(e,t,r){return function(e,t,r,n){if(!n.isInline&&t==r&&e.doc.resolve(t).parent.content.size){var i=P(e.doc,t,n.type);null!=i&&(t=r=i)}e.replaceRange(t,r,new f.Slice(f.Fragment.from(n),0,0))}(this,e,t,r),this}},{key:"deleteRange",value:function(e,t){return function(e,t,r){for(var n=e.doc.resolve(t),i=e.doc.resolve(r),o=z(n,i),a=0;a0&&(l||n.node(s-1).canReplace(n.index(s-1),i.indexAfter(s-1))))return e.delete(n.before(s),i.after(s))}for(var u=1;u<=n.depth&&u<=i.depth;u++)if(t-n.start(u)==n.depth-u&&r>n.end(u)&&i.end(u)-r!=i.depth-u)return e.delete(n.before(u),r);e.delete(t,r)}(this,e,t),this}},{key:"lift",value:function(e,t){return function(e,t,r){for(var n=t.$from,i=t.$to,o=t.depth,a=n.before(o+1),s=i.after(o+1),l=a,u=s,c=f.Fragment.empty,d=0,h=o,p=!1;h>r;h--)p||n.index(h)>0?(p=!0,c=f.Fragment.from(n.node(h).copy(c)),d++):l--;for(var m=f.Fragment.empty,g=0,v=o,y=!1;v>r;v--)y||i.after(v+1)1&&void 0!==arguments[1]?arguments[1]:1;return function(e,t,r){var n=new C(t-r,t+r,f.Slice.empty,!0);e.step(n)}(this,e,t),this}},{key:"wrap",value:function(e,t){return function(e,t,r){for(var n=f.Fragment.empty,i=r.length-1;i>=0;i--){if(n.size){var o=r[i].type.contentMatch.matchFragment(n);if(!o||!o.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=f.Fragment.from(r[i].type.create(r[i].attrs,n))}var a=t.start,s=t.end;e.step(new D(a,s,a,s,new f.Slice(n,0,0),r.length,!0))}(this,e,t),this}},{key:"setBlockType",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return function(e,t,r,n,i){if(!n.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");var o=e.steps.length;e.doc.nodesBetween(t,r,function(t,r){var a,s,l,u,c="function"==typeof i?i(t):i;if(t.isTextblock&&!t.hasMarkup(n,c)&&(a=e.doc,s=e.mapping.slice(o).map(r),u=(l=a.resolve(s)).index(),l.parent.canReplaceWith(u,u+1,n))){var d=null;if(n.schema.linebreakReplacement){var h="pre"==n.whitespace,p=!!n.contentMatch.matchType(n.schema.linebreakReplacement);h&&!p?d=!1:!h&&p&&(d=!0)}!1===d&&function(e,t,r,n){t.forEach(function(i,o){if(i.type==i.type.schema.linebreakReplacement){var a=e.mapping.slice(n).map(r+1+o);e.replaceWith(a,a+1,t.type.schema.text("\n"))}})}(e,t,r,o),j(e,e.mapping.slice(o).map(r,1),n,void 0,null===d);var m=e.mapping.slice(o),g=m.map(r,1),v=m.map(r+t.nodeSize,1);return e.step(new D(g,v,g+1,v-1,new f.Slice(f.Fragment.from(n.create(c,null,t.marks)),0,0),1,!0)),!0===d&&function(e,t,r,n){t.forEach(function(i,o){if(i.isText)for(var a,s=/\r?\n|\r/g;a=s.exec(i.text);){var l=e.mapping.slice(n).map(r+1+o+a.index);e.replaceWith(l,l+1,t.type.schema.linebreakReplacement.create())}})}(e,t,r,o),!1}})}(this,e,t,r,n),this}},{key:"setNodeMarkup",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return function(e,t,r,n,i){var o=e.doc.nodeAt(t);if(!o)throw RangeError("No node at given position");r||(r=o.type);var a=r.create(n,null,i||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,a);if(!r.validContent(o.content))throw RangeError("Invalid content for node type "+r.name);e.step(new D(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new f.Slice(f.Fragment.from(a),0,0),1,!0))}(this,e,t,r,n),this}},{key:"setNodeAttribute",value:function(e,t,r){return this.step(new U(e,t,r)),this}},{key:"setDocAttribute",value:function(e,t){return this.step(new q(e,t)),this}},{key:"addNodeMark",value:function(e,t){return this.step(new S(e,t)),this}},{key:"removeNodeMark",value:function(e,t){if(!(t instanceof f.Mark)){var r=this.doc.nodeAt(e);if(!r)throw RangeError("No node at position "+e);if(!(t=t.isInSet(r.marks)))return this}return this.step(new E(e,t)),this}},{key:"split",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0;return function(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,i=e.doc.resolve(t),o=f.Fragment.empty,a=f.Fragment.empty,s=i.depth,l=i.depth-r,u=r-1;s>l;s--,u--){o=f.Fragment.from(i.node(s).copy(o));var c=n&&n[u];a=f.Fragment.from(c?c.type.create(c.attrs,a):i.node(s).copy(a))}e.step(new C(t,t,new f.Slice(o.append(a),r,r),!0))}(this,e,t,r),this}},{key:"addMark",value:function(e,t,r){var n,i,o,a,s;return n=this,a=[],s=[],n.doc.nodesBetween(e,t,function(n,l,u){if(n.isInline){var c=n.marks;if(!r.isInSet(c)&&u.type.allowsMarkType(r.type)){for(var d=Math.max(l,e),h=Math.min(l+n.nodeSize,t),p=r.addToSet(c),f=0;f2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,i=e.resolve(t),o=i.depth-r,a=n&&n[n.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(var s=i.depth-1,l=r-2;s>o;s--,l--){var u=i.node(s),c=i.index(s);if(u.type.spec.isolating)return!1;var d=u.content.cutByIndex(c,u.childCount),h=n&&n[l+1];h&&(d=d.replaceChild(0,h.type.create(h.attrs)));var p=n&&n[l]||u;if(!u.canReplace(c+1,u.childCount)||!p.type.validContent(d))return!1}var f=i.indexAfter(o),m=n&&n[0];return i.node(o).canReplaceWith(f,f,m?m.type:i.node(o+1).type)},t.dropPoint=function(e,t,r){var n=e.resolve(t);if(!r.content.size)return t;for(var i=r.content,o=0;o=0;s--){var l=s==n.depth?0:n.pos<=(n.start(s+1)+n.end(s+1))/2?-1:1,u=n.index(s)+(l>0?1:0),c=n.node(s),d=!1;if(1==a)d=c.canReplace(u,u,i);else{var h=c.contentMatchAt(u).findWrapping(i.firstChild.type);d=h&&c.canReplaceWith(u,u,h[0])}if(d)return 0==l?n.pos:l<0?n.before(s+1):n.after(s+1)}return null},t.findWrapping=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=function(e,t){var r=e.parent,n=e.startIndex,i=e.endIndex,o=r.contentMatchAt(n).findWrapping(t);if(!o)return null;var a=o.length?o[0]:t;return r.canReplaceWith(n,i,a)?o:null}(e,t),o=i&&function(e,t){var r=e.parent,n=e.startIndex,i=e.endIndex,o=r.child(n),a=t.contentMatch.findWrapping(o.type);if(!a)return null;for(var s=(a.length?a[a.length-1]:t).contentMatch,l=n;s&&l2&&void 0!==arguments[2]?arguments[2]:-1,n=e.resolve(t),i=n.depth;;i--){var o=void 0,a=void 0,s=n.index(i);if(i==n.depth?(o=n.nodeBefore,a=n.nodeAfter):r>0?(o=n.node(i+1),s++,a=n.node(i).maybeChild(s)):(o=n.node(i).maybeChild(s-1),a=n.node(i+1)),o&&!o.isTextblock&&T(o,a)&&n.node(i).canReplace(s,s+1))return t;if(0==i)break;t=r<0?n.before(i):n.after(i)}},t.liftTarget=function(e){for(var t=e.parent.content.cutByIndex(e.startIndex,e.endIndex),r=e.depth;;--r){var n=e.$from.node(r),i=e.$from.index(r),o=e.$to.indexAfter(r);if(r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",229:"q"},n={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},i="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),o="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),a="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),u=i&&(s||57>+i[1])||a&&s,c=0;c<10;c++)r[48+c]=r[96+c]=String(c);for(var c=1;c<=24;c++)r[c+111]="F"+c;for(var c=65;c<=90;c++)r[c]=String.fromCharCode(c+32),n[c]=String.fromCharCode(c);for(var d in r)n.hasOwnProperty(d)||(n[d]=r[d]);t.base=r,t.keyName=function(e){var t=!(u&&(e.ctrlKey||e.altKey||e.metaKey)||(o||l)&&e.shiftKey&&e.key&&1==e.key.length)&&e.key||(e.shiftKey?n:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t},t.shift=n},35207:(e,t,r)=>{"use strict";r.d(t,{$3:()=>l,I6:()=>d,T9:()=>function e(t,r,n){return!!(0,o.U)(r)&&(y(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,i.dt)(t)&&(0,a.MS)(t,n)){var o=(0,i.ue)(t);return l.call(r,o)&&(!t.selectionSet||e(t.selectionSet,r[o],n))}return!0}))},Ui:()=>p,Xx:()=>h,cy:()=>y,d1:()=>g,gk:()=>f,iJ:()=>m,mv:()=>v,or:()=>u});var n=r(50492),i=r(28907),o=r(21777),a=r(82307),s=r(30671),l=Object.prototype.hasOwnProperty;function u(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=void 0!==n?{id:n}:void 0!==i?{_id:i}:void 0),void 0===n&&(n=i),void 0!==n))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var c={dataIdFromObject:u,addTypename:!0,resultCaching:!0,canonizeResults:!1};function d(e){return(0,n.o)(c,e)}function h(e){var t=e.canonizeResults;return void 0===t?c.canonizeResults:t}function p(e,t){return(0,i.A_)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var f=/^[_a-z][_0-9a-z]*/i;function m(e){var t=e.match(f);return t?t[0]:e}function g(e){return(0,o.U)(e)&&!(0,i.A_)(e)&&!y(e)}function v(){return new s.ZI}var y=function(e){return Array.isArray(e)}},8301:(e,t,r)=>{"use strict";r.d(t,{D:()=>es});var n=r(82051),i=r(92819),o=r(72403),a=r(9510),s=r(2904),l=function(){function e(){this.getFragmentDoc=(0,o.LV)(s.ct)}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.Cl)((0,n.Cl)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.Cl)((0,n.Cl)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,i=(0,n.Tt)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,i=e.fragment,o=e.fragmentName,a=(0,n.Tt)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var i=r.readQuery(e),o=t(i);return null==o?i:(r.writeQuery((0,n.Cl)((0,n.Cl)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var i=r.readFragment(e),o=t(i);return null==o?i:(r.writeFragment((0,n.Cl)((0,n.Cl)({},e),{data:o})),o)}})},e}(),u=function(e,t,r,n){this.message=e,this.path=t,this.query=r,this.variables=n},c=r(28907),d=r(65304),h=r(51360),p=r(50492),f=r(3777),m=r(30671),g=r(82307),v=r(57236),y=r(21777),b=r(80106),w=r(35207),k=Object.create(null),x=function(){return k},_=Object.create(null),S=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,v.G)((0,c.A_)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,c.A_)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,c.WU)(e);if((0,c.A_)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,c.WU)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,n.Cl)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),w.$3.call(this.data,e)){var r=this.data[e];if(r&&w.$3.call(r,t))return r[t]}return"__typename"===t&&w.$3.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof D?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),w.$3.call(this.data,e))?this.data[e]:this instanceof D?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,c.A_)(e)&&(e=e.__ref),(0,c.A_)(t)&&(t=t.__ref);var o="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){__DEV__?(0,i.V1)("string"==typeof r,"store.merge expects a string ID"):(0,i.V1)("string"==typeof r,1);var s=new m.ZI(j).merge(o,a);if(this.data[r]=s,s!==o&&(delete this.refs[r],this.group.caching)){var l=Object.create(null);o||(l.__exists=1),Object.keys(a).forEach(function(e){if(!o||o[e]!==s[e]){l[e]=1;var t=(0,w.iJ)(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(l[t]=1),void 0!==s[e]||n instanceof D||delete s[e]}}),l.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete l.__typename,Object.keys(l).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,i=this.lookup(e);if(i){var o=Object.create(null),a=!1,s=!0,l={DELETE:k,INVALIDATE:_,isReference:c.A_,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,c.WU)(e)}:t,{store:r})}};if(Object.keys(i).forEach(function(u){var c=(0,w.iJ)(u),d=i[u];if(void 0!==d){var h="function"==typeof t?t:t[u]||t[c];if(h){var p=h===x?k:h((0,v.G)(d),(0,n.Cl)((0,n.Cl)({},l),{fieldName:c,storeFieldName:u,storage:r.getStorage(e,u)}));p===_?r.group.dirty(e,u):(p===k&&(p=void 0),p!==d&&(o[u]=p,a=!0,d=p))}void 0!==d&&(s=!1)}}),a)return this.merge(e,o),s&&(this instanceof D?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=x,n):x)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(w.$3.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof D&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){w.$3.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&w.$3.call(e,r)||t.delete(r)}),e){var r=e.__META,i=(0,n.Tt)(e,["__META"]);Object.keys(i).forEach(function(e){t.merge(e,i[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof D?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){w.$3.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof D;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!w.$3.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,c.A_)(e)&&(t[e.__ref]=!0),(0,y.U)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,y.U)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),E=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,o.yN)():null,this.keyMaker=new b.b(h.et)},e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=(0,w.iJ)(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function C(e,t){O(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new E(void 0===n||n))||this;return o.stump=new A(o),o.storageTrie=new b.b(h.et),i&&o.replace(i),o}return(0,n.C6)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(S||(S={}));var D=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,n.C6)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,a.L)(n[r],i[r])||t.group.dirty(e,r)}):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,n.Cl)((0,n.Cl)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return w.$3.call(this.data,t)?(0,n.Cl)((0,n.Cl)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(S),A=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new E(t.group.caching,t.group))||this}return(0,n.C6)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(D);function j(e,t,r){var n=e[r],i=t[r];return(0,a.L)(n,i)?n:i}function O(e){return!!(e instanceof S&&e.group.caching)}var T=r(68717);function P(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var R=function(){function e(e){var t=this;this.knownResults=new(h.et?WeakMap:Map),this.config=(0,p.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,w.Xx)(e)}),this.canon=e.canon||new T.$,this.executeSelectionSet=(0,o.LV)(function(e){var r,i=e.context.canonizeResults,o=P(e);o[3]=!i;var a=(r=t.executeSelectionSet).peek.apply(r,o);return a?i?(0,n.Cl)((0,n.Cl)({},a),{result:t.canon.admit(a.result)}):a:(C(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:P,makeCacheKey:function(e,t,r,n){if(O(r.store))return r.store.makeCacheKey(e,(0,c.A_)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,o.LV)(function(e){return C(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(O(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new T.$},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,i=e.query,o=e.rootId,a=e.variables,l=e.returnPartialData,d=e.canonizeResults,h=void 0===d?this.config.canonizeResults:d,p=this.config.cache.policies;a=(0,n.Cl)((0,n.Cl)({},(0,f.wY)((0,f.AT)(i))),a);var m=(0,c.WU)(void 0===o?"ROOT_QUERY":o),g=this.executeSelectionSet({selectionSet:(0,f.Vn)(i).selectionSet,objectOrReference:m,enclosingRef:m,context:{store:r,query:i,policies:p,variables:a,varString:(0,T.M)(a),canonizeResults:h,fragmentMap:(0,s.JG)((0,f.zK)(i))}});if(g.missing&&(t=[new u(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(g.missing),g.missing,i,a)],!(void 0===l||l)))throw t[0];return{result:g.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(O(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,a=e.context;if((0,c.A_)(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var l=a.variables,u=a.policies,h=a.store.getFieldValue(i,"__typename"),p=[],f=new m.ZI;function y(e,r){var n;return e.missing&&(t=f.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof h&&!u.rootIdsByTypename[h]&&p.push({__typename:h});var b=new Set(n.selections);b.forEach(function(e){var n,m;if((0,g.MS)(e,l)){if((0,c.dt)(e)){var v=u.readField({fieldName:e.name.value,field:e,variables:a.variables,from:i},a),k=(0,c.ue)(e);void 0===v?d.XY.added(e)||(t=f.merge(t,((n={})[k]="Can't find field '".concat(e.name.value,"' on ").concat((0,c.A_)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):(0,w.cy)(v)?v=y(r.executeSubSelectedArray({field:e,array:v,enclosingRef:o,context:a}),k):e.selectionSet?null!=v&&(v=y(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:v,enclosingRef:(0,c.A_)(v)?v:o,context:a}),k)):a.canonizeResults&&(v=r.canon.pass(v)),void 0!==v&&p.push(((m={})[k]=v,m))}else{var x=(0,s.HQ)(e,a.fragmentMap);x&&u.fragmentMatches(x,h)&&x.selectionSet.selections.forEach(b.add,b)}}});var k={result:(0,m.IM)(p),missing:t},x=a.canonizeResults?this.canon.admit(k):(0,v.G)(k);return x.result&&this.knownResults.set(x.result,n),x},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,o=e.array,a=e.enclosingRef,s=e.context,l=new m.ZI;function u(e,r){var n;return e.missing&&(t=l.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(o=o.filter(s.store.canRead)),o=o.map(function(e,t){return null===e?null:(0,w.cy)(e)?u(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:s}),t):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,c.A_)(e)?e:a,context:s}),t):(__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,y.U)(r)&&(__DEV__?(0,i.V1)(!(0,c.A_)(r),"Missing selection set for object of type ".concat((0,w.Ui)(e,r)," returned for query field ").concat(t.name.value)):(0,i.V1)(!(0,c.A_)(r),5),Object.values(r).forEach(n.add,n))})}}(s.store,n,e),e)}),{result:s.canonizeResults?this.canon.admit(o):o,missing:t}},e}(),M=r(20906),N=r(73767),F=r(21461),I=r(777),L=Object.create(null);function B(e){var t=JSON.stringify(e);return L[t]||(L[t]=Object.create(null))}function z(e){var t=B(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},o=r.keyObject=q(e,function(e){var o=V(r.storeObject,e,n);return void 0===o&&t!==r.storeObject&&w.$3.call(t,e[0])&&(o=V(t,e,H)),__DEV__?(0,i.V1)(void 0!==o,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):(0,i.V1)(void 0!==o,2),o});return"".concat(r.typename,":").concat(JSON.stringify(o))})}function U(e){var t=B(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(q(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&(0,N.E)(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),l=s&&(0,c.MB)(s,i);return l&&V(l,e.slice(1))}return}if("$"===o){var u=r.slice(1);if(i&&w.$3.call(i,u)){var d=e.slice(0);return d[0]=u,V(i,d)}return}if(t)return V(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function q(e,t){var r=new m.ZI;return(function e(t){var r=B(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){(0,w.cy)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,w.cy)(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function H(e,t){return e[t]}function V(e,t,r){return r=r||H,function e(t){return(0,y.U)(t)?(0,w.cy)(t)?t.map(e):q(Object.keys(t).sort(),function(e){return V(t,e)}):t}(t.reduce(function e(t,n){return(0,w.cy)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function $(e){return void 0!==e.args?e.args:e.field?(0,c.MB)(e.field,e.variables):null}c.o5.setStringify(T.M);var W=function(){},Y=function(e,t){return t.fieldName},G=function(e,t,r){return(0,r.mergeObjects)(e,t)},K=function(e,t){return t},X=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,n.Cl)({dataIdFromObject:w.or},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,i,o=this,a=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s=t&&t.storeObject||e,l=(0,n.Cl)((0,n.Cl)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=Q(arguments,s);return o.readField(e,{store:o.cache.data,variables:e.variables})}}),u=a&&this.getTypePolicy(a),c=u&&u.keyFn||this.config.dataIdFromObject;c;){var d=c(e,l);if((0,w.cy)(d))c=z(d);else{i=d;break}}return i=i?String(i):void 0,l.keyObject?[i,l.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var i=e[r],o=i.queryType,a=i.mutationType,s=i.subscriptionType,l=(0,n.Tt)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),w.$3.call(t.toBeAdded,r)?t.toBeAdded[r].push(l):t.toBeAdded[r]=[l]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?G:!1===t?K:e.merge}a(n,t.merge),n.keyFn=!1===i?W:(0,w.cy)(i)?z(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,l=i.read,u=i.merge;n.keyFn=!1===s?Y:(0,w.cy)(s)?U(s):"function"==typeof s?s:n.keyFn,"function"==typeof l&&(n.read=l),a(n,u)}n.read&&n.merge&&(n.keyFn=n.keyFn||Y)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(__DEV__?(0,i.V1)(!n||n===e,"Cannot change root ".concat(e," __typename more than once")):(0,i.V1)(!n||n===e,3),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(w.gk);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!w.$3.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);i&&i.size&&i.forEach(function(e){var i=t.getTypePolicy(e),o=i.fields;Object.assign(r,(0,n.Tt)(i,["fields"])),Object.assign(r.fields,o)})}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),l=[s],u=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&0>l.indexOf(t)&&l.push(t)},c=!!(r&&this.fuzzySubtypes.size),d=!1,h=0;h1?u:t}:(s=(0,n.Cl)({},l),w.$3.call(s,"from")||(s.from=t)),__DEV__&&void 0===s.from&&__DEV__&&i.V1.warn("Undefined 'from' passed to readField with arguments ".concat((o=Array.from(e),a=(0,F.v)("stringifyForDisplay"),JSON.stringify(o,function(e,t){return void 0===t?a:t}).split(JSON.stringify(a)).join("")))),void 0===s.variables&&(s.variables=r),s}function Z(e){return function(t,r){if((0,w.cy)(t)||(0,w.cy)(r))throw __DEV__?new i.zU("Cannot automatically merge arrays"):new i.zU(4);if((0,y.U)(t)&&(0,y.U)(r)){var o=e.getFieldValue(t,"__typename"),a=e.getFieldValue(r,"__typename");if(o&&a&&o!==a)return r;if((0,c.A_)(t)&&(0,w.d1)(r))return e.merge(t.__ref,r),t;if((0,w.d1)(t)&&(0,c.A_)(r))return e.merge(t,r.__ref),r;if((0,w.d1)(t)&&(0,w.d1)(r))return(0,n.Cl)((0,n.Cl)({},t),r)}return r}}function ee(e,t,r){var i="".concat(t).concat(r),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===r?e:(0,n.Cl)((0,n.Cl)({},e),{clientOnly:t,deferred:r})),o}var et=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var r=this,o=t.query,l=t.result,u=t.dataId,d=t.variables,h=t.overwrite,p=(0,f.Vu)(o),m=(0,w.mv)();d=(0,n.Cl)((0,n.Cl)({},(0,f.wY)(p)),d);var g={store:e,written:Object.create(null),merge:function(e,t){return m.merge(e,t)},variables:d,varString:(0,T.M)(d),fragmentMap:(0,s.JG)((0,f.zK)(o)),overwrite:!!h,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},v=this.processSelectionSet({result:l||Object.create(null),dataId:u,selectionSet:p.selectionSet,mergeTree:{map:new Map},context:g});if(!(0,c.A_)(v))throw __DEV__?new i.zU("Could not identify object ".concat(JSON.stringify(l))):new i.zU(6);return g.incomingById.forEach(function(t,n){var o=t.storeObject,s=t.mergeTree,l=t.fieldNodeSet,u=(0,c.WU)(n);if(s&&s.map.size){var d=r.applyMerges(s,u,o,g);if((0,c.A_)(d))return;o=d}if(__DEV__&&!g.overwrite){var h=Object.create(null);l.forEach(function(e){e.selectionSet&&(h[e.name.value]=!0)});var p=function(e){var t=s&&s.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(o).forEach(function(e){!0!==h[(0,w.iJ)(e)]||p(e)||function(e,t,r,n){var o=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},s=o(e);if(s){var l=o(t);if(!(!l||(0,c.A_)(s)||(0,a.L)(s,l)||Object.keys(s).every(function(e){return void 0!==n.getFieldValue(l,e)}))){var u=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),d=(0,w.iJ)(r),h="".concat(u,".").concat(d);if(!ea.has(h)){ea.add(h);var p=[];(0,w.cy)(s)||(0,w.cy)(l)||[s,l].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)}),__DEV__&&i.V1.warn("Cache data may be lost when replacing the ".concat(d," field of a ").concat(u," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(h," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(s).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(l).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(u,o,e,g.store)})}e.merge(n,o)}),e.retain(v.__ref),v},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,o=e.result,a=e.selectionSet,s=e.context,l=e.mergeTree,u=this.cache.policies,h=Object.create(null),p=r&&u.rootTypenamesById[r]||(0,c.D$)(o,a,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof p&&(h.__typename=p);var f=function(){var e=Q(arguments,h,s.variables);if((0,c.A_)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=u.readField((0,n.Cl)((0,n.Cl)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return u.readField(e,s)},m=new Set;this.flattenFields(a,o,s,p).forEach(function(e,r){var n,a=o[(0,c.ue)(r)];if(m.add(r),void 0!==a){var s=u.getStoreFieldName({typename:p,fieldName:r.name.value,field:r,variables:e.variables}),g=en(l,s),v=t.processFieldValue(a,r,r.selectionSet?ee(e,!1,!1):e,g),y=void 0;r.selectionSet&&((0,c.A_)(v)||(0,w.d1)(v))&&(y=f("__typename",v));var b=u.getMergeFunction(p,r.name.value,y);b?g.info={field:r,typename:p,merge:b}:eo(l,s),h=e.merge(h,((n={})[s]=v,n))}else __DEV__&&!e.clientOnly&&!e.deferred&&!d.XY.added(r)&&!u.getReadFunction(p,r.name.value)&&__DEV__&&i.V1.error("Missing field '".concat((0,c.ue)(r),"' while writing result ").concat(JSON.stringify(o,null,2)).substring(0,1e3))});try{var g=u.identify(o,{typename:p,selectionSet:a,fragmentMap:s.fragmentMap,storeObject:h,readField:f}),v=g[0],y=g[1];r=r||v,y&&(h=s.merge(h,y))}catch(e){if(!r)throw e}if("string"==typeof r){var b=(0,c.WU)(r),k=s.written[r]||(s.written[r]=[]);if(k.indexOf(a)>=0||(k.push(a),this.reader&&this.reader.isFresh(o,b,a,s)))return b;var x=s.incomingById.get(r);return x?(x.storeObject=s.merge(x.storeObject,h),x.mergeTree=function e(t,r){if(t===r||!r||ei(r))return t;if(!t||ei(t))return r;var i=t.info&&r.info?(0,n.Cl)((0,n.Cl)({},t.info),r.info):t.info||r.info,o=t.map.size&&r.map.size,a={info:i,map:o?new Map:t.map.size?t.map:r.map};if(o){var s=new Set(r.map.keys());t.map.forEach(function(t,n){a.map.set(n,e(t,r.map.get(n))),s.delete(n)}),s.forEach(function(n){a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(x.mergeTree,l),m.forEach(function(e){return x.fieldNodeSet.add(e)})):s.incomingById.set(r,{storeObject:h,mergeTree:ei(l)?void 0:l,fieldNodeSet:m}),b}return h},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,w.cy)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,en(n,o));return eo(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):__DEV__?(0,M.m)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,c.D$)(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,a=new b.b(!1);return function e(l,u){var d=a.lookup(l,u.clientOnly,u.deferred);d.visited||(d.visited=!0,l.selections.forEach(function(a){if((0,g.MS)(a,r.variables)){var l=u.clientOnly,d=u.deferred;if(!(l&&d)&&(0,N.E)(a.directives)&&a.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(l=!0),"defer"===t){var n=(0,c.MB)(e,r.variables);n&&!1===n.if||(d=!0)}}),(0,c.dt)(a)){var h=i.get(a);h&&(l=l&&h.clientOnly,d=d&&h.deferred),i.set(a,ee(r,l,d))}else{var p=(0,s.HQ)(a,r.fragmentMap);p&&o.fragmentMatches(p,n,t,r.variables)&&e(p.selectionSet,ee(r,l,d))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,o,a){var s=this;if(e.map.size&&!(0,c.A_)(r)){var l,u,d=!(0,w.cy)(r)&&((0,c.A_)(t)||(0,w.d1)(t))?t:void 0,h=r;d&&!a&&(a=[(0,c.A_)(d)?d.__ref:d]);var p=function(e,t){return(0,w.cy)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=p(d,t),n=p(h,t);if(void 0!==n){a&&a.push(t);var l=s.applyMerges(e,r,n,o,a);l!==n&&(u=u||new Map).set(t,l),a&&(0,i.V1)(a.pop()===t)}}),u&&(r=(0,w.cy)(h)?h.slice(0):(0,n.Cl)({},h),u.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,o,a&&(l=o.store).getStorage.apply(l,a)):r},e}(),er=[];function en(e,t){var r=e.map;return r.has(t)||r.set(t,er.pop()||{map:new Map}),r.get(t)}function ei(e){return!e||!(e.info||e.map.size)}function eo(e,t){var r=e.map,n=r.get(t);n&&ei(n)&&(er.push(n),r.delete(t))}var ea=new Set,es=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=I.UT,r.txCount=0,r.config=(0,w.I6)(t),r.addTypename=!!r.config.addTypename,r.policies=new X({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,n.C6)(t,e),t.prototype.init=function(){var e=this.data=new S.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader;this.storeWriter=new et(this,this.storeReader=new R({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,w.Xx)(this.config),canon:e?void 0:r&&r.canon})),this.maybeBroadcastWatch=(0,o.LV)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(O(r)){var n=e.optimistic,i=e.rootId,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,T.M)({optimistic:n,rootId:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,n.Cl)((0,n.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof u)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(w.$3.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,n.Cl)((0,n.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,I.MS)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,I.WR)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){T.M.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,c.A_)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&i.V1.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(w.$3.call(e,"id"))return!1;e=(0,n.Cl)((0,n.Cl)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),T.M.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,I.WR)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,i=e.update,o=e.optimistic,a=void 0===o||o,s=e.removeOptimistic,l=e.onWatchUpdated,u=function(e){var n=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=i(r)}finally{--r.txCount,r.data=n,r.optimisticData=o}},c=new Set;return l&&!this.txCount&&this.broadcastWatches((0,n.Cl)((0,n.Cl)({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,u):!1===a?u(this.data):u(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),l&&c.size?(this.broadcastWatches((0,n.Cl)((0,n.Cl)({},e),{onWatchUpdated:function(e,t){var r=l.call(this,e,t);return!1!==r&&c.delete(e),r}})),c.size&&c.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=(0,d.XY)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,a.L)(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(l)},68717:(e,t,r)=>{"use strict";r.d(t,{$:()=>c,M:()=>d});var n,i,o=r(82051);r(92819);var a=r(80106),s=r(21777),l=r(51360),u=r(35207),c=function(){function e(){this.known=new(l.En?WeakSet:Set),this.pool=new a.b(l.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,s.U)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,s.U)(e)){var t=(0,s.U)(e)?(0,u.cy)(e)?e.slice(0):(0,o.Cl)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,s.U)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return!i.array&&(this.known.add(i.array=n),__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],l=this.sortedKeys(e);a.push(l.json);var u=a.length;l.sorted.forEach(function(r){a.push(t.admit(e[r]))});var i=this.pool.lookupArray(a);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),l.sorted.forEach(function(e,t){c[e]=a[u+t]}),__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}(),d=Object.assign(function(e){if((0,s.U)(e)){void 0===n&&h();var t=n.admit(e),r=i.get(t);return void 0===r&&i.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)},{reset:h});function h(){n=new c,i=new(l.et?WeakMap:Map)}},777:(e,t,r)=>{"use strict";r.d(t,{MS:()=>l,UT:()=>u,WR:()=>s,bl:()=>i});var n=r(72403),i=new(r(51520)).DX,o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.yN)()}),t}function s(e){a(e).vars.forEach(function(t){return t.forgetCache(e)})}function l(e){a(e).vars.forEach(function(t){return t.attachCache(e)})}function u(e){var t=new Set,r=new Set,n=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){a(e).dep.dirty(n),e.broadcastWatches&&e.broadcastWatches()});var l=Array.from(r);r.clear(),l.forEach(function(t){return t(e)})}}else{var u=i.getValue();u&&(o(u),a(u).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),a(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}},93978:(e,t,r)=>{"use strict";r.d(t,{R:()=>X});var n=r(82051),i=r(92819),o=r(70602),a=o.C.execute,s=r(16692),l=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,(0,s.$)(t).request)||this;return r.options=t,r}return(0,n.C6)(t,e),t}(o.C),u=r(9510),c=r(68717),d=r(51360),h=r(36054);function p(e,t,r){return new h.c(function(n){var i=n.next,o=n.error,a=n.complete,s=0,l=!1,u={then:function(e){return new Promise(function(t){return t(e())})}};function c(e,t){return e?function(t){++s;var r=function(){return e(t)};u=u.then(r,r).then(function(e){--s,i&&i.call(n,e),l&&d.complete()},function(e){throw--s,e}).catch(function(e){o&&o.call(n,e)})}:function(e){return t&&t.call(n,e)}}var d={next:c(t,i),error:c(r,o),complete:function(){l=!0,!s&&a&&a.call(n)}},h=e.subscribe(d);return function(){return h.unsubscribe()}})}function f(e){return e.errors&&e.errors.length>0||!1}var m=r(3777),g=r(65304),v=r(82307),y=r(28907),b=r(21777),w=r(21461);function k(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function x(e){function t(t){Object.defineProperty(e,t,{value:h.c})}return d.ol&&Symbol.species&&t(Symbol.species),t("@@species"),e}function _(e){return e&&"function"==typeof e.then}var S=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.addCount=0,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],k(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),k(r.observers,"error",e))},complete:function(){var e=r.sub;if(null!==e){var t=r.sources.shift();t?_(t)?t.then(function(e){return r.sub=e.subscribe(r.handlers)}):r.sub=t.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),k(r.observers,"complete"))}}},r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new h.c(t)]),_(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,n.C6)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){!this.observers.has(e)&&(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.complete()},t.prototype.cleanup=function(e){var t=this,r=!1,n=function(){r||(r=!0,t.observers.delete(i),e())},i={next:n,error:n,complete:n},o=this.addCount;this.addObserver(i),this.addCount=o},t}(h.c);x(S);var E=r(73767),C=r(53570),D=r(75950),A=r(20906),j=r(50492),O=Object.assign,T=Object.hasOwnProperty,P=function(e){function t(t){var r=t.queryManager,i=t.queryInfo,o=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=M)}catch(e){}var r=!a.observers.size;a.observers.add(e);var n=a.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=r,a.isTornDown=!1;var s=r.defaultOptions.watchQuery,l=(void 0===s?{}:s).fetchPolicy,u=void 0===l?"cache-first":l,c=o.fetchPolicy,d=void 0===c?u:c,h=o.initialFetchPolicy,p=void 0===h?"standby"===d?u:d:h;a.options=(0,n.Cl)((0,n.Cl)({},o),{initialFetchPolicy:p,fetchPolicy:d}),a.queryId=i.queryId||r.generateQueryId();var f=(0,m.Vu)(a.query);return a.queryName=f&&f.name&&f.name.value,a}return(0,n.C6)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||D.p.ready,i=(0,n.Cl)((0,n.Cl)({},t),{loading:(0,D.b)(r),networkStatus:r}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if("network-only"===a||"no-cache"===a||"standby"===a||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(i.data=s.result),(0,u.L)(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,s.complete&&i.networkStatus===D.p.loading&&("cache-first"===a||"cache-only"===a)&&(i.networkStatus=D.p.ready,i.loading=!1)):i.partial=!0,!__DEV__||s.complete||this.options.partialRefetch||i.loading||i.data||i.error||N(s.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!(0,u.L)(this.last.result,e)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,u.L)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},o=this.options.fetchPolicy;if("cache-and-network"===o?r.fetchPolicy=o:"no-cache"===o?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",__DEV__&&e&&T.call(e,"variables")){var a=(0,m.AT)(this.query),s=a.variableDefinitions;(!s||!s.some(function(e){return"variables"===e.variable.name.value}))&&__DEV__&&i.V1.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=a.name)||void 0===t?void 0:t.value)||JSON.stringify(a),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!(0,u.L)(this.options.variables,e)&&(r.variables=this.options.variables=(0,n.Cl)((0,n.Cl)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,D.p.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,n.Cl)((0,n.Cl)({},e.query?e:(0,n.Cl)((0,n.Cl)((0,n.Cl)((0,n.Cl)({},this.options),{query:this.query}),e),{variables:(0,n.Cl)((0,n.Cl)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId(),o=this.queryInfo,a=o.networkStatus;o.networkStatus=D.p.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var s=new Set;return this.queryManager.fetchQuery(i,r,D.p.fetchMore).then(function(n){return t.queryManager.removeQuery(i),o.networkStatus===D.p.fetchMore&&(o.networkStatus=a),t.queryManager.cache.batch({update:function(i){var o=e.updateQuery;o?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return o(e,{fetchMoreResult:n.data,variables:r.variables})}):i.writeQuery({query:r.query,variables:r.variables,data:n.data})},onWatchUpdated:function(e){s.add(e.query)}}),n}).finally(function(){s.has(t.query)||R(t)})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}__DEV__&&i.V1.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return(0,u.L)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},D.p.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){__DEV__?(0,i.V1)(r,"Attempted to start a polling query without a polling interval."):(0,i.V1)(r,10),(t||(this.pollingInfo={})).interval=r;var n=function(){e.pollingInfo&&((0,D.b)(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:"network-only"},D.p.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=(0,n.Cl)((0,n.Cl)({},this.last),{result:this.queryManager.assumeImmutableResults?e:(0,A.m)(e),variables:t}),(0,E.E)(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var r=this;this.isTornDown=!1;var i=t===D.p.refetch||t===D.p.fetchMore||t===D.p.poll,o=this.options.variables,a=this.options.fetchPolicy,s=(0,j.o)(this.options,e||{}),l=i?s:O(this.options,s);!i&&(this.updatePolling(),e&&e.variables&&!(0,u.L)(e.variables,o)&&"standby"!==l.fetchPolicy&&l.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",l),void 0===t&&(t=D.p.setVariables)));var c=l.variables&&(0,n.Cl)({},l.variables),d=this.fetch(l,t),h={next:function(e){r.reportResult(e,c)},error:function(e){r.reportError(e,c)}};return i||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=d,this.observer=h),d.addObserver(h),d.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError();(r||this.isDifferentFromLastResult(e))&&((r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),k(this.observers,"next",e))},t.prototype.reportError=function(e,t){var r=(0,n.Cl)((0,n.Cl)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:D.p.error,loading:!1});this.updateLastResult(r,t),k(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(h.c);function R(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=n,"function"==typeof n)?n.apply(this,arguments):r}}):e.reobserve()}function M(e){__DEV__&&i.V1.error("Unhandled error",e.message,e.stack)}function N(e){__DEV__&&e&&__DEV__&&i.V1.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}x(P);var F=r(90424),I=r(30671),L=r(2904),B=r(777),z=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,I.D9)(t.resolvers,e)}):this.resolvers=(0,I.D9)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,n.sH)(this,void 0,void 0,function(){return(0,n.YH)(this,function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,s).then(function(e){return(0,n.Cl)((0,n.Cl)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,v.d8)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,g.er)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.Cl)((0,n.Cl)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.sH)(this,void 0,void 0,function(){return(0,n.YH)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,n.Cl)((0,n.Cl)({},t),e.exportedVariables)})]:[2,(0,n.Cl)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,F.YR)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return F.sP}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,g.zc)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,i,o,a){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,n.sH)(this,void 0,void 0,function(){var s,l,u,c,d,h,p,f,g;return(0,n.YH)(this,function(v){return s=(0,m.Vn)(e),l=(0,m.zK)(e),u=(0,L.JG)(l),d=(c=s.operation)?c.charAt(0).toUpperCase()+c.slice(1):"Query",h=this,p=h.cache,f=h.client,g={fragmentMap:u,context:(0,n.Cl)((0,n.Cl)({},r),{cache:p,client:f}),variables:i,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,t,g).then(function(e){return{result:e,exportedVariables:g.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r){return(0,n.sH)(this,void 0,void 0,function(){var o,a,s,l,u,c=this;return(0,n.YH)(this,function(d){return o=r.fragmentMap,a=r.context,s=r.variables,l=[t],u=function(e){return(0,n.sH)(c,void 0,void 0,function(){var u,c;return(0,n.YH)(this,function(n){return(0,v.MS)(e,s)?(0,y.dt)(e)?[2,this.resolveField(e,t,r).then(function(t){var r;void 0!==t&&l.push(((r={})[(0,y.ue)(e)]=t,r))})]:((0,y.kd)(e)?u=e:(u=o[e.name.value],__DEV__?(0,i.V1)(u,"No fragment named ".concat(e.name.value)):(0,i.V1)(u,9)),u&&u.typeCondition&&(c=u.typeCondition.name.value,r.fragmentMatcher(t,c,a)))?[2,this.resolveSelectionSet(u.selectionSet,t,r).then(function(e){l.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return(0,I.IM)(l)})]})})},e.prototype.resolveField=function(e,t,r){return(0,n.sH)(this,void 0,void 0,function(){var i,o,a,s,l,u,c,d,h,p=this;return(0,n.YH)(this,function(n){return i=r.variables,s=(o=e.name.value)!==(a=(0,y.ue)(e)),u=Promise.resolve(l=t[a]||t[o]),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(c=t.__typename||r.defaultOperationType,(d=this.resolvers&&this.resolvers[c])&&(h=d[s?o:a])&&(u=Promise.resolve(B.bl.withValue(this.cache,h,[t,(0,y.MB)(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,u.then(function(t){return(void 0===t&&(t=l),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=t)})}),e.selectionSet&&null!=t)?Array.isArray(t)?p.resolveSubSelectedArray(e,t,r):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,r):void 0:t})]})})},e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map(function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0}))},e}(),U=new(d.et?WeakMap:Map);function q(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return U.set(e,(U.get(e)+1)%1e15),r.apply(this,arguments)})}function H(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var V=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;U.has(r)||(U.set(r,0),q(r,"evict"),q(r,"modify"),q(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||D.p.loading;return this.variables&&this.networkStatus!==D.p.loading&&!(0,u.L)(this.variables,e.variables)&&(t=D.p.setVariables),(0,u.L)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){H(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&(0,u.L)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(t);return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,u.L)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():R(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;H(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,D.b)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.Cl)((0,n.Cl)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,u.L)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===U.get(this.cache)&&(0,u.L)(t,r.variables)&&(0,u.L)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r){var n=this;this.graphQLErrors=(0,E.E)(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==r&&($(e,t.errorPolicy)?this.cache.performTransaction(function(i){if(n.shouldWrite(e,t.variables))i.writeQuery({query:n.document,data:e.data,variables:t.variables,overwrite:1===r}),n.lastWrite={result:e,variables:t.variables,dmCount:U.get(n.cache)};else if(n.lastDiff&&n.lastDiff.diff.complete){e.data=n.lastDiff.diff.result;return}var o=n.getDiffOptions(t.variables),a=i.diff(o);n.stopped||n.updateWatch(t.variables),n.updateLastDiff(a,o),a.complete&&(e.data=a.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=D.p.ready},e.prototype.markError=function(e){return this.networkStatus=D.p.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function $(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!f(e);return!n&&r&&e.data&&(n=!0),n}var W=Object.prototype.hasOwnProperty,Y=function(){function e(e){var t=e.cache,r=e.link,n=e.defaultOptions,i=e.queryDeduplication,o=e.onBroadcast,a=e.ssrMode,s=e.clientAwareness,l=e.localState,u=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(d.et?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=void 0!==i&&i,this.clientAwareness=void 0===s?{}:s,this.localState=l||new z({cache:t}),this.ssrMode=void 0!==a&&a,this.assumeImmutableResults=!!u,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(__DEV__?new i.zU("QueryManager stopped while query was in flight"):new i.zU(11))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,r,o=e.mutation,a=e.variables,s=e.optimisticResponse,l=e.updateQueries,u=e.refetchQueries,c=void 0===u?[]:u,d=e.awaitRefetchQueries,h=void 0!==d&&d,m=e.update,g=e.onQueryUpdated,v=e.fetchPolicy,y=void 0===v?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":v,b=e.errorPolicy,w=void 0===b?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":b,k=e.keepRootFields,x=e.context;return(0,n.sH)(this,void 0,void 0,function(){var e,t,r;return(0,n.YH)(this,function(u){switch(u.label){case 0:if(__DEV__?(0,i.V1)(o,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,i.V1)(o,12),__DEV__?(0,i.V1)("network-only"===y||"no-cache"===y,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,i.V1)("network-only"===y||"no-cache"===y,13),e=this.generateMutationId(),o=this.transform(o).document,a=this.getVariables(o,a),!this.transform(o).hasClientExports)return[3,2];return[4,this.localState.addExportedVariables(o,a,x)];case 1:a=u.sent(),u.label=2;case 2:return t=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:a,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:e,document:o,variables:a,fetchPolicy:y,errorPolicy:w,context:x,updateQueries:l,update:m,keepRootFields:k}),this.broadcastQueries(),r=this,[2,new Promise(function(i,u){return p(r.getObservableFromLink(o,(0,n.Cl)((0,n.Cl)({},x),{optimisticResponse:s}),a,!1),function(i){if(f(i)&&"none"===w)throw new C.K({graphQLErrors:i.errors});t&&(t.loading=!1,t.error=null);var u=(0,n.Cl)({},i);return"function"==typeof c&&(c=c(u)),"ignore"===w&&f(u)&&delete u.errors,r.markMutationResult({mutationId:e,result:u,document:o,variables:a,fetchPolicy:y,errorPolicy:w,context:x,update:m,updateQueries:l,awaitRefetchQueries:h,refetchQueries:c,removeOptimistic:s?e:void 0,onQueryUpdated:g,keepRootFields:k})}).subscribe({next:function(e){r.broadcastQueries(),i(e)},error:function(n){t&&(t.loading=!1,t.error=n),s&&r.cache.removeOptimistic(e),r.broadcastQueries(),u(n instanceof C.K?n:new C.K({networkError:n}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&$(i,e.errorPolicy)){o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var s=e.updateQueries;s&&this.queries.forEach(function(e,n){var a=e.observableQuery,l=a&&a.queryName;if(l&&W.call(s,l)){var u=s[l],c=r.queries.get(n),d=c.document,h=c.variables,p=t.diff({query:d,variables:h,returnPartialData:!0,optimistic:!1}),f=p.result;if(p.complete&&f){var g=u(f,{mutationResult:i,queryName:d&&(0,m.n4)(d)||void 0,queryVariables:h});g&&o.push({result:g,dataId:"ROOT_QUERY",query:d,variables:h})}}})}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s=e.update;if(s){if(!a){var l=t.diff({id:"ROOT_MUTATION",query:r.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&(i=(0,n.Cl)((0,n.Cl)({},i),{data:l.result}))}s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,n.Cl)((0,n.Cl)({},t),{result:{data:o}}),e)}catch(e){__DEV__&&i.V1.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchQueryObservable(e,t,r).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.cache.transformDocument(e),i=(0,g.hX)(this.cache.transformForLink(r)),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:(0,v.f2)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:(0,m.wY)((0,m.Vu)(r)),asQuery:(0,n.Cl)((0,n.Cl)({},r),{definitions:r.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.Cl)((0,n.Cl)({},e),{operation:"query"}):e})})},l=function(e){e&&!t.has(e)&&t.set(e,s)};l(e),l(r),l(o),l(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.Cl)((0,n.Cl)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,n.Cl)((0,n.Cl)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new V(this),r=new P({queryManager:this,queryInfo:t,options:e});return this.queries.set(r.queryId,t),t.init({document:r.query,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?(0,i.V1)(e.query,"query option is required. You must specify your GraphQL document in the query option."):(0,i.V1)(e.query,14),__DEV__?(0,i.V1)("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):(0,i.V1)("Document"===e.query.kind,15),__DEV__?(0,i.V1)(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,i.V1)(!e.returnPartialData,16),__DEV__?(0,i.V1)(!e.pollInterval,"pollInterval option only supported on watchQuery."):(0,i.V1)(!e.pollInterval,17),this.fetchQuery(t,e).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new i.zU("Store reset while query was in flight (not completed in link chain)"):new i.zU(18)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=D.p.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?o.set(e,!1):(0,y.Kc)(e)?o.set(t.transform(e).document,!1):(0,b.U)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,n){var i=t.observableQuery,a=t.document;if(i){if("all"===e){r.set(n,i);return}var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(r.set(n,i),s&&o.set(s,!0),a&&o.set(a,!0))}}),a.size&&a.forEach(function(e){var o=(0,w.v)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new P({queryManager:t,queryInfo:a,options:(0,n.Cl)((0,n.Cl)({},e),{fetchPolicy:"network-only"})});(0,i.V1)(s.queryId===o),a.setObservableQuery(s),r.set(o,s)}),__DEV__&&o.size&&o.forEach(function(e,t){!e&&__DEV__&&i.V1.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;r=this.transform(r).document,o=this.getVariables(r,o);var l=function(e){return t.getObservableFromLink(r,s,e).map(function(o){if("no-cache"!==n&&($(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),f(o))throw new C.K({graphQLErrors:o.errors});return o})};if(this.transform(r).hasClientExports){var u=this.localState.addExportedVariables(r,o,s).then(l);return new h.c(function(e){var t=null;return u.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return l(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i){var o,s,l=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var u=this.transform(e).serverQuery;if(u){var d=this.inFlightLinkObservables,f=this.link,g={query:u,variables:r,operationName:(0,m.n4)(u)||void 0,context:this.prepareContext((0,n.Cl)((0,n.Cl)({},t),{forceFetch:!i}))};if(t=g.context,i){var v=d.get(u)||new Map;d.set(u,v);var y=(0,c.M)(r);if(!(s=v.get(y))){var b=new S([a(f,g)]);v.set(y,s=b),b.cleanup(function(){v.delete(y)&&v.size<1&&d.delete(u)})}}else s=new S([a(f,g)])}else s=new S([h.c.of({data:{}})]),t=this.prepareContext(t);var w=this.transform(e).clientQuery;return w&&(s=p(s,function(e){return l.localState.runResolvers({document:w,remoteResult:e,context:t,variables:r})})),s},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId();return p(this.getObservableFromLink(e.document,r.context,r.variables),function(i){var o=(0,E.E)(i.errors);if(n>=e.lastRequestId){if(o&&"none"===r.errorPolicy)throw e.markError(new C.K({graphQLErrors:i.errors}));e.markResult(i,r,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:D.p.ready};return o&&"ignore"!==r.errorPolicy&&(a.errors=i.errors,a.networkStatus=D.p.error),a},function(t){var r=(0,C.M)(t)?t:new C.K({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchQueryObservable=function(e,t,r){var n=this;void 0===r&&(r=D.p.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=this.defaultOptions.watchQuery,l=t.fetchPolicy,u=void 0===l?s&&s.fetchPolicy||"cache-first":l,c=t.errorPolicy,d=void 0===c?s&&s.errorPolicy||"none":c,h=t.returnPartialData,p=t.notifyOnNetworkStatusChange,f=t.context,m=Object.assign({},t,{query:i,variables:o,fetchPolicy:u,errorPolicy:d,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==p&&p,context:void 0===f?{}:f}),g=function(e){m.variables=e;var i=n.fetchQueryByPolicy(a,m,r);return"standby"!==m.fetchPolicy&&i.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",t),i},v=function(){return n.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,function(e){v(),setTimeout(function(){return y.cancel(e)})});var y=new S(this.transform(m.query).hasClientExports?this.localState.addExportedVariables(m.query,m.variables,m.context).then(g):g(m.variables));return y.promise.then(v,v),y},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,w.v)("refetchQueries"):void 0:a,l=e.onQueryUpdated,u=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){u.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var c=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof V&&e.watcher.observableQuery;if(n){if(l){u.delete(n.queryId);var i=l(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&c.set(n,i),i}null!==l&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(l){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=l(i,a,o)}l&&!0!==n||(n=i.refetch()),!1!==n&&c.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),c},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,l=t.refetchWritePolicy,c=t.errorPolicy,d=t.returnPartialData,p=t.context,f=t.notifyOnNetworkStatusChange,m=e.networkStatus;e.init({document:this.transform(o).document,variables:a,networkStatus:r});var g=function(){return e.getDiff(a)},v=function(t,r){void 0===r&&(r=e.networkStatus||D.p.loading);var s=t.result;!__DEV__||d||(0,u.L)(s,{})||N(t.missing);var l=function(e){return h.c.of((0,n.Cl)({data:e,loading:(0,D.b)(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:p,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return l(e.data||void 0)}):l(s)},y="no-cache"===s?0:r===D.p.refetch&&"merge"!==l?1:2,b=function(){return i.getResultsFromLink(e,y,{variables:a,context:p,fetchPolicy:s,errorPolicy:c})},w=f&&"number"==typeof m&&m!==r&&(0,D.b)(r);switch(s){default:case"cache-first":var k=g();if(k.complete)return[v(k,e.markReady())];if(d||w)return[v(k),b()];return[b()];case"cache-and-network":var k=g();if(k.complete||d||w)return[v(k),b()];return[b()];case"cache-only":return[v(g(),e.markReady())];case"network-only":if(w)return[v(g()),b()];return[b()];case"no-cache":if(w)return[v(e.getDiff()),b()];return[b()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new V(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.Cl)((0,n.Cl)({},t),{clientAwareness:this.clientAwareness})},e}(),G=r(31507),K=!1,X=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.credentials,a=e.headers,s=e.cache,u=e.ssrMode,c=void 0!==u&&u,d=e.ssrForceFetchDelay,h=void 0===d?0:d,p=e.connectToDevTools,f=void 0===p?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:p,m=e.queryDeduplication,g=void 0===m||m,v=e.defaultOptions,y=e.assumeImmutableResults,b=e.resolvers,w=e.typeDefs,k=e.fragmentMatcher,x=e.name,_=e.version,S=e.link;if(S||(S=r?new l({uri:r,credentials:n,headers:a}):o.C.empty()),!s)throw __DEV__?new i.zU("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new i.zU(7);if(this.link=S,this.cache=s,this.disableNetworkFetches=c||h>0,this.queryDeduplication=g,this.defaultOptions=v||Object.create(null),this.typeDefs=w,h&&setTimeout(function(){return t.disableNetworkFetches=!1},h),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),f&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!K&&__DEV__&&(K=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var E=window.navigator,C=E&&E.userAgent,D=void 0;"string"==typeof C&&(C.indexOf("Chrome/")>-1?D="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":C.indexOf("Firefox/")>-1&&(D="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),D&&__DEV__&&i.V1.log("Download the Apollo DevTools for a better development experience: "+D)}this.version="3.6.9",this.localState=new z({cache:s,client:this,resolvers:b,fragmentMatcher:k}),this.queryManager=new Y({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:g,ssrMode:c,clientAwareness:{name:x,version:_},localState:this.localState,assumeImmutableResults:void 0!==y&&y,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,G.l)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,n.Cl)((0,n.Cl)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,G.l)(this.defaultOptions.query,e)),__DEV__?(0,i.V1)("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,i.V1)("cache-and-network"!==e.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.Cl)((0,n.Cl)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,G.l)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return a(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var o=Promise.all(n);return o.queries=r,o.results=n,o.catch(function(e){__DEV__&&i.V1.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},75950:(e,t,r)=>{"use strict";var n;function i(e){return!!e&&e<7}r.d(t,{b:()=>i,p:()=>n}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(n||(n={}))},53570:(e,t,r)=>{"use strict";r.d(t,{K:()=>s,M:()=>o});var n=r(82051);r(92819);var i=r(73767);function o(e){return e.hasOwnProperty("graphQLErrors")}var a=function(e){var t="";return((0,i.E)(e.graphQLErrors)||(0,i.E)(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach(function(e){var r=e?e.message:"Error message not found.";t+="".concat(r,"\n")}),e.networkError&&(t+="".concat(e.networkError.message,"\n")),t=t.replace(/\n$/,"")},s=function(e){function t(r){var n=r.graphQLErrors,i=r.clientErrors,o=r.networkError,s=r.errorMessage,l=r.extraInfo,u=e.call(this,s)||this;return u.graphQLErrors=n||[],u.clientErrors=i||[],u.networkError=o||null,u.message=s||a(u),u.extraInfo=l,u.__proto__=t.prototype,u}return(0,n.C6)(t,e),t}(Error)},70602:(e,t,r)=>{"use strict";r.d(t,{C:()=>d});var n=r(82051),i=r(92819),o=r(36054),a=r(3777);function s(e,t){return t?t(e):o.c.of()}function l(e){return"function"==typeof e?new d(e):e}function u(e){return e.request.length<=1}var c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}return(0,n.C6)(t,e),t}(Error),d=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return o.c.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(l).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=l(r),a=l(n||new e(s));return new e(u(i)&&u(a)?function(e){return t(e)?i.request(e)||o.c.of():a.request(e)||o.c.of()}:function(e,r){return t(e)?i.request(e,r)||o.c.of():a.request(e,r)||o.c.of()})},e.execute=function(e,t){var r,s,l,u;return e.request((l=t.context,(s={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);rt.indexOf(o))throw __DEV__?new i.zU("illegal argument: ".concat(o)):new i.zU(24)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(s.operationName="string"!=typeof s.query?(0,a.n4)(s.query)||void 0:""),u=(0,n.Cl)({},l),Object.defineProperty(s,"setContext",{enumerable:!1,value:function(e){u="function"==typeof e?(0,n.Cl)((0,n.Cl)({},u),e(u)):(0,n.Cl)((0,n.Cl)({},u),e)}}),Object.defineProperty(s,"getContext",{enumerable:!1,value:function(){return(0,n.Cl)({},u)}}),s))||o.c.of()},e.concat=function(t,r){var n=l(t);if(u(n))return __DEV__&&i.V1.warn(new c("You are calling concat on a terminating link, which will have no effect",n)),n;var a=l(r);return new e(u(a)?function(e){return n.request(e,function(e){return a.request(e)||o.c.of()})||o.c.of()}:function(e,t){return n.request(e,function(e){return a.request(e,t)||o.c.of()})||o.c.of()})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new i.zU("request is not implemented"):new i.zU(19)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},87105:(e,t,r)=>{"use strict";r.d(t,{l:()=>n});var n=r(70602).C.split},16692:(e,t,r)=>{"use strict";r.d(t,{$:()=>D});var n=r(82051),i=r(92819),o=r(90424),a=r(70602),s=r(36054),l=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=__DEV__?new i.zU("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new i.zU(21);throw n.parseError=e,n}return r},u=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},c=Object.prototype.hasOwnProperty,d=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new i.zU("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new i.zU(20)},h=r(67714);function p(e){return(0,o.YR)(e,{leave:f})}var f={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return g(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,r=e.name,n=y("(",g(e.variableDefinitions,", "),")"),i=g(e.directives," "),o=e.selectionSet;return r||i||n||"query"!==t?g([t,g([r,n]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,r=e.type,n=e.defaultValue,i=e.directives;return t+": "+r+y(" = ",n)+y(" ",g(i," "))},SelectionSet:function(e){return v(e.selections)},Field:function(e){var t=e.alias,r=e.name,n=e.arguments,i=e.directives,o=e.selectionSet,a=y("",t,": ")+r,s=a+y("(",g(n,", "),")");return s.length>80&&(s=a+y("(\n",b(g(n,"\n")),"\n)")),g([s,g(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+y(" ",g(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return g(["...",y("on ",t),g(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(y("(",g(n,", "),")")," ")+"on ".concat(r," ").concat(y("",g(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var r=e.value;return e.block?(0,h.yo)(r,"description"===t?"":" "):JSON.stringify(r)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+g(e.values,", ")+"]"},ObjectValue:function(e){return"{"+g(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+y("(",g(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:m(function(e){var t=e.directives,r=e.operationTypes;return g(["schema",g(t," "),v(r)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:m(function(e){return g(["scalar",e.name,g(e.directives," ")]," ")}),ObjectTypeDefinition:m(function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return g(["type",t,y("implements ",g(r," & ")),g(n," "),v(i)]," ")}),FieldDefinition:m(function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(k(r)?y("(\n",b(g(r,"\n")),"\n)"):y("(",g(r,", "),")"))+": "+n+y(" ",g(i," "))}),InputValueDefinition:m(function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return g([t+": "+r,y("= ",n),g(i," ")]," ")}),InterfaceTypeDefinition:m(function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return g(["interface",t,y("implements ",g(r," & ")),g(n," "),v(i)]," ")}),UnionTypeDefinition:m(function(e){var t=e.name,r=e.directives,n=e.types;return g(["union",t,g(r," "),n&&0!==n.length?"= "+g(n," | "):""]," ")}),EnumTypeDefinition:m(function(e){var t=e.name,r=e.directives,n=e.values;return g(["enum",t,g(r," "),v(n)]," ")}),EnumValueDefinition:m(function(e){return g([e.name,g(e.directives," ")]," ")}),InputObjectTypeDefinition:m(function(e){var t=e.name,r=e.directives,n=e.fields;return g(["input",t,g(r," "),v(n)]," ")}),DirectiveDefinition:m(function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(k(r)?y("(\n",b(g(r,"\n")),"\n)"):y("(",g(r,", "),")"))+(n?" repeatable":"")+" on "+g(i," | ")}),SchemaExtension:function(e){var t=e.directives,r=e.operationTypes;return g(["extend schema",g(t," "),v(r)]," ")},ScalarTypeExtension:function(e){return g(["extend scalar",e.name,g(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return g(["extend type",t,y("implements ",g(r," & ")),g(n," "),v(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return g(["extend interface",t,y("implements ",g(r," & ")),g(n," "),v(i)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return g(["extend union",t,g(r," "),n&&0!==n.length?"= "+g(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return g(["extend enum",t,g(r," "),v(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return g(["extend input",t,g(r," "),v(n)]," ")}};function m(e){return function(t){return g([t.description,e(t)],"\n")}}function g(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter(function(e){return e}).join(r))&&void 0!==t?t:""}function v(e){return y("{\n",b(g(e,"\n")),"\n}")}function y(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+r:""}function b(e){return y(" ",e.replace(/\n/g,"\n "))}function w(e){return -1!==e.indexOf("\n")}function k(e){return null!=e&&e.some(w)}var x={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},_=function(e,t){return t(e)},S=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}};function E(e){return new s.c(function(t){t.error(e)})}var C=(0,i.no)(function(){return fetch}),D=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,h=e.fetch,f=e.print,m=void 0===f?_:f,g=e.includeExtensions,v=e.useGETForQueries,y=e.includeUnusedVariables,b=void 0!==y&&y,w=(0,n.Tt)(e,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&d(h||C);var k={http:{includeExtensions:g},options:w.fetchOptions,credentials:w.credentials,headers:w.headers};return new a.C(function(e){var t,a,d,f=(t=e,a=r,t.getContext().uri||("function"==typeof a?a(t):a||"/graphql")),g=e.getContext(),y={};if(g.clientAwareness){var w=g.clientAwareness,_=w.name,D=w.version;_&&(y["apollographql-client-name"]=_),D&&(y["apollographql-client-version"]=D)}var A=(0,n.Cl)((0,n.Cl)({},y),g.headers),j=function(e,t){for(var r=[],i=2;i=300&&u(t,r,"Response not successful: Received status code ".concat(t.status)),Array.isArray(r)||c.call(r,"data")||c.call(r,"errors")||u(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})}).then(function(e){return t.next(e),t.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e))}),function(){d&&d.abort()}})})}},56174:(e,t,r)=>{"use strict";r.d(t,{l:()=>o});var n=r(14041),i=r(51360).ol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function o(){var e=n.createContext[i];return e||(Object.defineProperty(n.createContext,i,{value:e=n.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},6172:(e,t,r)=>{"use strict";r.d(t,{X:()=>a});var n=r(92819),i=r(14041),o=r(56174),a=function(e){var t=e.client,r=e.children,a=(0,o.l)();return i.createElement(a.Consumer,null,function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),__DEV__?(0,n.V1)(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):(0,n.V1)(e.client,26),i.createElement(a.Provider,{value:e},r)})}},95372:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(92819),i=r(14041),o=r(56174);function a(e){var t=(0,i.useContext)((0,o.l)()),r=e||t.client;return __DEV__?(0,n.V1)(!!r,'Could not find "client" in the context or passed in as an option. Wrap the root component in an , or pass an ApolloClient instance in via options.'):(0,n.V1)(!!r,29),r}},49636:(e,t,r)=>{"use strict";r.d(t,{_:()=>u});var n=r(82051),i=r(14041),o=r(31507),a=r(23968),s=r(95372),l=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function u(e,t){var r=(0,a.k)((0,s.m)(t&&t.client),e),u=(0,i.useRef)(),c=u.current?(0,o.l)(t,u.current):t,d=r.useQuery((0,n.Cl)((0,n.Cl)({},c),{skip:!u.current})),h=d.observable.options.initialFetchPolicy||r.getDefaultFetchPolicy(),p=Object.assign(d,{called:!!u.current}),f=(0,i.useMemo)(function(){for(var e={},t=0;t{"use strict";r.d(t,{n:()=>c});var n=r(82051),i=r(14041),o=r(31507),a=r(9510),s=r(13650),l=r(53570),u=r(95372);function c(e,t){var r=(0,u.m)(null==t?void 0:t.client);(0,s.D$)(e,s.KG.Mutation);var c=(0,i.useState)({called:!1,loading:!1,client:r}),d=c[0],h=c[1],p=(0,i.useRef)({result:d,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});Object.assign(p.current,{client:r,options:t,mutation:e});var f=(0,i.useCallback)(function(e){void 0===e&&(e={});var t=p.current,r=t.client,i=t.options,s=t.mutation,u=(0,n.Cl)((0,n.Cl)({},i),{mutation:s});p.current.result.loading||u.ignoreResults||h(p.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:r});var c=++p.current.mutationId,d=(0,o.l)(u,e);return r.mutate(d).then(function(t){var n,i,o,s=t.data,u=t.errors,f=u&&u.length>0?new l.K({graphQLErrors:u}):void 0;if(c===p.current.mutationId&&!d.ignoreResults){var m={called:!0,loading:!1,data:s,error:f,client:r};p.current.isMounted&&!(0,a.L)(p.current.result,m)&&h(p.current.result=m)}return null===(i=null===(n=p.current.options)||void 0===n?void 0:n.onCompleted)||void 0===i||i.call(n,t.data),null===(o=e.onCompleted)||void 0===o||o.call(e,t.data),t}).catch(function(t){var n,i,o,s;if(c===p.current.mutationId&&p.current.isMounted){var l={loading:!1,error:t,data:void 0,called:!0,client:r};(0,a.L)(p.current.result,l)||h(p.current.result=l)}if((null===(n=p.current.options)||void 0===n?void 0:n.onError)||d.onError)return null===(o=null===(i=p.current.options)||void 0===i?void 0:i.onError)||void 0===o||o.call(i,t),null===(s=e.onError)||void 0===s||s.call(e,t),{data:void 0,errors:t};throw t})},[]),m=(0,i.useCallback)(function(){h({called:!1,loading:!1,client:r})},[]);return(0,i.useEffect)(function(){return p.current.isMounted=!0,function(){p.current.isMounted=!1}},[]),[f,(0,n.Cl)({reset:m},d)]}},23968:(e,t,r)=>{"use strict";r.d(t,{k:()=>_,I:()=>x});var n=r(82051),i=r(92819),o=r(14041),a=r.t(o,2),s=r(51360),l=!1,u=a.useSyncExternalStore||function(e,t,r){var n=t();__DEV__&&!l&&n!==t()&&(l=!0,__DEV__&&i.V1.error("The result of getSnapshot should be cached to avoid an infinite loop"));var a=o.useState({inst:{value:n,getSnapshot:t}}),u=a[0].inst,d=a[1];return s.JR?o.useLayoutEffect(function(){Object.assign(u,{value:n,getSnapshot:t}),c(u)&&d({inst:u})},[e,n,t]):Object.assign(u,{value:n,getSnapshot:t}),o.useEffect(function(){return c(u)&&d({inst:u}),e(function(){c(u)&&d({inst:u})})},[e]),n};function c(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(e){return!0}}var d=r(9510),h=r(31507),p=r(56174),f=r(53570),m=r(75950),g=r(13650),v=r(95372),y=r(57236),b=r(50492),w=r(73767),k=Object.prototype.hasOwnProperty;function x(e,t){return void 0===t&&(t=Object.create(null)),_((0,v.m)(t.client),e).useQuery(t)}function _(e,t){var r=(0,o.useRef)();r.current&&e===r.current.client&&t===r.current.query||(r.current=new S(e,t,r.current));var n=r.current,i=(0,o.useState)(0),a=(i[0],i[1]);return n.forceUpdate=function(){a(function(e){return e+1})},n}var S=function(){function e(e,t,r){this.client=e,this.query=t,this.asyncResolveFns=new Set,this.optionsToIgnoreOnce=new(s.En?WeakSet:Set),this.ssrDisabledResult=(0,y.G)({loading:!0,data:void 0,error:void 0,networkStatus:m.p.loading}),this.skipStandbyResult=(0,y.G)({loading:!1,data:void 0,error:void 0,networkStatus:m.p.ready}),this.toQueryResultCache=new(s.et?WeakMap:Map),(0,g.D$)(t,g.KG.Query);var n=r&&r.result,i=n&&n.data;i&&(this.previousData=i)}return e.prototype.forceUpdate=function(){__DEV__&&i.V1.warn("Calling default no-op implementation of InternalState#forceUpdate")},e.prototype.asyncUpdate=function(){var e=this;return new Promise(function(t){e.asyncResolveFns.add(t),e.optionsToIgnoreOnce.add(e.watchQueryOptions),e.forceUpdate()})},e.prototype.useQuery=function(e){var t=this;this.renderPromises=(0,o.useContext)((0,p.l)()).renderPromises,this.useOptions(e);var r=this.useObservableQuery(),n=u((0,o.useCallback)(function(){if(t.renderPromises)return function(){};var e=function(){var e=t.result,n=r.getCurrentResult();e&&e.loading===n.loading&&e.networkStatus===n.networkStatus&&(0,d.L)(e.data,n.data)||t.setResult(n)},n=function(o){var a=r.last;i.unsubscribe();try{r.resetLastResults(),i=r.subscribe(e,n)}finally{r.last=a}if(!k.call(o,"graphQLErrors"))throw o;var s=t.result;(!s||s&&s.loading||!(0,d.L)(o,s.error))&&t.setResult({data:s&&s.data,error:o,loading:!1,networkStatus:m.p.error})},i=r.subscribe(e,n);return function(){return i.unsubscribe()}},[r,this.renderPromises,this.client.disableNetworkFetches]),function(){return t.getCurrentResult()},function(){return t.getCurrentResult()});this.unsafeHandlePartialRefetch(n);var i=this.toQueryResult(n);return!i.loading&&this.asyncResolveFns.size&&(this.asyncResolveFns.forEach(function(e){return e(i)}),this.asyncResolveFns.clear()),i},e.prototype.useOptions=function(t){var r,n=this.createWatchQueryOptions(this.queryHookOptions=t),i=this.watchQueryOptions;(this.optionsToIgnoreOnce.has(i)||!(0,d.L)(n,i))&&(this.watchQueryOptions=n,i&&this.observable&&(this.optionsToIgnoreOnce.delete(i),this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(r=this.result)||void 0===r?void 0:r.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,(this.renderPromises||this.client.disableNetworkFetches)&&!1===this.queryHookOptions.ssr&&!this.queryHookOptions.skip?this.result=this.ssrDisabledResult:this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:(this.result===this.ssrDisabledResult||this.result===this.skipStandbyResult)&&(this.result=void 0)},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push((0,b.o)(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(h.l)},e.prototype.createWatchQueryOptions=function(e){void 0===e&&(e={});var t,r=e.skip,i=Object.assign((e.ssr,e.onCompleted,e.onError,e.displayName,e.defaultOptions,(0,n.Tt)(e,["skip","ssr","onCompleted","onError","displayName","defaultOptions"])),{query:this.query});if(this.renderPromises&&("network-only"===i.fetchPolicy||"cache-and-network"===i.fetchPolicy)&&(i.fetchPolicy="cache-first"),i.variables||(i.variables={}),r){var o=i.fetchPolicy,a=void 0===o?this.getDefaultFetchPolicy():o,s=i.initialFetchPolicy;Object.assign(i,{initialFetchPolicy:void 0===s?a:s,fetchPolicy:"standby"})}else i.fetchPolicy||(i.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return i},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cache-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=(0,o.useMemo)(function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}},[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e)},e.prototype.handleErrorOrCompleted=function(e){!e.loading&&(e.error?this.onError(e.error):e.data&&this.onCompleted(e.data))},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var r=e.data,i=(e.partial,(0,n.Tt)(e,["data","partial"]));return this.toQueryResultCache.set(e,t=(0,n.Cl)((0,n.Cl)((0,n.Cl)({data:r},i),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&(0,w.E)(e.errors)&&(t.error=new f.K({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){e.partial&&this.queryHookOptions.partialRefetch&&!e.loading&&(!e.data||0===Object.keys(e.data).length)&&"cache-only"!==this.observable.options.fetchPolicy&&(Object.assign(e,{loading:!0,networkStatus:m.p.refetch}),this.observable.refetch())},e}()},13650:(e,t,r)=>{"use strict";r.d(t,{D$:()=>s,KG:()=>n});var n,i=r(92819);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(n||(n={}));var o=new Map;function a(e){var t;switch(e){case n.Query:t="Query";break;case n.Mutation:t="Mutation";break;case n.Subscription:t="Subscription"}return t}function s(e,t){var r=function(e){var t,r,a=o.get(e);if(a)return a;__DEV__?(0,i.V1)(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):(0,i.V1)(!!e&&!!e.kind,30);for(var s=[],l=[],u=[],c=[],d=0,h=e.definitions;d{"use strict";function n(e){return Array.isArray(e)&&e.length>0}r.d(t,{E:()=>n})},51360:(e,t,r)=>{"use strict";r.d(t,{En:()=>o,JR:()=>u,et:()=>i,ol:()=>a});var n=r(92819),i="function"==typeof WeakMap&&"ReactNative"!==(0,n.no)(function(){return navigator.product}),o="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,s="function"==typeof(0,n.no)(function(){return window.document.createElement}),l=(0,n.no)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,u=s&&!l},20906:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n=Object.prototype.toString;function i(e){return function e(t,r){switch(n.call(t)){case"[object Array]":if((r=r||new Map).has(t))return r.get(t);var i=t.slice(0);return r.set(t,i),i.forEach(function(t,n){i[n]=e(t,r)}),i;case"[object Object]":if((r=r||new Map).has(t))return r.get(t);var o=Object.create(Object.getPrototypeOf(t));return r.set(t,o),Object.keys(t).forEach(function(n){o[n]=e(t[n],r)}),o;default:return t}}(e)}},50492:(e,t,r)=>{"use strict";function n(){for(var e=[],t=0;tn})},21461:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},57236:(e,t,r)=>{"use strict";r.d(t,{G:()=>i}),r(92819);var n=r(21777);function i(e){if(__DEV__){var t;(t=new Set([e])).forEach(function(e){(0,n.U)(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){(0,n.U)(e[r])&&t.add(e[r])})})}return e}},30671:(e,t,r)=>{"use strict";r.d(t,{D9:()=>a,IM:()=>s,ZI:()=>u});var n=r(82051),i=r(21777),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t1)for(var n=new u,i=1;i{"use strict";r.d(t,{l:()=>o});var n=r(82051),i=r(50492);function o(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,n.Cl)((0,n.Cl)({},e&&e.variables),t.variables)})}},21777:(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,{U:()=>n})},92819:(e,t,r)=>{"use strict";r.d(t,{zU:()=>s,V1:()=>l,no:()=>h});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};Object.create,Object.create;var i="Invariant Violation",o=Object.setPrototypeOf,a=void 0===o?function(e,t){return e.__proto__=t,e}:o,s=function(e){function t(r){void 0===r&&(r=i);var n=e.call(this,"number"==typeof r?i+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=i,a(n,t.prototype),n}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(Error);function l(e,t){if(!e)throw new s(t)}var u=["debug","log","warn","error","silent"],c=u.indexOf("log");function d(e){return function(){if(u.indexOf(e)>=c)return(console[e]||console.log).apply(console,arguments)}}function h(e){try{return e()}catch(e){}}!function(e){e.debug=d("debug"),e.log=d("log"),e.warn=d("warn"),e.error=d("error")}(l||(l={}));let p=h(function(){return globalThis})||h(function(){return window})||h(function(){return self})||h(function(){return global})||h(function(){return h.constructor("return this")()});var f="__DEV__";let m=function(){try{return!!__DEV__}catch(e){return Object.defineProperty(p,f,{value:"production"!==h(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),p[f]}}();var g=r(39907);function v(e){try{return e()}catch(e){}}var y=v(function(){return globalThis})||v(function(){return window})||v(function(){return self})||v(function(){return global})||v(function(){return v.constructor("return this")()}),b=!1;!y||v(function(){return"production"})||v(function(){return g})||(Object.defineProperty(y,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),b=!0),r(47343).k,b&&(delete y.process,b=!1),__DEV__?l("boolean"==typeof m,m):l("boolean"==typeof m,36)},82307:(e,t,r)=>{"use strict";r.d(t,{MS:()=>o,d8:()=>a,f2:()=>s});var n=r(92819),i=r(90424);function o(e,t){var r,i=e.directives;return!i||!i.length||(r=[],i&&i.length&&i.forEach(function(e){var t;if(!("skip"!==(t=e.name.value)&&"include"!==t)){var i=e.arguments,o=e.name.value;__DEV__?(0,n.V1)(i&&1===i.length,"Incorrect number of arguments for the @".concat(o," directive.")):(0,n.V1)(i&&1===i.length,38);var a=i[0];__DEV__?(0,n.V1)(a.name&&"if"===a.name.value,"Invalid argument for the @".concat(o," directive.")):(0,n.V1)(a.name&&"if"===a.name.value,39);var s=a.value;__DEV__?(0,n.V1)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),"Argument for the @".concat(o," directive must be a variable or a boolean value.")):(0,n.V1)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),40),r.push({directive:e,ifArgument:a})}}),r).every(function(e){var r=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],__DEV__?(0,n.V1)(void 0!==o,"Invalid variable referenced in @".concat(r.name.value," directive.")):(0,n.V1)(void 0!==o,37)):o=i.value.value,"skip"===r.name.value?!o:o})}function a(e,t){var r;return(r=[],(0,i.YR)(t,{Directive:function(e){r.push(e.name.value)}}),r).some(function(t){return e.indexOf(t)>-1})}function s(e){return e&&a(["client"],e)&&a(["export"],e)}},2904:(e,t,r)=>{"use strict";r.d(t,{HQ:()=>s,JG:()=>a,ct:()=>o});var n=r(82051),i=r(92819);function o(e,t){var r=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new i.zU("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new i.zU(41);"FragmentDefinition"===e.kind&&o.push(e)}),void 0===r&&(__DEV__?(0,i.V1)(1===o.length,"Found ".concat(o.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,i.V1)(1===o.length,42),r=o[0].name.value),(0,n.Cl)((0,n.Cl)({},e),{definitions:(0,n.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function s(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=t&&t[e.name.value];return __DEV__?(0,i.V1)(r,"No fragment named ".concat(e.name.value,".")):(0,i.V1)(r,43),r;default:return null}}},3777:(e,t,r)=>{"use strict";r.d(t,{AT:()=>u,E4:()=>c,Vn:()=>d,Vu:()=>a,n4:()=>s,sw:()=>o,wY:()=>h,zK:()=>l});var n=r(92819),i=r(28907);function o(e){__DEV__?(0,n.V1)(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,n.V1)(e&&"Document"===e.kind,44);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new n.zU('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new n.zU(45);return e});return __DEV__?(0,n.V1)(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):(0,n.V1)(t.length<=1,46),e}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function l(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function u(e){var t=a(e);return __DEV__?(0,n.V1)(t&&"query"===t.operation,"Must contain a query definition."):(0,n.V1)(t&&"query"===t.operation,47),t}function c(e){__DEV__?(0,n.V1)("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,n.V1)("Document"===e.kind,48),__DEV__?(0,n.V1)(e.definitions.length<=1,"Fragment must have exactly one definition."):(0,n.V1)(e.definitions.length<=1,49);var t=e.definitions[0];return __DEV__?(0,n.V1)("FragmentDefinition"===t.kind,"Must be a fragment definition."):(0,n.V1)("FragmentDefinition"===t.kind,50),t}function d(e){o(e);for(var t,r=0,i=e.definitions;r{"use strict";r.d(t,{A_:()=>s,D$:()=>function e(t,r,n){if("string"==typeof t.__typename)return t.__typename;for(var i=0,a=r.selections;ic,J:()=>u,Kc:()=>l,MB:()=>m,WU:()=>a,dt:()=>v,kd:()=>y,o5:()=>h,ue:()=>g});var n=r(92819),i=r(21777),o=r(2904);function a(e){return{__ref:String(e)}}function s(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function l(e){return(0,i.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function u(e,t,r,i){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var o={};r.fields.map(function(e){return u(o,e.name,e.value,i)}),e[t.value]=o}else if("Variable"===r.kind){var a=(i||{})[r.name.value];e[t.value]=a}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return u(r,t,e,i),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw __DEV__?new n.zU('The inline argument "'.concat(t.value,'" of kind "').concat(r.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new n.zU(52)}function c(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,o=n.value;return u(r[e.name.value],i,o,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return u(n,r,i,t)})),h(e.name.value,n,r)}var d=["connection","include","skip","client","rest","export"],h=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(p(i),")")}var o=e;if(t){var a=p(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===d.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(p(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=p;return p=e,t}}),p=function(e){return JSON.stringify(e,f)};function f(e,t){return(0,i.U)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,r){return e[r]=t[r],e},{})),t}function m(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return u(r,e.name,e.value,t)}),r}return null}function g(e){return e.alias?e.alias.value:e.name.value}function v(e){return"Field"===e.kind}function y(e){return"InlineFragment"===e.kind}},65304:(e,t,r)=>{"use strict";r.d(t,{XY:()=>f,zc:()=>v,er:()=>y,hX:()=>g});var n=r(82051),i=r(92819),o=r(90424),a=r(3777);function s(e,t,r){var n=0;return e.forEach(function(r,i){t.call(this,r,i,e)&&(e[n++]=r)},r),e.length=n,e}var l=r(28907),u=r(2904),c={kind:"Field",name:{kind:"Name",value:"__typename"}};function d(e){return!function e(t,r){return t.selectionSet.selections.every(function(t){return"FragmentSpread"===t.kind&&e(r[t.name.value],r)})}((0,a.Vu)(e)||(0,a.E4)(e),(0,u.JG)((0,a.zK)(e)))?e:null}function h(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function p(e,t){var r,i,a,u=Object.create(null),c=[],p=Object.create(null),f=[],m=d((0,o.YR)(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(u[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some(function(e){return e.remove})&&t.directives&&t.directives.some(h(e)))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&c.push({name:e.value.name.value})}),t.selectionSet&&(function e(t){var r=[];return t.selections.forEach(function(t){((0,l.dt)(t)||(0,l.kd)(t))&&t.selectionSet?e(t.selectionSet).forEach(function(e){return r.push(e)}):"FragmentSpread"===t.kind&&r.push(t)}),r})(t.selectionSet).forEach(function(e){f.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){p[e.name.value]=!0}},Directive:{enter:function(t){if(h(e)(t))return null}}}));return m&&s(c,function(e){return!!e.name&&!u[e.name]}).length&&(r=c,i=m,a=function(e){return r.some(function(t){return e.value&&"Variable"===e.value.kind&&e.value.name&&(t.name===e.value.name.value||t.test&&t.test(e))})},m=d((0,o.YR)(i,{OperationDefinition:{enter:function(e){return(0,n.Cl)((0,n.Cl)({},e),{variableDefinitions:e.variableDefinitions?e.variableDefinitions.filter(function(e){return!r.some(function(t){return t.name===e.variable.name.value})}):[]})}},Field:{enter:function(e){if(r.some(function(e){return e.remove})){var t=0;if(e.arguments&&e.arguments.forEach(function(e){a(e)&&(t+=1)}),1===t)return null}}},Argument:{enter:function(e){if(a(e))return null}}}))),m&&s(f,function(e){return!!e.name&&!p[e.name]}).length&&(m=function(e,t){function r(t){if(e.some(function(e){return e.name===t.name.value}))return null}return d((0,o.YR)(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}(f,m)),m}var f=Object.assign(function(e){return(0,o.YR)(e,{SelectionSet:{enter:function(e,t,r){if(!r||"OperationDefinition"!==r.kind){var i=e.selections;if(!(!i||i.some(function(e){return(0,l.dt)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,l.dt)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,n.Cl)((0,n.Cl)({},e),{selections:(0,n.fX)((0,n.fX)([],i,!0),[c],!1)})}}}})},{added:function(e){return e===c}}),m={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||!e.arguments.some(function(e){return"key"===e.name.value}))&&__DEV__&&i.V1.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}};function g(e){return p([m],(0,a.sw)(e))}function v(e){return"query"===(0,a.Vn)(e).operation?e:(0,o.YR)(e,{OperationDefinition:{enter:function(e){return(0,n.Cl)((0,n.Cl)({},e),{operation:"query"})}}})}function y(e){(0,a.sw)(e);var t=p([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,o.YR)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return(0,l.dt)(e)&&"__typename"===e.name.value}))return null}}})),t}},97104:(e,t,r)=>{"use strict";r.d(t,{NB:()=>o});var n=r(82051),i=r(30671);function o(e){return void 0===e&&(e=!1),{keyArgs:e,read:function(e,t){var r=t.canRead,i=t.readField;if(!e)return e;var o=[],s="",l="";e.edges.forEach(function(e){r(i("node",e))&&(o.push(e),e.cursor&&(s=s||e.cursor||"",l=e.cursor||l))});var u=e.pageInfo||{},c=u.startCursor,d=u.endCursor;return(0,n.Cl)((0,n.Cl)({},a(e)),{edges:o,pageInfo:(0,n.Cl)((0,n.Cl)({},e.pageInfo),{startCursor:c||s,endCursor:d||l})})},merge:function(e,t,r){var o=r.args,s=r.isReference,l=r.readField;if(e||(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!t)return e;var u=t.edges?t.edges.map(function(e){return s(e=(0,n.Cl)({},e))&&(e.cursor=l("cursor",e)),e}):[];if(t.pageInfo){var c=t.pageInfo,d=c.startCursor,h=c.endCursor,p=u[0],f=u[u.length-1];p&&d&&(p.cursor=d),f&&h&&(f.cursor=h);var m=p&&p.cursor;m&&!d&&(t=(0,i.D9)(t,{pageInfo:{startCursor:m}}));var g=f&&f.cursor;g&&!h&&(t=(0,i.D9)(t,{pageInfo:{endCursor:g}}))}var v=e.edges,y=[];if(o&&o.after){var b=v.findIndex(function(e){return e.cursor===o.after});b>=0&&(v=v.slice(0,b+1))}else if(o&&o.before){var b=v.findIndex(function(e){return e.cursor===o.before});y=b<0?v:v.slice(b),v=[]}else t.edges&&(v=[]);var w=(0,n.fX)((0,n.fX)((0,n.fX)([],v,!0),u,!0),y,!0),k=(0,n.Cl)((0,n.Cl)({},t.pageInfo),e.pageInfo);if(t.pageInfo){var x=t.pageInfo,_=x.hasPreviousPage,S=x.hasNextPage,d=x.startCursor,h=x.endCursor;Object.assign(k,(0,n.Tt)(x,["hasPreviousPage","hasNextPage","startCursor","endCursor"])),v.length||(void 0!==_&&(k.hasPreviousPage=_),void 0===d||(k.startCursor=d)),y.length||(void 0!==S&&(k.hasNextPage=S),void 0===h||(k.endCursor=h))}return(0,n.Cl)((0,n.Cl)((0,n.Cl)({},a(e)),a(t)),{edges:w,pageInfo:k})}}}var a=function(e){return(0,n.Tt)(e,s)},s=["edges","pageInfo"]},24586:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{A:()=>n})},89575:(e,t,r)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;tn})},30796:(e,t,r)=>{"use strict";r.d(t,{IM:()=>l,K0:()=>s});var n=r(14041);let i=()=>{},o=n.Fragment?e=>e?e.length>1?(0,n.createElement)(n.Fragment,null,...e):n.Children.only(e):null:n.Children.only;class a extends n.PureComponent{constructor(...e){super(...e),this.t=!1,this.i=null,this.o=i}componentWillUnmount(){this.o()}u(e){e!==this.i&&(this.o(),this.i=null,e&&(this.i=e,this.o=e.on("updated",()=>this.forceUpdate())))}get allowed(){return this.t}l(){let e=this.props,t=e.of||e.a||e.an||e.this||e.on,r=e.not?"cannot":"can";return e.ability[r](e.I||e.do,t,e.field)}render(){return this.u(this.props.ability),this.t=this.l(),this.props.passThrough||this.t?this.h():null}h(){let{children:e,ability:t}=this.props;return o("function"==typeof e?e(this.t,t):e)}}function s(e){return t=>(0,n.createElement)(e,null,e=>(0,n.createElement)(a,Object.assign({ability:e},t)))}function l(e){let t=n.useContext(e),[r,i]=n.useState();return n.useEffect(()=>t.on("updated",e=>{e.rules!==r&&i(e.rules)}),[]),t}},58821:(e,t,r)=>{"use strict";r.d(t,{v:()=>c});var n=r(54947),i=r(47923),o=r(63552),a=r(60524),s=r(27559),l=r(11976),u=r(31085),c=(0,o.R)(function(e,t){let{className:r,motionProps:o,...c}=e,{reduceMotion:d}=(0,n.Dr)(),{getPanelProps:h,isOpen:p}=(0,i.AV)(),f=h(c,t),m=(0,l.cx)("chakra-accordion__panel",r),g=(0,i.EF)();d||delete f.hidden;let v=(0,u.jsx)(a.B.div,{...f,__css:g.panel,className:m});return d?v:(0,u.jsx)(s.S,{in:p,...o,children:v})});c.displayName="AccordionPanel"},54947:(e,t,r)=>{"use strict";r.d(t,{Dr:()=>d,If:()=>c,O3:()=>u,r9:()=>h});var n=r(47923),i=r(37754),o=r(58470),a=r(94800),s=r(11976),l=r(14041);function u(e){let{onChange:t,defaultIndex:r,index:i,allowMultiple:a,allowToggle:u,...c}=e;(function(e){let t=e.index||e.defaultIndex,r=null!=t&&!Array.isArray(t)&&e.allowMultiple;(0,s.R8)({condition:!!r,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})})(e),(0,s.R8)({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"});let d=(0,n.Of)(),[h,p]=(0,l.useState)(-1);(0,l.useEffect)(()=>()=>{p(-1)},[]);let[f,m]=(0,o.i)({value:i,defaultValue:()=>a?null!=r?r:[]:null!=r?r:-1,onChange:t});return{index:f,setIndex:m,htmlProps:c,getAccordionItemProps:e=>{let t=!1;return null!==e&&(t=Array.isArray(f)?f.includes(e):f===e),{isOpen:t,onChange:t=>{null!==e&&(a&&Array.isArray(f)?m(t?f.concat(e):f.filter(t=>t!==e)):t?m(e):u&&m(-1))}}},focusedIndex:h,setFocusedIndex:p,descendants:d}}var[c,d]=(0,i.q)({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function h(e){var t;let{isDisabled:r,isFocusable:i,id:o,...u}=e,{getAccordionItemProps:c,setFocusedIndex:h}=d(),p=(0,l.useRef)(null),f=(0,l.useId)(),m=null!=o?o:f,g=`accordion-button-${m}`,v=`accordion-panel-${m}`;(0,s.R8)({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. `});let{register:y,index:b,descendants:w}=(0,n.v3)({disabled:r&&!i}),{isOpen:k,onChange:x}=c(-1===b?null:b);t={isOpen:k,isDisabled:r},(0,s.R8)({condition:t.isOpen&&!!t.isDisabled,message:"Cannot open a disabled accordion item"});let _=(0,l.useCallback)(()=>{null==x||x(!k),h(b)},[b,h,k,x]),S=(0,l.useCallback)(e=>{let t={ArrowDown:()=>{let e=w.nextEnabled(b);null==e||e.node.focus()},ArrowUp:()=>{let e=w.prevEnabled(b);null==e||e.node.focus()},Home:()=>{let e=w.firstEnabled();null==e||e.node.focus()},End:()=>{let e=w.lastEnabled();null==e||e.node.focus()}}[e.key];t&&(e.preventDefault(),t(e))},[w,b]),E=(0,l.useCallback)(()=>{h(b)},[h,b]),C=(0,l.useCallback)(function(e={},t=null){return{...e,type:"button",ref:(0,a.Px)(y,p,t),id:g,disabled:!!r,"aria-expanded":!!k,"aria-controls":v,onClick:(0,s.Hj)(e.onClick,_),onFocus:(0,s.Hj)(e.onFocus,E),onKeyDown:(0,s.Hj)(e.onKeyDown,S)}},[g,r,k,_,E,S,v,y]),D=(0,l.useCallback)(function(e={},t=null){return{...e,ref:t,role:"region",id:v,"aria-labelledby":g,hidden:!k}},[g,k,v]);return{isOpen:k,isDisabled:r,isFocusable:i,onOpen:()=>{null==x||x(!0)},onClose:()=>{null==x||x(!1)},getButtonProps:C,getPanelProps:D,htmlProps:u}}},60353:(e,t,r)=>{"use strict";r.d(t,{n:()=>h});var n=r(54947),i=r(47923),o=r(63552),a=r(11403),s=r(74108),l=r(60524),u=r(11976),c=r(14041),d=r(31085),h=(0,o.R)(function({children:e,reduceMotion:t,...r},o){let h=(0,a.o5)("Accordion",r),p=(0,s.MN)(r),{htmlProps:f,descendants:m,...g}=(0,n.O3)(p),v=(0,c.useMemo)(()=>({...g,reduceMotion:!!t}),[g,t]);return(0,d.jsx)(i.C3,{value:m,children:(0,d.jsx)(n.If,{value:v,children:(0,d.jsx)(i.gm,{value:h,children:(0,d.jsx)(l.B.div,{ref:o,...f,className:(0,u.cx)("chakra-accordion",r.className),__css:h.root,children:e})})})})});h.displayName="Accordion"},14892:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(54947),i=r(47923),o=r(63552),a=r(60524),s=r(11976),l=r(14041),u=r(31085),c=(0,o.R)(function(e,t){let{children:r,className:o}=e,{htmlProps:c,...d}=(0,n.r9)(e),h={...(0,i.EF)().container,overflowAnchor:"none"},p=(0,l.useMemo)(()=>d,[d]);return(0,u.jsx)(i.TG,{value:p,children:(0,u.jsx)(a.B.div,{ref:t,...c,className:(0,s.cx)("chakra-accordion__item",o),__css:h,children:"function"==typeof r?r({isExpanded:!!d.isOpen,isDisabled:!!d.isDisabled}):r})})});c.displayName="AccordionItem"},84755:(e,t,r)=>{"use strict";r.d(t,{J:()=>l});var n=r(47923),i=r(63552),o=r(60524),a=r(11976),s=r(31085),l=(0,i.R)(function(e,t){let{getButtonProps:r}=(0,n.AV)(),i=r(e,t),l={display:"flex",alignItems:"center",width:"100%",outline:0,...(0,n.EF)().button};return(0,s.jsx)(o.B.button,{...i,className:(0,a.cx)("chakra-accordion__button",e.className),__css:l})});l.displayName="AccordionButton"},47923:(e,t,r)=>{"use strict";r.d(t,{AV:()=>l,C3:()=>u,EF:()=>a,Of:()=>d,TG:()=>s,gm:()=>o,v3:()=>h});var n=r(54371),i=r(37754),[o,a]=(0,i.q)({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[s,l]=(0,i.q)({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[u,c,d,h]=(0,n.D)()},37586:(e,t,r)=>{"use strict";r.d(t,{Q:()=>l});var n=r(54947),i=r(47923),o=r(69014),a=r(11976),s=r(31085);function l(e){let{isOpen:t,isDisabled:r}=(0,i.AV)(),{reduceMotion:l}=(0,n.Dr)(),u=(0,a.cx)("chakra-accordion__icon",e.className),c={opacity:r?.4:1,transform:t?"rotate(-180deg)":void 0,transition:l?void 0:"transform 0.2s",transformOrigin:"center",...(0,i.EF)().icon};return(0,s.jsx)(o.I,{viewBox:"0 0 24 24","aria-hidden":!0,className:u,__css:c,...e,children:(0,s.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}l.displayName="AccordionIcon"},90290:(e,t,r)=>{"use strict";r.d(t,{F:()=>c});var n=r(74775),i=r(11976),o=r(63552),a=r(74108),s=r(11403),l=r(60524),u=r(31085),c=(0,o.R)(function(e,t){var r;let{status:o="info",addRole:c=!0,...d}=(0,a.MN)(e),h=null!=(r=e.colorScheme)?r:(0,n.He)(o),p=(0,s.o5)("Alert",{...e,colorScheme:h}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...p.container};return(0,u.jsx)(n.Sw,{value:{status:o},children:(0,u.jsx)(n._N,{value:p,children:(0,u.jsx)(l.B.div,{"data-status":o,role:c?"alert":void 0,ref:t,...d,className:(0,i.cx)("chakra-alert",e.className),__css:f})})})});c.displayName="Alert"},69648:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});var n=r(74775),i=r(11976),o=r(60524),a=r(31085);function s(e){let{status:t}=(0,n.ZM)(),r=(0,n.cR)(t),s=(0,n.mC)(),l="loading"===t?s.spinner:s.icon;return(0,a.jsx)(o.B.span,{display:"inherit","data-status":t,...e,className:(0,i.cx)("chakra-alert__icon",e.className),__css:l,children:e.children||(0,a.jsx)(r,{h:"100%",w:"100%"})})}s.displayName="AlertIcon"},39761:(e,t,r)=>{"use strict";r.d(t,{T:()=>l});var n=r(74775),i=r(11976),o=r(63552),a=r(60524),s=r(31085),l=(0,o.R)(function(e,t){let r=(0,n.mC)(),{status:o}=(0,n.ZM)(),l={display:"inline",...r.description};return(0,s.jsx)(a.B.div,{ref:t,"data-status":o,...e,className:(0,i.cx)("chakra-alert__desc",e.className),__css:l})});l.displayName="AlertDescription"},84607:(e,t,r)=>{"use strict";r.d(t,{X:()=>l});var n=r(74775),i=r(11976),o=r(63552),a=r(60524),s=r(31085),l=(0,o.R)(function(e,t){let r=(0,n.mC)(),{status:o}=(0,n.ZM)();return(0,s.jsx)(a.B.div,{ref:t,"data-status":o,...e,className:(0,i.cx)("chakra-alert__title",e.className),__css:r.title})});l.displayName="AlertTitle"},74775:(e,t,r)=>{"use strict";r.d(t,{Sw:()=>l,_N:()=>c,He:()=>p,cR:()=>f,ZM:()=>u,mC:()=>d});var n=r(69014),i=r(31085);function o(e){return(0,i.jsx)(n.I,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var a=r(37754),s=r(43342),[l,u]=(0,a.q)({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[c,d]=(0,a.q)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),h={info:{icon:function(e){return(0,i.jsx)(n.I,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:o,colorScheme:"orange"},success:{icon:function(e){return(0,i.jsx)(n.I,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:o,colorScheme:"red"},loading:{icon:s.y,colorScheme:"blue"}};function p(e){return h[e].colorScheme}function f(e){return h[e].icon}},31595:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(48574),i=r(63552),o=r(11403),a=r(74108),s=r(60524),l=r(11976),u=r(76704),c=r(14041),d=r(31085),h=(0,i.R)(function(e,t){let r=(0,o.o5)("Avatar",e),{children:i,borderColor:h,max:p,spacing:f="-0.75rem",borderRadius:m="full",...g}=(0,a.MN)(e),v=(0,u.a)(i),y=null!=p?v.slice(0,p):v,b=null!=p?v.length-p:0,w=y.reverse().map((t,r)=>{var n;let i={marginEnd:0===r?0:f,size:e.size,borderColor:null!=(n=t.props.borderColor)?n:h,showBorder:!0};return(0,c.cloneElement)(t,function(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}(i))}),k={display:"flex",alignItems:"center",justifyContent:"flex-end",flexDirection:"row-reverse",...r.group},x={borderRadius:m,marginStart:f,...n.B,...r.excessLabel};return(0,d.jsxs)(s.B.div,{ref:t,role:"group",__css:k,...g,className:(0,l.cx)("chakra-avatar__group",e.className),children:[b>0&&(0,d.jsx)(s.B.span,{className:"chakra-avatar__excess",__css:x,children:`+${b}`}),w]})});h.displayName="AvatarGroup"},93428:(e,t,r)=>{"use strict";r.d(t,{N:()=>u});var n=r(18427),i=r(63552),o=r(60524),a=r(11976),s=r(31085),l={"top-start":{top:"0",insetStart:"0",transform:"translate(-25%, -25%)"},"top-end":{top:"0",insetEnd:"0",transform:"translate(25%, -25%)"},"bottom-start":{bottom:"0",insetStart:"0",transform:"translate(-25%, 25%)"},"bottom-end":{bottom:"0",insetEnd:"0",transform:"translate(25%, 25%)"}},u=(0,i.R)(function(e,t){let{placement:r="bottom-end",className:i,...u}=e,c=(0,n.X)(),d={position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",...l[r],...c.badge};return(0,s.jsx)(o.B.div,{ref:t,...u,className:(0,a.cx)("chakra-avatar__badge",i),__css:d})});u.displayName="AvatarBadge"},18427:(e,t,r)=>{"use strict";r.d(t,{X:()=>i,d:()=>n});var[n,i]=(0,r(37754).q)({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:""})},48574:(e,t,r)=>{"use strict";r.d(t,{e:()=>v,B:()=>g});var n=r(18427),i=r(60524),o=r(31085);function a(e){var t;let r=e.split(" "),n=null!=(t=r[0])?t:"",i=r.length>1?r[r.length-1]:"";return n&&i?`${n.charAt(0)}${i.charAt(0)}`:n.charAt(0)}function s(e){let{name:t,getInitials:r,...a}=e,s=(0,n.X)();return(0,o.jsx)(i.B.div,{role:"img","aria-label":t,...a,__css:s.label,children:t?null==r?void 0:r(t):null})}s.displayName="AvatarName";var l=e=>(0,o.jsxs)(i.B.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[(0,o.jsx)("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),(0,o.jsx)("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]}),u=r(39553),c=r(14041);function d(e){let{src:t,srcSet:r,onError:n,onLoad:a,getInitials:d,name:h,borderRadius:p,loading:f,iconLabel:m,icon:g=(0,o.jsx)(l,{}),ignoreFallback:v,referrerPolicy:y,crossOrigin:b}=e,w=(0,u.l)({src:t,onError:n,crossOrigin:b,ignoreFallback:v});return t&&"loaded"===w?(0,o.jsx)(i.B.img,{src:t,srcSet:r,alt:h,onLoad:a,referrerPolicy:y,crossOrigin:null!=b?b:void 0,className:"chakra-avatar__img",loading:f,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:p}}):h?(0,o.jsx)(s,{className:"chakra-avatar__initials",getInitials:d,name:h}):(0,c.cloneElement)(g,{role:"img","aria-label":m})}d.displayName="AvatarImage";var h=r(63552),p=r(11403),f=r(74108),m=r(11976),g={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},v=(0,h.R)((e,t)=>{let r=(0,p.o5)("Avatar",e),[s,u]=(0,c.useState)(!1),{src:h,srcSet:v,name:y,showBorder:b,borderRadius:w="full",onError:k,onLoad:x,getInitials:_=a,icon:S=(0,o.jsx)(l,{}),iconLabel:E=" avatar",loading:C,children:D,borderColor:A,ignoreFallback:j,crossOrigin:O,referrerPolicy:T,...P}=(0,f.MN)(e),R={borderRadius:w,borderWidth:b?"2px":void 0,...g,...r.container};return A&&(R.borderColor=A),(0,o.jsx)(i.B.span,{ref:t,...P,className:(0,m.cx)("chakra-avatar",e.className),"data-loaded":(0,m.sE)(s),__css:R,children:(0,o.jsxs)(n.d,{value:r,children:[(0,o.jsx)(d,{src:h,srcSet:v,loading:C,onLoad:(0,m.Hj)(x,()=>{u(!0)}),onError:k,getInitials:_,name:y,borderRadius:w,icon:S,iconLabel:E,ignoreFallback:j,crossOrigin:O,referrerPolicy:T}),D]})})});v.displayName="Avatar"},93372:(e,t,r)=>{"use strict";r.d(t,{a1:()=>a,bk:()=>o,fi:()=>i});var n=r(11976),i=Object.freeze(["base","sm","md","lg","xl","2xl"]);function o(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):(0,n.Gv)(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):null!=e?t(e):null}function a(e,t=i){let r={};return e.forEach((e,n)=>{let i=t[n];null!=e&&(r[i]=e)}),r}},9021:(e,t,r)=>{"use strict";r.d(t,{K:()=>s});var n=r(80853),i=r(63552),o=r(14041),a=r(31085),s=(0,i.R)((e,t)=>{let{icon:r,children:i,isRound:s,"aria-label":l,...u}=e,c=r||i,d=(0,o.isValidElement)(c)?(0,o.cloneElement)(c,{"aria-hidden":!0,focusable:!1}):null;return(0,a.jsx)(n.$,{padding:"0",borderRadius:s?"full":void 0,ref:t,"aria-label":l,...u,children:d})});s.displayName="IconButton"},74727:(e,t,r)=>{"use strict";r.d(t,{e:()=>d});var n=r(45825),i=r(63552),o=r(60524),a=r(11976),s=r(14041),l=r(31085),u={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},c={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},d=(0,i.R)(function(e,t){let{size:r,colorScheme:i,variant:d,className:h,spacing:p="0.5rem",isAttached:f,isDisabled:m,orientation:g="horizontal",...v}=e,y=(0,a.cx)("chakra-button__group",h),b=(0,s.useMemo)(()=>({size:r,colorScheme:i,variant:d,isDisabled:m}),[r,i,d,m]),w={display:"inline-flex",...f?u[g]:c[g](p)},k="vertical"===g;return(0,l.jsx)(n.l,{value:b,children:(0,l.jsx)(o.B.div,{ref:t,role:"group",__css:w,className:y,"data-attached":f?"":void 0,"data-orientation":g,flexDir:k?"column":void 0,...v})})});d.displayName="ButtonGroup"},45825:(e,t,r)=>{"use strict";r.d(t,{d:()=>i,l:()=>n});var[n,i]=(0,r(37754).q)({strict:!1,name:"ButtonGroupContext"})},80853:(e,t,r)=>{"use strict";r.d(t,{$:()=>m});var n=r(14041),i=r(45825),o=r(60524),a=r(11976),s=r(31085);function l(e){let{children:t,className:r,...i}=e,l=(0,n.isValidElement)(t)?(0,n.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,u=(0,a.cx)("chakra-button__icon",r);return(0,s.jsx)(o.B.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:u,children:l})}l.displayName="ButtonIcon";var u=r(43342);function c(e){let{label:t,placement:r,spacing:i="0.5rem",children:l=(0,s.jsx)(u.y,{color:"currentColor",width:"1em",height:"1em"}),className:c,__css:d,...h}=e,p=(0,a.cx)("chakra-button__spinner",c),f="start"===r?"marginEnd":"marginStart",m=(0,n.useMemo)(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[f]:t?i:0,fontSize:"1em",lineHeight:"normal",...d}),[d,t,f,i]);return(0,s.jsx)(o.B.div,{className:p,...h,__css:m,children:l})}c.displayName="ButtonSpinner";var d=r(94800),h=r(63552),p=r(11403),f=r(74108),m=(0,h.R)((e,t)=>{let r=(0,i.d)(),l=(0,p.Vl)("Button",{...r,...e}),{isDisabled:u=null==r?void 0:r.isDisabled,isLoading:h,isActive:m,children:v,leftIcon:y,rightIcon:b,loadingText:w,iconSpacing:k="0.5rem",type:x,spinner:_,spinnerPlacement:S="start",className:E,as:C,...D}=(0,f.MN)(e),A=(0,n.useMemo)(()=>{let e={...null==l?void 0:l._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...l,...!!r&&{_focus:e}}},[l,r]),{ref:j,type:O}=function(e){let[t,r]=(0,n.useState)(!e);return{ref:(0,n.useCallback)(e=>{e&&r("BUTTON"===e.tagName)},[]),type:t?"button":void 0}}(C),T={rightIcon:b,leftIcon:y,iconSpacing:k,children:v};return(0,s.jsxs)(o.B.button,{ref:(0,d.SV)(t,j),as:C,type:null!=x?x:O,"data-active":(0,a.sE)(m),"data-loading":(0,a.sE)(h),__css:A,className:(0,a.cx)("chakra-button",E),...D,disabled:u||h,children:[h&&"start"===S&&(0,s.jsx)(c,{className:"chakra-button__spinner--start",label:w,placement:"start",spacing:k,children:_}),h?w||(0,s.jsx)(o.B.span,{opacity:0,children:(0,s.jsx)(g,{...T})}):(0,s.jsx)(g,{...T}),h&&"end"===S&&(0,s.jsx)(c,{className:"chakra-button__spinner--end",label:w,placement:"end",spacing:k,children:_})]})});function g(e){let{leftIcon:t,rightIcon:r,children:n,iconSpacing:i}=e;return(0,s.jsxs)(s.Fragment,{children:[t&&(0,s.jsx)(l,{marginEnd:i,children:t}),n,r&&(0,s.jsx)(l,{marginStart:i,children:r})]})}m.displayName="Button"},89784:(e,t,r)=>{"use strict";r.d(t,{v:()=>h});var n=r(72675),i=r(34117),o=r(93006),a=r(2902),s=r(94800),l=r(11976),u=r(89072),c=r(25834),d=r(14041);function h(e={}){let{isDisabled:t,isReadOnly:r,isRequired:f,isInvalid:m,id:g,onBlur:v,onFocus:y,"aria-describedby":b}=(0,n.v)(e),{defaultChecked:w,isChecked:k,isFocusable:x,onChange:_,isIndeterminate:S,name:E,value:C,tabIndex:D,"aria-label":A,"aria-labelledby":j,"aria-invalid":O,...T}=e,P=function(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}(T,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),R=(0,a.c)(_),M=(0,a.c)(v),N=(0,a.c)(y),[F,I]=(0,d.useState)(!1),[L,B]=(0,d.useState)(!1),[z,U]=(0,d.useState)(!1),[q,H]=(0,d.useState)(!1);(0,d.useEffect)(()=>(0,c.Yy)(I),[]);let V=(0,d.useRef)(null),[$,W]=(0,d.useState)(!0),[Y,G]=(0,d.useState)(!!w),K=void 0!==k,X=K?k:Y,J=(0,d.useCallback)(e=>{if(r||t){e.preventDefault();return}K||(X?G(e.target.checked):G(!!S||e.target.checked)),null==R||R(e)},[r,t,X,K,S,R]);(0,i.U)(()=>{V.current&&(V.current.indeterminate=!!S)},[S]),(0,o.w)(()=>{t&&B(!1)},[t,B]),(0,i.U)(()=>{let e=V.current;if(!(null==e?void 0:e.form))return;let t=()=>{G(!!w)};return e.form.addEventListener("reset",t),()=>{var r;return null==(r=e.form)?void 0:r.removeEventListener("reset",t)}},[]);let Q=t&&!x,Z=(0,d.useCallback)(e=>{" "===e.key&&H(!0)},[H]),ee=(0,d.useCallback)(e=>{" "===e.key&&H(!1)},[H]);(0,i.U)(()=>{V.current&&V.current.checked!==X&&G(V.current.checked)},[V.current]);let et=(0,d.useCallback)((e={},n=null)=>({...e,ref:n,"data-active":(0,l.sE)(q),"data-hover":(0,l.sE)(z),"data-checked":(0,l.sE)(X),"data-focus":(0,l.sE)(L),"data-focus-visible":(0,l.sE)(L&&F),"data-indeterminate":(0,l.sE)(S),"data-disabled":(0,l.sE)(t),"data-invalid":(0,l.sE)(m),"data-readonly":(0,l.sE)(r),"aria-hidden":!0,onMouseDown:(0,l.Hj)(e.onMouseDown,e=>{L&&e.preventDefault(),H(!0)}),onMouseUp:(0,l.Hj)(e.onMouseUp,()=>H(!1)),onMouseEnter:(0,l.Hj)(e.onMouseEnter,()=>U(!0)),onMouseLeave:(0,l.Hj)(e.onMouseLeave,()=>U(!1))}),[q,X,t,L,F,z,S,m,r]),er=(0,d.useCallback)((e={},n=null)=>({...e,ref:n,"data-active":(0,l.sE)(q),"data-hover":(0,l.sE)(z),"data-checked":(0,l.sE)(X),"data-focus":(0,l.sE)(L),"data-focus-visible":(0,l.sE)(L&&F),"data-indeterminate":(0,l.sE)(S),"data-disabled":(0,l.sE)(t),"data-invalid":(0,l.sE)(m),"data-readonly":(0,l.sE)(r)}),[q,X,t,L,F,z,S,m,r]),en=(0,d.useCallback)((e={},r=null)=>({...P,...e,ref:(0,s.Px)(r,e=>{e&&W("LABEL"===e.tagName)}),onClick:(0,l.Hj)(e.onClick,()=>{var e;$||(null==(e=V.current)||e.click(),requestAnimationFrame(()=>{var e;null==(e=V.current)||e.focus({preventScroll:!0})}))}),"data-disabled":(0,l.sE)(t),"data-checked":(0,l.sE)(X),"data-invalid":(0,l.sE)(m)}),[P,t,X,m,$]),ei=(0,d.useCallback)((e={},n=null)=>({...e,ref:(0,s.Px)(V,n),type:"checkbox",name:E,value:C,id:g,tabIndex:D,onChange:(0,l.Hj)(e.onChange,J),onBlur:(0,l.Hj)(e.onBlur,M,()=>B(!1)),onFocus:(0,l.Hj)(e.onFocus,N,()=>B(!0)),onKeyDown:(0,l.Hj)(e.onKeyDown,Z),onKeyUp:(0,l.Hj)(e.onKeyUp,ee),required:f,checked:X,disabled:Q,readOnly:r,"aria-label":A,"aria-labelledby":j,"aria-invalid":O?!!O:m,"aria-describedby":b,"aria-disabled":t,style:u.f}),[E,C,g,J,M,N,Z,ee,f,X,Q,r,A,j,O,m,b,t,D]),eo=(0,d.useCallback)((e={},r=null)=>({...e,ref:r,onMouseDown:(0,l.Hj)(e.onMouseDown,p),"data-disabled":(0,l.sE)(t),"data-checked":(0,l.sE)(X),"data-invalid":(0,l.sE)(m)}),[X,t,m]);return{state:{isInvalid:m,isFocused:L,isChecked:X,isActive:q,isHovered:z,isIndeterminate:S,isDisabled:t,isReadOnly:r,isRequired:f},getRootProps:en,getCheckboxProps:et,getIndicatorProps:er,getInputProps:ei,getLabelProps:eo,htmlProps:P}}function p(e){e.preventDefault(),e.stopPropagation()}},88865:(e,t,r)=>{"use strict";r.d(t,{S:()=>x});var n=r(14041),[i,o]=(0,r(37754).q)({name:"CheckboxGroupContext",strict:!1}),a=r(60524),s=r(31085);function l(e){return(0,s.jsx)(a.B.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,s.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function u(e){return(0,s.jsx)(a.B.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,s.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function c(e){let{isIndeterminate:t,isChecked:r,...n}=e;return r||t?(0,s.jsx)(a.B.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,s.jsx)(t?u:l,{...n})}):null}var d=r(89784),h=r(11976),p=r(15428),f=r(63552),m=r(11403),g=r(74108),v={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},y={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},b=(0,p.i7)({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),w=(0,p.i7)({from:{opacity:0},to:{opacity:1}}),k=(0,p.i7)({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),x=(0,f.R)(function(e,t){let r=o(),i={...r,...e},l=(0,m.o5)("Checkbox",i),u=(0,g.MN)(e),{spacing:p="0.5rem",className:f,children:x,iconColor:_,iconSize:S,icon:E=(0,s.jsx)(c,{}),isChecked:C,isDisabled:D=null==r?void 0:r.isDisabled,onChange:A,inputProps:j,...O}=u,T=C;(null==r?void 0:r.value)&&u.value&&(T=r.value.includes(u.value));let P=A;(null==r?void 0:r.onChange)&&u.value&&(P=(0,h.OK)(r.onChange,A));let{state:R,getInputProps:M,getCheckboxProps:N,getLabelProps:F,getRootProps:I}=(0,d.v)({...O,isDisabled:D,isChecked:T,onChange:P}),L=function(e){let[t,r]=(0,n.useState)(e),[i,o]=(0,n.useState)(!1);return e!==t&&(o(!0),r(e)),i}(R.isChecked),B=(0,n.useMemo)(()=>({animation:L?R.isIndeterminate?`${w} 20ms linear, ${k} 200ms linear`:`${b} 200ms linear`:void 0,fontSize:S,color:_,...l.icon}),[_,S,L,R.isIndeterminate,l.icon]),z=(0,n.cloneElement)(E,{__css:B,isIndeterminate:R.isIndeterminate,isChecked:R.isChecked});return(0,s.jsxs)(a.B.label,{__css:{...y,...l.container},className:(0,h.cx)("chakra-checkbox",f),...I(),children:[(0,s.jsx)("input",{className:"chakra-checkbox__input",...M(j,t)}),(0,s.jsx)(a.B.span,{__css:{...v,...l.control},className:"chakra-checkbox__control",...N(),children:z}),x&&(0,s.jsx)(a.B.span,{className:"chakra-checkbox__label",...F(),__css:{marginStart:p,...l.label},children:x})]})});x.displayName="Checkbox"},64917:(e,t,r)=>{"use strict";r.d(t,{I:()=>s});var n=r(14041),i=r(11976),o=r(94800);function a(e){let{tagName:t,isContentEditable:r}=e.target;return"INPUT"!==t&&"TEXTAREA"!==t&&!0!==r}function s(e={}){let{ref:t,isDisabled:r,isFocusable:l,clickOnEnter:u=!0,clickOnSpace:c=!0,onMouseDown:d,onMouseUp:h,onClick:p,onKeyDown:f,onKeyUp:m,tabIndex:g,onMouseOver:v,onMouseLeave:y,...b}=e,[w,k]=(0,n.useState)(!0),[x,_]=(0,n.useState)(!1),S=function(){let e=(0,n.useRef)(new Map),t=e.current,r=(0,n.useCallback)((t,r,n,i)=>{e.current.set(n,{type:r,el:t,options:i}),t.addEventListener(r,n,i)},[]),i=(0,n.useCallback)((t,r,n,i)=>{t.removeEventListener(r,n,i),e.current.delete(n)},[]);return(0,n.useEffect)(()=>()=>{t.forEach((e,t)=>{i(e.el,e.type,t,e.options)})},[i,t]),{add:r,remove:i}}(),E=w?g:g||0,C=r&&!l,D=(0,n.useCallback)(e=>{if(r){e.stopPropagation(),e.preventDefault();return}e.currentTarget.focus(),null==p||p(e)},[r,p]),A=(0,n.useCallback)(e=>{x&&a(e)&&(e.preventDefault(),e.stopPropagation(),_(!1),S.remove(document,"keyup",A,!1))},[x,S]),j=(0,n.useCallback)(e=>{if(null==f||f(e),r||e.defaultPrevented||e.metaKey||!a(e.nativeEvent)||w)return;let t=u&&"Enter"===e.key;c&&" "===e.key&&(e.preventDefault(),_(!0)),t&&(e.preventDefault(),e.currentTarget.click()),S.add(document,"keyup",A,!1)},[r,w,f,u,c,S,A]),O=(0,n.useCallback)(e=>{null==m||m(e),!r&&!e.defaultPrevented&&!e.metaKey&&a(e.nativeEvent)&&!w&&c&&" "===e.key&&(e.preventDefault(),_(!1),e.currentTarget.click())},[c,w,r,m]),T=(0,n.useCallback)(e=>{0===e.button&&(_(!1),S.remove(document,"mouseup",T,!1))},[S]),P=(0,n.useCallback)(e=>{if(0===e.button){if(r){e.stopPropagation(),e.preventDefault();return}w||_(!0),e.currentTarget.focus({preventScroll:!0}),S.add(document,"mouseup",T,!1),null==d||d(e)}},[r,w,d,S,T]),R=(0,n.useCallback)(e=>{0===e.button&&(w||_(!1),null==h||h(e))},[h,w]),M=(0,n.useCallback)(e=>{if(r){e.preventDefault();return}null==v||v(e)},[r,v]),N=(0,n.useCallback)(e=>{x&&(e.preventDefault(),_(!1)),null==y||y(e)},[x,y]),F=(0,o.Px)(t,e=>{e&&"BUTTON"!==e.tagName&&k(!1)});return w?{...b,ref:F,type:"button","aria-disabled":C?void 0:r,disabled:C,onClick:D,onMouseDown:d,onMouseUp:h,onKeyUp:m,onKeyDown:f,onMouseOver:v,onMouseLeave:y}:{...b,ref:F,role:"button","data-active":(0,i.sE)(x),"aria-disabled":r?"true":void 0,tabIndex:C?void 0:E,onClick:D,onMouseDown:P,onMouseUp:R,onKeyUp:O,onKeyDown:j,onMouseOver:M,onMouseLeave:N}}},94259:(e,t,r)=>{"use strict";r.d(t,{J:()=>c});var n=r(69014),i=r(63552),o=r(11403),a=r(74108),s=r(60524),l=r(31085);function u(e){return(0,l.jsx)(n.I,{focusable:"false","aria-hidden":!0,...e,children:(0,l.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var c=(0,i.R)(function(e,t){let r=(0,o.Vl)("CloseButton",e),{children:n,isDisabled:i,__css:c,...d}=(0,a.MN)(e);return(0,l.jsx)(s.B.button,{type:"button","aria-label":"Close",ref:t,disabled:i,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r,...c},...d,children:n||(0,l.jsx)(u,{width:"1em",height:"1em"})})});c.displayName="CloseButton"},56824:(e,t,r)=>{"use strict";r.d(t,{G6:()=>o,Ig:()=>i,dU:()=>a});var n=r(14041),i=(0,n.createContext)({});function o(){let e=(0,n.useContext)(i);if(void 0===e)throw Error("useColorMode must be used within a ColorModeProvider");return e}function a(e,t){let{colorMode:r}=o();return"dark"===r?t:e}i.displayName="ColorModeContext"},54371:(e,t,r)=>{"use strict";r.d(t,{D:()=>y});var n=r(14041),i=Object.defineProperty,o=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,a=(e,t,r)=>(o(e,"symbol"!=typeof t?t+"":t,r),r);function s(e){return e.sort((e,t)=>{let r=e.compareDocumentPosition(t);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return -1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(!(r&Node.DOCUMENT_POSITION_DISCONNECTED)&&!(r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))return 0;throw Error("Cannot sort the given nodes.")})}var l=e=>"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function u(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function c(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var d="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,h=e=>e,p=class{constructor(){a(this,"descendants",new Map),a(this,"register",e=>{if(null!=e)return l(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),a(this,"unregister",e=>{this.descendants.delete(e);let t=s(Array.from(this.descendants.keys()));this.assignIndex(t)}),a(this,"destroy",()=>{this.descendants.clear()}),a(this,"assignIndex",e=>{this.descendants.forEach(t=>{let r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),a(this,"count",()=>this.descendants.size),a(this,"enabledCount",()=>this.enabledValues().length),a(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),a(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),a(this,"item",e=>{if(0!==this.count())return this.values()[e]}),a(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),a(this,"first",()=>this.item(0)),a(this,"firstEnabled",()=>this.enabledItem(0)),a(this,"last",()=>this.item(this.descendants.size-1)),a(this,"lastEnabled",()=>{let e=this.enabledValues().length-1;return this.enabledItem(e)}),a(this,"indexOf",e=>{var t,r;return e&&null!=(r=null==(t=this.descendants.get(e))?void 0:t.index)?r:-1}),a(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),a(this,"next",(e,t=!0)=>{let r=u(e,this.count(),t);return this.item(r)}),a(this,"nextEnabled",(e,t=!0)=>{let r=this.item(e);if(!r)return;let n=u(this.enabledIndexOf(r.node),this.enabledCount(),t);return this.enabledItem(n)}),a(this,"prev",(e,t=!0)=>{let r=c(e,this.count()-1,t);return this.item(r)}),a(this,"prevEnabled",(e,t=!0)=>{let r=this.item(e);if(!r)return;let n=c(this.enabledIndexOf(r.node),this.enabledCount()-1,t);return this.enabledItem(n)}),a(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;let r=s(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);let n={node:e,index:-1,...t};this.descendants.set(e,n),this.assignIndex(r)})}},f=r(37754),m=r(94800),[g,v]=(0,f.q)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function y(){return[h(g),()=>h(v()),()=>(function(){let e=(0,n.useRef)(new p);return d(()=>()=>e.current.destroy()),e.current})(),e=>(function(e){let t=v(),[r,i]=(0,n.useState)(-1),o=(0,n.useRef)(null);d(()=>()=>{o.current&&t.unregister(o.current)},[]),d(()=>{if(!o.current)return;let e=Number(o.current.dataset.index);r==e||Number.isNaN(e)||i(e)});let a=e?h(t.register(e)):h(t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:(0,m.Px)(a,o)}})(e)]}},88754:(e,t,r)=>{"use strict";function n(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function i(e){var t;if(!n(e))return!1;let r=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof r.HTMLElement}function o(e){var t,r;return null!=(r=null==(t=a(e))?void 0:t.defaultView)?r:window}function a(e){return n(e)?e.ownerDocument:document}function s(e){return a(e).activeElement}r.d(t,{bq:()=>s,mD:()=>o,sb:()=>i})},45886:(e,t,r)=>{"use strict";r.d(t,{AO:()=>s,tp:()=>a});var n=r(88754),i=e=>e.hasAttribute("tabindex"),o=e=>i(e)&&-1===e.tabIndex;function a(e){var t;if(!(0,n.sb)(e)||function e(t){return!!(t.parentElement&&e(t.parentElement))||t.hidden}(e)||!0==!!(t=e).getAttribute("disabled")||!0==!!t.getAttribute("aria-disabled"))return!1;let{localName:r}=e;if(["input","select","textarea","button"].indexOf(r)>=0)return!0;let o={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return r in o?o[r]():!!function(e){let t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||i(e)}function s(e){return!!e&&(0,n.sb)(e)&&a(e)&&!o(e)}},63343:(e,t,r)=>{"use strict";r.d(t,{ep:()=>o});var n=r(45886),i=e=>e.offsetWidth>0&&e.offsetHeight>0;function o(e){let t=Array.from(e.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"));return t.unshift(e),t.filter(e=>(0,n.tp)(e)&&i(e))}},41164:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});var n={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"}},31291:(e,t,r)=>{"use strict";r.d(t,{j:()=>u});var n=r(41164),i=r(57277),o=r(63552),a=r(60524),s=r(11976),l=r(31085),u=(0,o.R)(function(e,t){let{getInputProps:r}=(0,i.nE)(),o=(0,i.Gn)(),u=r(e,t),c=(0,s.cx)("chakra-editable__input",e.className);return(0,l.jsx)(a.B.input,{...u,__css:{outline:0,...n.s,...o.input},className:c})});u.displayName="EditableInput"},98029:(e,t,r)=>{"use strict";r.d(t,{F:()=>y});var n=r(10770),i=r(34117),o=r(93006),a=r(58470),s=r(94800),l=r(2902),u=r(11976),c=r(14041);function d(e,t){return!!e&&(e===t||e.contains(t))}var h=r(57277),p=r(63552),f=r(11403),m=r(74108),g=r(60524),v=r(31085),y=(0,p.R)(function(e,t){let r=(0,f.o5)("Editable",e),{htmlProps:p,...y}=function(e={}){let{onChange:t,onCancel:r,onSubmit:h,onBlur:p,value:f,isDisabled:m,defaultValue:g,startWithEditView:v,isPreviewFocusable:y=!0,submitOnBlur:b=!0,selectAllOnFocus:w=!0,placeholder:k,onEdit:x,finalFocusRef:_,...S}=e,E=(0,l.c)(x),C=!!(v&&!m),[D,A]=(0,c.useState)(C),[j,O]=(0,a.i)({defaultValue:g||"",value:f,onChange:t}),[T,P]=(0,c.useState)(j),R=(0,c.useRef)(null),M=(0,c.useRef)(null),N=(0,c.useRef)(null),F=(0,c.useRef)(null),I=(0,c.useRef)(null);(0,n.S)({ref:R,enabled:D,elements:[F,I]});let L=!D&&!m;(0,i.U)(()=>{var e,t;D&&(null==(e=R.current)||e.focus(),w&&(null==(t=R.current)||t.select()))},[]),(0,o.w)(()=>{var e,t,r,n;if(!D){_?null==(e=_.current)||e.focus():null==(t=N.current)||t.focus();return}null==(r=R.current)||r.focus(),w&&(null==(n=R.current)||n.select()),null==E||E()},[D,E,w]);let B=(0,c.useCallback)(()=>{L&&A(!0)},[L]),z=(0,c.useCallback)(()=>{P(j)},[j]),U=(0,c.useCallback)(()=>{A(!1),O(T),null==r||r(T),null==p||p(T)},[r,p,O,T]),q=(0,c.useCallback)(()=>{A(!1),P(j),null==h||h(j),null==p||p(T)},[j,h,p,T]);(0,c.useEffect)(()=>{if(D)return;let e=R.current;(null==e?void 0:e.ownerDocument.activeElement)===e&&(null==e||e.blur())},[D]);let H=(0,c.useCallback)(e=>{O(e.currentTarget.value)},[O]),V=(0,c.useCallback)(e=>{let t={Escape:U,Enter:e=>{e.shiftKey||e.metaKey||q()}}[e.key];t&&(e.preventDefault(),t(e))},[U,q]),$=(0,c.useCallback)(e=>{let t={Escape:U}[e.key];t&&(e.preventDefault(),t(e))},[U]),W=0===j.length,Y=(0,c.useCallback)(e=>{var t;if(!D)return;let r=e.currentTarget.ownerDocument,n=null!=(t=e.relatedTarget)?t:r.activeElement,i=d(F.current,n),o=d(I.current,n);i||o||(b?q():U())},[b,q,U,D]),G=(0,c.useCallback)((e={},t=null)=>{let r=L&&y?0:void 0;return{...e,ref:(0,s.Px)(t,M),children:W?k:j,hidden:D,"aria-disabled":(0,u.rq)(m),tabIndex:r,onFocus:(0,u.Hj)(e.onFocus,B,z)}},[m,D,L,y,W,B,z,k,j]),K=(0,c.useCallback)((e={},t=null)=>({...e,hidden:!D,placeholder:k,ref:(0,s.Px)(t,R),disabled:m,"aria-disabled":(0,u.rq)(m),value:j,onBlur:(0,u.Hj)(e.onBlur,Y),onChange:(0,u.Hj)(e.onChange,H),onKeyDown:(0,u.Hj)(e.onKeyDown,V),onFocus:(0,u.Hj)(e.onFocus,z)}),[m,D,Y,H,V,z,k,j]),X=(0,c.useCallback)((e={},t=null)=>({...e,hidden:!D,placeholder:k,ref:(0,s.Px)(t,R),disabled:m,"aria-disabled":(0,u.rq)(m),value:j,onBlur:(0,u.Hj)(e.onBlur,Y),onChange:(0,u.Hj)(e.onChange,H),onKeyDown:(0,u.Hj)(e.onKeyDown,$),onFocus:(0,u.Hj)(e.onFocus,z)}),[m,D,Y,H,$,z,k,j]),J=(0,c.useCallback)((e={},t=null)=>({"aria-label":"Edit",...e,type:"button",onClick:(0,u.Hj)(e.onClick,B),ref:(0,s.Px)(t,N),disabled:m}),[B,m]),Q=(0,c.useCallback)((e={},t=null)=>({...e,"aria-label":"Submit",ref:(0,s.Px)(I,t),type:"button",onClick:(0,u.Hj)(e.onClick,q),disabled:m}),[q,m]),Z=(0,c.useCallback)((e={},t=null)=>({"aria-label":"Cancel",id:"cancel",...e,ref:(0,s.Px)(F,t),type:"button",onClick:(0,u.Hj)(e.onClick,U),disabled:m}),[U,m]);return{isEditing:D,isDisabled:m,isValueEmpty:W,value:j,onEdit:B,onCancel:U,onSubmit:q,getPreviewProps:G,getInputProps:K,getTextareaProps:X,getEditButtonProps:J,getSubmitButtonProps:Q,getCancelButtonProps:Z,htmlProps:S}}((0,m.MN)(e)),{isEditing:b,onSubmit:w,onCancel:k,onEdit:x}=y,_=(0,u.cx)("chakra-editable",e.className),S=(0,u.Jg)(e.children,{isEditing:b,onSubmit:w,onCancel:k,onEdit:x});return(0,v.jsx)(h.qC,{value:y,children:(0,v.jsx)(h.mp,{value:r,children:(0,v.jsx)(g.B.div,{ref:t,...p,className:_,children:S})})})});y.displayName="Editable"},85774:(e,t,r)=>{"use strict";r.d(t,{l:()=>u});var n=r(41164),i=r(57277),o=r(63552),a=r(60524),s=r(11976),l=r(31085),u=(0,o.R)(function(e,t){let{getPreviewProps:r}=(0,i.nE)(),o=(0,i.Gn)(),u=r(e,t),c=(0,s.cx)("chakra-editable__preview",e.className);return(0,l.jsx)(a.B.span,{...u,__css:{cursor:"text",display:"inline-block",...n.s,...o.preview},className:c})});u.displayName="EditablePreview"},57277:(e,t,r)=>{"use strict";r.d(t,{Gn:()=>o,mp:()=>i,nE:()=>s,qC:()=>a});var n=r(37754),[i,o]=(0,n.q)({name:"EditableStylesContext",errorMessage:"useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[a,s]=(0,n.q)({name:"EditableContext",errorMessage:"useEditableContext: context is undefined. Seems you forgot to wrap the editable components in ``"})},72675:(e,t,r)=>{"use strict";r.d(t,{t:()=>o,v:()=>a});var n=r(49547),i=r(11976);function o(e){let{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...s}=a(e);return{...s,disabled:t,readOnly:n,required:o,"aria-invalid":(0,i.rq)(r),"aria-required":(0,i.rq)(o),"aria-readonly":(0,i.rq)(n)}}function a(e){var t,r,o;let a=(0,n.Uc)(),{id:s,disabled:l,readOnly:u,required:c,isRequired:d,isInvalid:h,isReadOnly:p,isDisabled:f,onFocus:m,onBlur:g,...v}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==a?void 0:a.hasFeedbackText)&&(null==a?void 0:a.isInvalid)&&y.push(a.feedbackId),(null==a?void 0:a.hasHelpText)&&y.push(a.helpTextId),{...v,"aria-describedby":y.join(" ")||void 0,id:null!=s?s:null==a?void 0:a.id,isDisabled:null!=(t=null!=l?l:f)?t:null==a?void 0:a.isDisabled,isReadOnly:null!=(r=null!=u?u:p)?r:null==a?void 0:a.isReadOnly,isRequired:null!=(o=null!=c?c:d)?o:null==a?void 0:a.isRequired,isInvalid:null!=h?h:null==a?void 0:a.isInvalid,onFocus:(0,i.Hj)(null==a?void 0:a.onFocus,m),onBlur:(0,i.Hj)(null==a?void 0:a.onBlur,g)}}},49547:(e,t,r)=>{"use strict";r.d(t,{MJ:()=>g,TP:()=>p,Uc:()=>m});var n=r(37754),i=r(94800),o=r(63552),a=r(11403),s=r(74108),l=r(60524),u=r(11976),c=r(14041),d=r(31085),[h,p]=(0,n.q)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[f,m]=(0,n.q)({strict:!1,name:"FormControlContext"}),g=(0,o.R)(function(e,t){let r=(0,a.o5)("Form",e),{getRootProps:n,htmlProps:o,...p}=function(e){let{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:a,...s}=e,l=(0,c.useId)(),d=t||`field-${l}`,h=`${d}-label`,p=`${d}-feedback`,f=`${d}-helptext`,[m,g]=(0,c.useState)(!1),[v,y]=(0,c.useState)(!1),[b,w]=(0,c.useState)(!1),k=(0,c.useCallback)((e={},t=null)=>({id:f,...e,ref:(0,i.Px)(t,e=>{e&&y(!0)})}),[f]),x=(0,c.useCallback)((e={},t=null)=>({...e,ref:t,"data-focus":(0,u.sE)(b),"data-disabled":(0,u.sE)(o),"data-invalid":(0,u.sE)(n),"data-readonly":(0,u.sE)(a),id:void 0!==e.id?e.id:h,htmlFor:void 0!==e.htmlFor?e.htmlFor:d}),[d,o,b,n,a,h]),_=(0,c.useCallback)((e={},t=null)=>({id:p,...e,ref:(0,i.Px)(t,e=>{e&&g(!0)}),"aria-live":"polite"}),[p]),S=(0,c.useCallback)((e={},t=null)=>({...e,...s,ref:t,role:"group","data-focus":(0,u.sE)(b),"data-disabled":(0,u.sE)(o),"data-invalid":(0,u.sE)(n),"data-readonly":(0,u.sE)(a)}),[s,o,b,n,a]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!a,isDisabled:!!o,isFocused:!!b,onFocus:()=>w(!0),onBlur:()=>w(!1),hasFeedbackText:m,setHasFeedbackText:g,hasHelpText:v,setHasHelpText:y,id:d,labelId:h,feedbackId:p,helpTextId:f,htmlProps:s,getHelpTextProps:k,getErrorMessageProps:_,getRootProps:S,getLabelProps:x,getRequiredIndicatorProps:(0,c.useCallback)((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}),[])}}((0,s.MN)(e)),m=(0,u.cx)("chakra-form-control",e.className);return(0,d.jsx)(f,{value:p,children:(0,d.jsx)(h,{value:r,children:(0,d.jsx)(l.B.div,{...n({},t),className:m,__css:r.container})})})});g.displayName="FormControl",(0,o.R)(function(e,t){let r=m(),n=p(),i=(0,u.cx)("chakra-form__helper-text",e.className);return(0,d.jsx)(l.B.div,{...null==r?void 0:r.getHelpTextProps(e,t),__css:n.helperText,className:i})}).displayName="FormHelperText"},22218:(e,t,r)=>{"use strict";r.d(t,{l:()=>c});var n=r(49547),i=r(63552),o=r(11403),a=r(74108),s=r(60524),l=r(11976),u=r(31085),c=(0,i.R)(function(e,t){var r;let i=(0,o.Vl)("FormLabel",e),c=(0,a.MN)(e),{className:h,children:p,requiredIndicator:f=(0,u.jsx)(d,{}),optionalIndicator:m=null,...g}=c,v=(0,n.Uc)(),y=null!=(r=null==v?void 0:v.getLabelProps(g,t))?r:{ref:t,...g};return(0,u.jsxs)(s.B.label,{...y,className:(0,l.cx)("chakra-form__label",c.className),__css:{display:"block",textAlign:"start",...i},children:[p,(null==v?void 0:v.isRequired)?f:m]})});c.displayName="FormLabel";var d=(0,i.R)(function(e,t){let r=(0,n.Uc)(),i=(0,n.TP)();if(!(null==r?void 0:r.isRequired))return null;let o=(0,l.cx)("chakra-form__required-indicator",e.className);return(0,u.jsx)(s.B.span,{...null==r?void 0:r.getRequiredIndicatorProps(e,t),__css:i.requiredIndicator,className:o})});d.displayName="RequiredIndicator"},10322:(e,t,r)=>{"use strict";r.d(t,{Bi:()=>i});var n=r(14041);function i(e,t){let r=(0,n.useId)();return(0,n.useMemo)(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}},78141:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(14041),i=(e,t)=>{let r=(0,n.useRef)(!1),i=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(r.current&&i.current)return e();i.current=!0},t),(0,n.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[])}},33023:(e,t,r)=>{"use strict";r.d(t,{j:()=>s});var n=r(10322),i=r(14041),o=r(93018),a=r(7499);function s(e={}){let{onClose:t,onOpen:r,isOpen:l,id:u}=e,c=(0,o.c)(r),d=(0,o.c)(t),[h,p]=(0,i.useState)(e.defaultIsOpen||!1),[f,m]=function(e,t){let r=void 0!==e;return[r,r&&void 0!==e?e:t]}(l,h),g=(0,n.Bi)(u,"disclosure"),v=(0,i.useCallback)(()=>{f||p(!1),null==d||d()},[f,d]),y=(0,i.useCallback)(()=>{f||p(!0),null==c||c()},[f,c]),b=(0,i.useCallback)(()=>{(m?v:y)()},[m,y,v]);return{isOpen:!!m,onOpen:y,onClose:v,onToggle:b,isControlled:f,getButtonProps:(e={})=>({...e,"aria-expanded":m,"aria-controls":g,onClick:(0,a.Hj)(e.onClick,b)}),getDisclosureProps:(e={})=>({...e,hidden:!m,id:g})}}},92668:(e,t,r)=>{"use strict";r.d(t,{M:()=>a});var n=r(93018),i=r(7499),o=r(14041);function a(e,t,r,a){let s=(0,n.c)(t);return(0,o.useEffect)(()=>{var n;let o=null!=(n=(0,i.Jg)(r))?n:document;if(t)return o.addEventListener(e,s,a),()=>{o.removeEventListener(e,s,a)}},[e,r,a,s,t]),()=>{var t;(null!=(t=(0,i.Jg)(r))?t:document).removeEventListener(e,s,a)}}},51416:(e,t,r)=>{"use strict";r.d(t,{S:()=>i});var n=r(14041);function i(...e){return(0,n.useMemo)(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{e&&function(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(r){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}}(e,t)})},e)}},93018:(e,t,r)=>{"use strict";r.d(t,{c:()=>a});var n=r(81313),i=r(14041),o=n.Bd?i.useLayoutEffect:i.useEffect;function a(e,t=[]){let r=(0,i.useRef)(e);return o(()=>{r.current=e}),(0,i.useCallback)((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)},t)}},78872:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n=r(14041),i=r(40200);function o(e,t={}){let[r,a]=(0,n.useState)(!1),[s,l]=(0,n.useState)(e);(0,n.useEffect)(()=>l(e),[e]);let{timeout:u=1500,...c}="number"==typeof t?{timeout:t}:t,d=(0,n.useCallback)(()=>{a(i(s,c))},[s,c]);return(0,n.useEffect)(()=>{let e=null;return r&&(e=window.setTimeout(()=>{a(!1)},u)),()=>{e&&window.clearTimeout(e)}},[u,r]),{value:s,setValue:l,onCopy:d,hasCopied:r}}},31201:(e,t,r)=>{"use strict";r.d(t,{j:()=>a});var n=r(93018),i=r(81313),o=r(14041);function a(e){let{ref:t,handler:r,enabled:a=!0}=e,l=(0,n.c)(r),u=(0,o.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,o.useEffect)(()=>{if(!a)return;let e=e=>{s(e,t)&&(u.isPointerDown=!0)},n=e=>{if(u.ignoreEmulatedMouseEvents){u.ignoreEmulatedMouseEvents=!1;return}u.isPointerDown&&r&&s(e,t)&&(u.isPointerDown=!1,l(e))},o=e=>{u.ignoreEmulatedMouseEvents=!0,r&&u.isPointerDown&&s(e,t)&&(u.isPointerDown=!1,l(e))},c=(0,i.TW)(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",n,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",o,!0),()=>{c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",n,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",o,!0)}},[r,t,l,u,a])}function s(e,t){var r;let n=e.target;return(!n||!!(0,i.TW)(n).contains(n))&&!(null==(r=t.current)?void 0:r.contains(n))}},69014:(e,t,r)=>{"use strict";r.d(t,{I:()=>u});var n=r(63552),i=r(11403),o=r(60524),a=r(11976),s=r(31085),l={path:(0,s.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,s.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,s.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,s.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},u=(0,n.R)((e,t)=>{let{as:r,viewBox:n,color:u="currentColor",focusable:c=!1,children:d,className:h,__css:p,...f}=e,m=(0,a.cx)("chakra-icon",h),g=(0,i.Vl)("Icon",e),v={ref:t,focusable:c,className:m,__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:u,...p,...g}},y=null!=n?n:l.viewBox;if(r&&"string"!=typeof r)return(0,s.jsx)(o.B.svg,{as:r,...v,...f});let b=null!=d?d:l.path;return(0,s.jsx)(o.B.svg,{verticalAlign:"middle",viewBox:y,...v,...f,children:b})});u.displayName="Icon"},69237:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var n=r(16003),i=r(31085),o=(0,n.w)({displayName:"ExternalLinkIcon",path:(0,i.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[(0,i.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,i.jsx)("path",{d:"M15 3h6v6"}),(0,i.jsx)("path",{d:"M10 14L21 3"})]})})},23970:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});var n=(0,r(16003).w)({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})},3091:(e,t,r)=>{"use strict";r.d(t,{v:()=>n});var n=(0,r(16003).w)({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"})},76228:(e,t,r)=>{"use strict";r.d(t,{S:()=>o});var n=r(16003),i=r(31085),o=(0,n.w)({viewBox:"0 0 14 14",path:(0,i.jsx)("g",{fill:"currentColor",children:(0,i.jsx)("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})})},11718:(e,t,r)=>{"use strict";r.d(t,{D:()=>n});var n=(0,r(16003).w)({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})},20931:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});var n=(0,r(16003).w)({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"})},65352:(e,t,r)=>{"use strict";r.d(t,{Y:()=>n});var n=(0,r(16003).w)({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"})},16003:(e,t,r)=>{"use strict";r.d(t,{w:()=>d});var n=r(63552),i=r(11403),o=r(60524),a=r(11976),s=r(31085),l={path:(0,s.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,s.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,s.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,s.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},u=(0,n.R)((e,t)=>{let{as:r,viewBox:n,color:u="currentColor",focusable:c=!1,children:d,className:h,__css:p,...f}=e,m=(0,a.cx)("chakra-icon",h),g=(0,i.Vl)("Icon",e),v={ref:t,focusable:c,className:m,__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:u,...p,...g}},y=null!=n?n:l.viewBox;if(r&&"string"!=typeof r)return(0,s.jsx)(o.B.svg,{as:r,...v,...f});let b=null!=d?d:l.path;return(0,s.jsx)(o.B.svg,{verticalAlign:"middle",viewBox:y,...v,...f,children:b})});u.displayName="Icon";var c=r(14041);function d(e){let{viewBox:t="0 0 24 24",d:r,displayName:i,defaultProps:o={}}=e,a=c.Children.toArray(e.path),l=(0,n.R)((e,n)=>(0,s.jsx)(u,{ref:n,viewBox:t,...o,...e,children:a.length?a:(0,s.jsx)("path",{fill:"currentColor",d:r})}));return l.displayName=i,l}},18651:(e,t,r)=>{"use strict";r.d(t,{_:()=>l});var n=r(63552),i=r(31085),o=(0,n.R)(function(e,t){let{htmlWidth:r,htmlHeight:n,alt:o,...a}=e;return(0,i.jsx)("img",{width:r,height:n,ref:t,alt:o,...a})});o.displayName="NativeImage";var a=r(39553),s=r(60524),l=(0,n.R)(function(e,t){let{fallbackSrc:r,fallback:n,src:l,srcSet:u,align:c,fit:d,loading:h,ignoreFallback:p,crossOrigin:f,fallbackStrategy:m="beforeLoadOrError",referrerPolicy:g,...v}=e,y=void 0!==r||void 0!==n,b=null!=h||p||!y,w=(0,a.l)({...e,crossOrigin:f,ignoreFallback:b}),k=(0,a.m)(w,m),x={ref:t,objectFit:d,objectPosition:c,...b?v:function(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}(v,["onError","onLoad"])};return k?n||(0,i.jsx)(s.B.img,{as:o,className:"chakra-image__placeholder",src:r,...x}):(0,i.jsx)(s.B.img,{as:o,src:l,srcSet:u,crossOrigin:f,loading:h,referrerPolicy:g,className:"chakra-image",...x})});l.displayName="Image"},39553:(e,t,r)=>{"use strict";r.d(t,{l:()=>o,m:()=>a});var n=r(34117),i=r(14041);function o(e){let{loading:t,src:r,srcSet:o,onLoad:a,onError:s,crossOrigin:l,sizes:u,ignoreFallback:c}=e,[d,h]=(0,i.useState)("pending");(0,i.useEffect)(()=>{h(r?"loading":"pending")},[r]);let p=(0,i.useRef)(),f=(0,i.useCallback)(()=>{if(!r)return;m();let e=new Image;e.src=r,l&&(e.crossOrigin=l),o&&(e.srcset=o),u&&(e.sizes=u),t&&(e.loading=t),e.onload=e=>{m(),h("loaded"),null==a||a(e)},e.onerror=e=>{m(),h("failed"),null==s||s(e)},p.current=e},[r,l,o,u,a,s,t]),m=()=>{p.current&&(p.current.onload=null,p.current.onerror=null,p.current=null)};return(0,n.U)(()=>{if(!c)return"loading"===d&&f(),()=>{m()}},[d,f,c]),c?"loaded":d}var a=(e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t},35436:(e,t,r)=>{"use strict";r.d(t,{W:()=>c,t:()=>d});var n=r(76166),i=r(60524),o=r(63552),a=r(11976),s=r(31085),l=(0,i.B)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),u=(0,o.R)(function(e,t){var r,i;let{placement:o="left",...a}=e,u=(0,n.Z)(),c=u.field,d={["left"===o?"insetStart":"insetEnd"]:"0",width:null!=(r=null==c?void 0:c.height)?r:null==c?void 0:c.h,height:null!=(i=null==c?void 0:c.height)?i:null==c?void 0:c.h,fontSize:null==c?void 0:c.fontSize,...u.element};return(0,s.jsx)(l,{ref:t,__css:d,...a})});u.id="InputElement",u.displayName="InputElement";var c=(0,o.R)(function(e,t){let{className:r,...n}=e,i=(0,a.cx)("chakra-input__left-element",r);return(0,s.jsx)(u,{ref:t,placement:"left",className:i,...n})});c.id="InputLeftElement",c.displayName="InputLeftElement";var d=(0,o.R)(function(e,t){let{className:r,...n}=e,i=(0,a.cx)("chakra-input__right-element",r);return(0,s.jsx)(u,{ref:t,placement:"right",className:i,...n})});d.id="InputRightElement",d.displayName="InputRightElement"},20671:(e,t,r)=>{"use strict";r.d(t,{p:()=>c});var n=r(72675),i=r(63552),o=r(11403),a=r(74108),s=r(60524),l=r(11976),u=r(31085),c=(0,i.R)(function(e,t){let{htmlSize:r,...i}=e,c=(0,o.o5)("Input",i),d=(0,a.MN)(i),h=(0,n.t)(d),p=(0,l.cx)("chakra-input",e.className);return(0,u.jsx)(s.B.input,{size:r,...h,__css:c.field,ref:t,className:p})});c.displayName="Input",c.id="Input"},22938:(e,t,r)=>{"use strict";r.d(t,{r0:()=>h});var n=r(76166),i=r(60524),o=r(63552),a=r(11976),s=r(31085),l={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},u=(0,i.B)("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),c=(0,o.R)(function(e,t){var r;let{placement:i="left",...o}=e,a=null!=(r=l[i])?r:{},c=(0,n.Z)();return(0,s.jsx)(u,{ref:t,...o,__css:{...c.addon,...a}})});c.displayName="InputAddon";var d=(0,o.R)(function(e,t){return(0,s.jsx)(c,{ref:t,placement:"left",...e,className:(0,a.cx)("chakra-input__left-addon",e.className)})});d.displayName="InputLeftAddon",d.id="InputLeftAddon";var h=(0,o.R)(function(e,t){return(0,s.jsx)(c,{ref:t,placement:"right",...e,className:(0,a.cx)("chakra-input__right-addon",e.className)})});h.displayName="InputRightAddon",h.id="InputRightAddon"},76166:(e,t,r)=>{"use strict";r.d(t,{M:()=>m,Z:()=>f});var n=r(37754),i=r(76704),o=r(63552),a=r(11403),s=r(74108),l=r(60524),u=r(11976),c=r(77479),d=r(14041),h=r(31085),[p,f]=(0,n.q)({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),m=(0,o.R)(function(e,t){let r=(0,a.o5)("Input",e),{children:n,className:o,...f}=(0,s.MN)(e),m=(0,u.cx)("chakra-input__group",o),g={},v=(0,i.a)(n),y=r.field;v.forEach(e=>{var t,n;r&&(y&&"InputLeftElement"===e.type.id&&(g.paddingStart=null!=(t=y.height)?t:y.h),y&&"InputRightElement"===e.type.id&&(g.paddingEnd=null!=(n=y.height)?n:y.h),"InputRightAddon"===e.type.id&&(g.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(g.borderStartRadius=0))});let b=v.map(t=>{var r,n;let i=(0,c.o)({size:(null==(r=t.props)?void 0:r.size)||e.size,variant:(null==(n=t.props)?void 0:n.variant)||e.variant});return"Input"!==t.type.id?(0,d.cloneElement)(t,i):(0,d.cloneElement)(t,Object.assign(i,g,t.props))});return(0,h.jsx)(l.B.div,{className:m,ref:t,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...f,children:(0,h.jsx)(p,{value:r,children:b})})});m.displayName="InputGroup"},61778:(e,t,r)=>{"use strict";r.d(t,{E:()=>c});var n=r(63552),i=r(11403),o=r(74108),a=r(60524),s=r(11976),l=r(77479),u=r(31085),c=(0,n.R)(function(e,t){let r=(0,i.Vl)("Text",e),{className:n,align:c,decoration:d,casing:h,...p}=(0,o.MN)(e),f=(0,l.o)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,u.jsx)(a.B.p,{ref:t,className:(0,s.cx)("chakra-text",e.className),...f,...p,__css:r})});c.displayName="Text"},62313:(e,t,r)=>{"use strict";r.d(t,{z:()=>a});var n=r(35687),i=r(63552),o=r(31085),a=(0,i.R)((e,t)=>(0,o.jsx)(n.B,{align:"center",...e,direction:"row",ref:t}));a.displayName="HStack"},85146:(e,t,r)=>{"use strict";r.d(t,{B8:()=>p,Xy:()=>f,ck:()=>m});var n=r(69014),i=r(37754),o=r(76704),a=r(63552),s=r(11403),l=r(74108),u=r(60524),c=r(31085),[d,h]=(0,i.q)({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),p=(0,a.R)(function(e,t){let r=(0,s.o5)("List",e),{children:n,styleType:i="none",stylePosition:a,spacing:h,...p}=(0,l.MN)(e),f=(0,o.a)(n);return(0,c.jsx)(d,{value:r,children:(0,c.jsx)(u.B.ul,{ref:t,listStyleType:i,listStylePosition:a,role:"list",__css:{...r.container,...h?{"& > *:not(style) ~ *:not(style)":{mt:h}}:{}},...p,children:f})})});p.displayName="List",(0,a.R)((e,t)=>{let{as:r,...n}=e;return(0,c.jsx)(p,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})}).displayName="OrderedList";var f=(0,a.R)(function(e,t){let{as:r,...n}=e;return(0,c.jsx)(p,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...n})});f.displayName="UnorderedList";var m=(0,a.R)(function(e,t){let r=h();return(0,c.jsx)(u.B.li,{ref:t,...e,__css:r.item})});m.displayName="ListItem",(0,a.R)(function(e,t){let r=h();return(0,c.jsx)(n.I,{ref:t,role:"presentation",...e,__css:r.icon})}).displayName="ListIcon"},28478:(e,t,r)=>{"use strict";r.d(t,{B:()=>l,Q:()=>u});var n=r(11976),i=r(63552),o=r(60524),a=r(14041),s=r(31085),l=(0,i.R)(function(e,t){let{spacing:r="0.5rem",spacingX:i,spacingY:l,children:c,justify:d,direction:h,align:p,className:f,shouldWrapChildren:m,...g}=e,v=(0,a.useMemo)(()=>m?a.Children.map(c,(e,t)=>(0,s.jsx)(u,{children:e},t)):c,[c,m]);return(0,s.jsx)(o.B.div,{ref:t,className:(0,n.cx)("chakra-wrap",f),...g,children:(0,s.jsx)(o.B.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:d,alignItems:p,flexDirection:h,listStyleType:"none",gap:r,columnGap:i,rowGap:l,padding:"0"},children:v})})});l.displayName="Wrap";var u=(0,i.R)(function(e,t){let{className:r,...i}=e;return(0,s.jsx)(o.B.li,{ref:t,__css:{display:"flex",alignItems:"flex-start"},className:(0,n.cx)("chakra-wrap__listitem",r),...i})});u.displayName="WrapItem"},2219:(e,t,r)=>{"use strict";r.d(t,{D:()=>u});var n=r(63552),i=r(11403),o=r(74108),a=r(60524),s=r(11976),l=r(31085),u=(0,n.R)(function(e,t){let r=(0,i.Vl)("Heading",e),{className:n,...u}=(0,o.MN)(e);return(0,l.jsx)(a.B.h2,{ref:t,className:(0,s.cx)("chakra-heading",e.className),...u,__css:r})});u.displayName="Heading"},18201:(e,t,r)=>{"use strict";r.d(t,{h:()=>n});var n=(0,r(60524).B)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});n.displayName="Spacer"},26848:(e,t,r)=>{"use strict";r.d(t,{u:()=>u});var n=r(63552),i=r(11403),o=r(74108),a=r(60524),s=r(11976),l=r(31085),u=(0,n.R)(function(e,t){let r=(0,i.Vl)("Kbd",e),{className:n,...u}=(0,o.MN)(e);return(0,l.jsx)(a.B.kbd,{ref:t,className:(0,s.cx)("chakra-kbd",n),...u,__css:{fontFamily:"mono",...r}})});u.displayName="Kbd"},35789:(e,t,r)=>{"use strict";r.d(t,{o:()=>a});var n=r(60524),i=r(63552),o=r(31085),a=(0,n.B)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});a.displayName="Center";var s={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};(0,i.R)(function(e,t){let{axis:r="both",...i}=e;return(0,o.jsx)(n.B.div,{ref:t,__css:s[r],...i,position:"absolute"})})},46882:(e,t,r)=>{"use strict";r.d(t,{x:()=>a});var n=r(63552),i=r(60524),o=r(31085),a=(0,n.R)(function(e,t){let{templateAreas:r,gap:n,rowGap:a,columnGap:s,column:l,row:u,autoFlow:c,autoRows:d,templateRows:h,autoColumns:p,templateColumns:f,...m}=e;return(0,o.jsx)(i.B.div,{ref:t,__css:{display:"grid",gridTemplateAreas:r,gridGap:n,gridRowGap:a,gridColumnGap:s,gridAutoColumns:p,gridColumn:l,gridRow:u,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:h,gridTemplateColumns:f},...m})});a.displayName="Grid"},3706:(e,t,r)=>{"use strict";r.d(t,{N:()=>u});var n=r(63552),i=r(11403),o=r(74108),a=r(60524),s=r(11976),l=r(31085),u=(0,n.R)(function(e,t){let r=(0,i.Vl)("Link",e),{className:n,isExternal:u,...c}=(0,o.MN)(e);return(0,l.jsx)(a.B.a,{target:u?"_blank":void 0,rel:u?"noopener":void 0,ref:t,className:(0,s.cx)("chakra-link",n),...c,__css:r})});u.displayName="Link"},25420:(e,t,r)=>{"use strict";r.d(t,{s:()=>a});var n=r(63552),i=r(60524),o=r(31085),a=(0,n.R)(function(e,t){let{direction:r,align:n,justify:a,wrap:s,basis:l,grow:u,shrink:c,...d}=e;return(0,o.jsx)(i.B.div,{ref:t,__css:{display:"flex",flexDirection:r,alignItems:n,justifyContent:a,flexWrap:s,flexBasis:l,flexGrow:u,flexShrink:c},...d})});a.displayName="Flex"},67419:(e,t,r)=>{"use strict";r.d(t,{G:()=>o});var n=r(60524),i=r(31085),o=e=>(0,i.jsx)(n.B.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});o.displayName="StackDivider"},6256:(e,t,r)=>{"use strict";r.d(t,{C:()=>u});var n=r(63552),i=r(11403),o=r(74108),a=r(60524),s=r(11976),l=r(31085),u=(0,n.R)(function(e,t){let r=(0,i.Vl)("Code",e),{className:n,...u}=(0,o.MN)(e);return(0,l.jsx)(a.B.code,{ref:t,className:(0,s.cx)("chakra-code",e.className),...u,__css:{display:"inline-block",...r}})});u.displayName="Code"},15672:(e,t,r)=>{"use strict";r.d(t,{r:()=>u});var n=r(46882),i=r(63552),o=r(41259),a=r(82223),s=r(93372),l=r(31085),u=(0,i.R)(function(e,t){let{columns:r,spacingX:i,spacingY:u,spacing:c,minChildWidth:d,...h}=e,p=(0,o.D)(),f=d?(0,s.bk)(d,e=>{let t=(0,a.gf)("sizes",e,"number"==typeof e?`${e}px`:e)(p);return null===e?null:`repeat(auto-fit, minmax(${t}, 1fr))`}):(0,s.bk)(r,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);return(0,l.jsx)(n.x,{ref:t,gap:c,columnGap:i,rowGap:u,templateColumns:f,...h})});u.displayName="SimpleGrid"},92712:(e,t,r)=>{"use strict";r.d(t,{Q:()=>l,r:()=>s});var n=r(63552),i=r(60524),o=r(11976),a=r(31085),s=(0,n.R)(function(e,t){let{isExternal:r,target:n,rel:s,className:l,...u}=e;return(0,a.jsx)(i.B.a,{...u,ref:t,className:(0,o.cx)("chakra-linkbox__overlay",l),rel:r?"noopener noreferrer":s,target:r?"_blank":n,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})}),l=(0,n.R)(function(e,t){let{className:r,...n}=e;return(0,a.jsx)(i.B.div,{ref:t,position:"relative",...n,className:(0,o.cx)("chakra-linkbox",r),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})})},2600:(e,t,r)=>{"use strict";r.d(t,{T:()=>a});var n=r(35687),i=r(63552),o=r(31085),a=(0,i.R)((e,t)=>(0,o.jsx)(n.B,{align:"center",...e,direction:"column",ref:t}));a.displayName="VStack"},80532:(e,t,r)=>{"use strict";r.d(t,{az:()=>a,jl:()=>l});var n=r(60524),i=r(63552),o=r(31085),a=(0,n.B)("div");a.displayName="Box";var s=(0,i.R)(function(e,t){let{size:r,centerContent:n=!0,...i}=e;return(0,o.jsx)(a,{ref:t,boxSize:r,__css:{...n?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...i})});s.displayName="Square";var l=(0,i.R)(function(e,t){let{size:r,...n}=e;return(0,o.jsx)(s,{size:r,ref:t,borderRadius:"9999px",...n})});l.displayName="Circle"},70323:(e,t,r)=>{"use strict";r.d(t,{c:()=>u});var n=r(63552),i=r(11403),o=r(74108),a=r(60524),s=r(11976),l=r(31085),u=(0,n.R)(function(e,t){let{borderLeftWidth:r,borderBottomWidth:n,borderTopWidth:u,borderRightWidth:c,borderWidth:d,borderStyle:h,borderColor:p,...f}=(0,i.Vl)("Divider",e),{className:m,orientation:g="horizontal",__css:v,...y}=(0,o.MN)(e);return(0,l.jsx)(a.B.hr,{ref:t,"aria-orientation":g,...y,__css:{...f,border:"0",borderColor:p,borderStyle:h,...{vertical:{borderLeftWidth:r||c||d||"1px",height:"100%"},horizontal:{borderBottomWidth:n||u||d||"1px",width:"100%"}}[g],...v},className:(0,s.cx)("chakra-divider",m)})});u.displayName="Divider"},27670:(e,t,r)=>{"use strict";r.d(t,{E:()=>u});var n=r(63552),i=r(11403),o=r(74108),a=r(60524),s=r(11976),l=r(31085),u=(0,n.R)(function(e,t){let r=(0,i.Vl)("Badge",e),{className:n,...u}=(0,o.MN)(e);return(0,l.jsx)(a.B.span,{ref:t,className:(0,s.cx)("chakra-badge",e.className),...u,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});u.displayName="Badge"},35687:(e,t,r)=>{"use strict";r.d(t,{B:()=>d});var n=r(60524),i=r(31085),o=e=>(0,i.jsx)(n.B.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});o.displayName="StackItem";var a=r(93372),s=r(76704),l=r(11976),u=r(63552),c=r(14041),d=(0,u.R)((e,t)=>{let{isInline:r,direction:u,align:d,justify:h,spacing:p="0.5rem",wrap:f,children:m,divider:g,className:v,shouldWrapChildren:y,...b}=e,w=r?"row":null!=u?u:"column",k=(0,c.useMemo)(()=>(function(e){let{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,a.bk)(r,e=>n[e])}})({spacing:p,direction:w}),[p,w]),x=!!g,_=!y&&!x,S=(0,c.useMemo)(()=>{let e=(0,s.a)(m);return _?e:e.map((t,r)=>{let n=void 0!==t.key?t.key:r,a=r+1===e.length,s=(0,i.jsx)(o,{children:t},n),l=y?s:t;if(!x)return l;let u=(0,c.cloneElement)(g,{__css:k});return(0,i.jsxs)(c.Fragment,{children:[l,a?null:u]},n)})},[g,k,x,_,y,m]),E=(0,l.cx)("chakra-stack",v);return(0,i.jsx)(n.B.div,{ref:t,display:"flex",alignItems:d,justifyContent:h,flexDirection:w,flexWrap:f,gap:x?void 0:p,className:E,...b,children:S})});d.displayName="Stack"},76003:(e,t,r)=>{"use strict";r.d(t,{E:()=>u});var n=r(63552),i=r(60524),o=r(77479),a=r(93372),s=r(31085);function l(e){return(0,a.bk)(e,e=>"auto"===e?"auto":`span ${e}/span ${e}`)}var u=(0,n.R)(function(e,t){let{area:r,colSpan:n,colStart:a,colEnd:u,rowEnd:c,rowSpan:d,rowStart:h,...p}=e,f=(0,o.o)({gridArea:r,gridColumn:l(n),gridRow:l(d),gridColumnStart:a,gridColumnEnd:u,gridRowStart:h,gridRowEnd:c});return(0,s.jsx)(i.B.div,{ref:t,__css:f,...p})});u.displayName="GridItem"},25676:(e,t,r)=>{"use strict";r.d(t,{g:()=>u});var n=r(63552),i=r(60524),o=r(93372),a=r(11976),s=r(14041),l=r(31085),u=(0,n.R)(function(e,t){let{ratio:r=4/3,children:n,className:u,...c}=e,d=s.Children.only(n),h=(0,a.cx)("chakra-aspect-ratio",u);return(0,l.jsx)(i.B.div,{ref:t,position:"relative",className:h,_before:{height:0,content:'""',display:"block",paddingBottom:(0,o.bk)(r,e=>`${1/e*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...c,children:d})});u.displayName="AspectRatio"},96667:(e,t,r)=>{"use strict";function n(e){let{wasSelected:t,enabled:r,isSelected:n,mode:i="unmount"}=e;return!r||!!n||"keepMounted"===i&&!!t}r.d(t,{q:()=>n})},2250:(e,t,r)=>{"use strict";r.d(t,{U:()=>o});var n=r(82434),i=r(14041);function o(e,t={}){let{ssr:r=!0,fallback:a}=t,{getWindow:s}=(0,n.O)(),l=Array.isArray(e)?e:[e],u=Array.isArray(a)?a:[a];u=u.filter(e=>null!=e);let[c,d]=(0,i.useState)(()=>l.map((e,t)=>({media:e,matches:r?!!u[t]:s().matchMedia(e).matches})));return(0,i.useEffect)(()=>{let e=s();d(l.map(t=>({media:t,matches:e.matchMedia(t).matches})));let t=l.map(t=>e.matchMedia(t)),r=e=>{d(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))};return t.forEach(e=>{"function"==typeof e.addListener?e.addListener(r):e.addEventListener("change",r)}),()=>{t.forEach(e=>{"function"==typeof e.removeListener?e.removeListener(r):e.removeEventListener("change",r)})}},[s]),c.map(e=>e.matches)}},43421:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(93372),i=r(2250),o=r(41259),a=r(11976);function s(e,t){var r;let s=function(e){var t,r;let n=(0,a.Gv)(e)?e:{fallback:null!=e?e:"base"},s=(0,o.D)().__breakpoints.details.map(({minMaxQuery:e,breakpoint:t})=>({breakpoint:t,query:e.replace("@media screen and ","")})),l=s.map(e=>e.breakpoint===n.fallback),u=(0,i.U)(s.map(e=>e.query),{fallback:l,ssr:n.ssr}).findIndex(e=>!0==e);return null!=(r=null==(t=s[u])?void 0:t.breakpoint)?r:n.fallback}((0,a.Gv)(t)?t:{fallback:null!=t?t:"base"}),l=(0,o.D)();if(!s)return;let u=Array.from((null==(r=l.__breakpoints)?void 0:r.keys)||[]);return function(e,t,r=n.fi){let i=Object.keys(e).indexOf(t);if(-1!==i)return e[t];let o=r.indexOf(t);for(;o>=0;){let t=r[o];if(e.hasOwnProperty(t)){i=o;break}o-=1}if(-1!==i)return e[r[i]]}(Array.isArray(e)?Object.fromEntries(Object.entries((0,n.a1)(e,u)).map(([e,t])=>[e,t])):e,s,u)}},33683:(e,t,r)=>{"use strict";r.d(t,{D:()=>h});var n=r(63341),i=r(63552),o=r(60524),a=r(31085),s=(0,i.R)((e,t)=>{let r=(0,n.$)();return(0,a.jsx)(o.B.span,{ref:t,...e,__css:r.command,className:"chakra-menu__command"})});s.displayName="MenuCommand";var l=r(48456),u=r(21351),c=r(69735),d=r(11976),h=(0,i.R)((e,t)=>{let{icon:r,iconSpacing:n="0.75rem",command:i,commandSpacing:o="0.75rem",children:h,...p}=e,f=(0,c.Os)(p,t),m=r||i?(0,a.jsx)("span",{style:{pointerEvents:"none",flex:1},children:h}):h;return(0,a.jsxs)(l.m,{...f,className:(0,d.cx)("chakra-menu__menuitem",f.className),children:[r&&(0,a.jsx)(u.Z,{fontSize:"0.8em",marginEnd:n,children:r}),m,i&&(0,a.jsx)(s,{marginStart:o,children:i})]})});h.displayName="MenuItem"},72821:(e,t,r)=>{"use strict";r.d(t,{c:()=>h});var n=r(63341),i=r(69735),o=r(11976),a=r(60524),s=r(63552),l=r(27372),u=r(31085),c={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},d=(0,a.B)(l.P.div),h=(0,s.R)(function(e,t){var r,s;let{rootProps:l,motionProps:h,...p}=e,{isOpen:f,onTransitionEnd:m,unstable__animationState:g}=(0,i.KZ)(),v=(0,i.jy)(p,t),y=(0,i.F9)(l),b=(0,n.$)();return(0,u.jsx)(a.B.div,{...y,__css:{zIndex:null!=(s=e.zIndex)?s:null==(r=b.list)?void 0:r.zIndex},children:(0,u.jsx)(d,{variants:c,initial:!1,animate:f?"enter":"exit",__css:{outline:0,...b.list},...h,className:(0,o.cx)("chakra-menu__menu-list",v.className),...v,onUpdate:m,onAnimationComplete:(0,o.OK)(g.onComplete,v.onAnimationComplete)})})});h.displayName="MenuList"},33473:(e,t,r)=>{"use strict";r.d(t,{k:()=>c});var n=r(48456),i=r(21351),o=r(69735),a=r(63552),s=r(11976),l=r(31085),u=e=>(0,l.jsx)("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e,children:(0,l.jsx)("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})}),c=(0,a.R)((e,t)=>{let{icon:r,iconSpacing:a="0.75rem",...c}=e,d=(0,o.gA)(c,t);return(0,l.jsxs)(n.m,{...d,className:(0,s.cx)("chakra-menu__menuitem-option",c.className),children:[null!==r&&(0,l.jsx)(i.Z,{fontSize:"0.8em",marginEnd:a,opacity:e.isChecked?1:0,children:r||(0,l.jsx)(u,{})}),(0,l.jsx)("span",{style:{flex:1},children:d.children})]})});c.id="MenuItemOption",c.displayName="MenuItemOption"},81575:(e,t,r)=>{"use strict";r.d(t,{N:()=>s});var n=r(63341),i=r(60524),o=r(11976),a=r(31085),s=e=>{let{className:t,...r}=e,s=(0,n.$)();return(0,a.jsx)(i.B.hr,{"aria-orientation":"horizontal",className:(0,o.cx)("chakra-menu__divider",t),...r,__css:s.divider})};s.displayName="MenuDivider"},21351:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(63341),i=r(60524),o=r(11976),a=r(14041),s=r(31085),l=e=>{let{className:t,children:r,...l}=e,u=(0,n.$)(),c=a.Children.only(r),d=(0,a.isValidElement)(c)?(0,a.cloneElement)(c,{focusable:"false","aria-hidden":!0,className:(0,o.cx)("chakra-menu__icon",c.props.className)}):null,h=(0,o.cx)("chakra-menu__icon-wrapper",t);return(0,s.jsx)(i.B.span,{className:h,...l,__css:u.icon,children:d})};l.displayName="MenuIcon"},48310:(e,t,r)=>{"use strict";r.d(t,{i:()=>s});var n=r(48637),i=r(69735),o=r(11976),a=r(31085),s=e=>{let{className:t,title:r,...s}=e,l=(0,i.vX)(s);return(0,a.jsx)(n.r,{title:r,className:(0,o.cx)("chakra-menu__option-group",t),...l})};s.displayName="MenuOptionGroup"},48456:(e,t,r)=>{"use strict";r.d(t,{m:()=>l});var n=r(63341),i=r(63552),o=r(60524),a=r(14041),s=r(31085),l=(0,i.R)((e,t)=>{let{type:r,...i}=e,l=(0,n.$)(),u=i.as||r?null!=r?r:void 0:"button",c=(0,a.useMemo)(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...l.item}),[l.item]);return(0,s.jsx)(o.B.button,{ref:t,type:u,...i,__css:c})})},48637:(e,t,r)=>{"use strict";r.d(t,{r:()=>l});var n=r(63341),i=r(63552),o=r(60524),a=r(11976),s=r(31085),l=(0,i.R)((e,t)=>{let{title:r,children:i,className:l,...u}=e,c=(0,a.cx)("chakra-menu__group__title",l),d=(0,n.$)();return(0,s.jsxs)("div",{ref:t,className:"chakra-menu__group",role:"group",children:[r&&(0,s.jsx)(o.B.p,{className:c,...u,__css:d.groupTitle,children:r}),i]})});l.displayName="MenuGroup"},69735:(e,t,r)=>{"use strict";r.d(t,{Xu:()=>w,BV:()=>S,b:()=>A,db:()=>j,KZ:()=>E,Os:()=>R,jy:()=>T,gA:()=>M,vX:()=>N,F9:()=>P});var n=r(14041),i=r(64917),o=r(54371),a=r(5295),s=r(95863),l=r(45116),u=r(2902);function c(e,t){var r;let n=e.target;return(!n||!!d(n).contains(n))&&!(null==(r=t.current)?void 0:r.contains(n))}function d(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}var h=r(4777),p=r(37754),f=r(76704),m=r(58470),g=r(93006),v=r(94800),y=r(11976),b=r(96667),[w,k,x,_]=(0,o.D)(),[S,E]=(0,p.q)({strict:!1,name:"MenuContext"});function C(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function D(e){return C(e).activeElement===e}function A(e={}){let{id:t,closeOnSelect:r=!0,closeOnBlur:i=!0,initialFocusRef:o,autoSelect:p=!0,isLazy:f,isOpen:m,defaultIsOpen:v,onClose:y,onOpen:b,placement:w="bottom-start",lazyBehavior:k="unmount",direction:_,computePositionOnMount:S=!1,...E}=e,D=(0,n.useRef)(null),j=(0,n.useRef)(null),O=x(),T=(0,n.useCallback)(()=>{requestAnimationFrame(()=>{var e;null==(e=D.current)||e.focus({preventScroll:!1})})},[]),P=(0,n.useCallback)(()=>{let e=setTimeout(()=>{var e;if(o)null==(e=o.current)||e.focus();else{let e=O.firstEnabled();e&&U(e.index)}});W.current.add(e)},[O,o]),R=(0,n.useCallback)(()=>{let e=setTimeout(()=>{let e=O.lastEnabled();e&&U(e.index)});W.current.add(e)},[O]),M=(0,n.useCallback)(()=>{null==b||b(),p?P():T()},[p,P,T,b]),{isOpen:N,onOpen:F,onClose:I,onToggle:L}=(0,l.j)({isOpen:m,defaultIsOpen:v,onClose:y,onOpen:M});!function(e){let{ref:t,handler:r,enabled:i=!0}=e,o=(0,u.c)(r),a=(0,n.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,n.useEffect)(()=>{if(!i)return;let e=e=>{c(e,t)&&(a.isPointerDown=!0)},n=e=>{if(a.ignoreEmulatedMouseEvents){a.ignoreEmulatedMouseEvents=!1;return}a.isPointerDown&&r&&c(e,t)&&(a.isPointerDown=!1,o(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&c(e,t)&&(a.isPointerDown=!1,o(e))},l=d(t.current);return l.addEventListener("mousedown",e,!0),l.addEventListener("mouseup",n,!0),l.addEventListener("touchstart",e,!0),l.addEventListener("touchend",s,!0),()=>{l.removeEventListener("mousedown",e,!0),l.removeEventListener("mouseup",n,!0),l.removeEventListener("touchstart",e,!0),l.removeEventListener("touchend",s,!0)}},[r,t,o,a,i])}({enabled:N&&i,ref:D,handler:e=>{var t;(null==(t=j.current)?void 0:t.contains(e.target))||I()}});let B=(0,s.E)({...E,enabled:N||S,placement:w,direction:_}),[z,U]=(0,n.useState)(-1);(0,g.w)(()=>{N||U(-1)},[N]),(0,a.X)(D,{focusRef:j,visible:N,shouldFocus:!0});let q=(0,h.v)({isOpen:N,ref:D}),[H,V]=function(e,...t){let r=(0,n.useId)(),i=e||r;return(0,n.useMemo)(()=>t.map(e=>`${e}-${i}`),[i,t])}(t,"menu-button","menu-list"),$=(0,n.useCallback)(()=>{F(),T()},[F,T]),W=(0,n.useRef)(new Set([]));(0,n.useEffect)(()=>{let e=W.current;return()=>{e.forEach(e=>clearTimeout(e)),e.clear()}},[]);let Y=(0,n.useCallback)(()=>{F(),P()},[P,F]),G=(0,n.useCallback)(()=>{F(),R()},[F,R]),K=(0,n.useCallback)(()=>{var e,t;let r=C(D.current),n=null==(e=D.current)?void 0:e.contains(r.activeElement);if(!(N&&!n))return;let i=null==(t=O.item(z))?void 0:t.node;null==i||i.focus({preventScroll:!0})},[N,z,O]),X=(0,n.useRef)(null);return{openAndFocusMenu:$,openAndFocusFirstItem:Y,openAndFocusLastItem:G,onTransitionEnd:K,unstable__animationState:q,descendants:O,popper:B,buttonId:H,menuId:V,forceUpdate:B.forceUpdate,orientation:"vertical",isOpen:N,onToggle:L,onOpen:F,onClose:I,menuRef:D,buttonRef:j,focusedIndex:z,closeOnSelect:r,closeOnBlur:i,autoSelect:p,setFocusedIndex:U,isLazy:f,lazyBehavior:k,initialFocusRef:o,rafId:X}}function j(e={},t=null){let r=E(),{onToggle:i,popper:o,openAndFocusFirstItem:a,openAndFocusLastItem:s}=r,l=(0,n.useCallback)(e=>{let t={Enter:a,ArrowDown:a,ArrowUp:s}[e.key];t&&(e.preventDefault(),e.stopPropagation(),t(e))},[a,s]);return{...e,ref:(0,v.Px)(r.buttonRef,t,o.referenceRef),id:r.buttonId,"data-active":(0,y.sE)(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:(0,y.Hj)(e.onClick,i),onKeyDown:(0,y.Hj)(e.onKeyDown,l)}}function O(e){var t;return function(e){var t;if(!(null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE))return!1;let r=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof r.HTMLElement}(e)&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}function T(e={},t=null){let r=E();if(!r)throw Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");let{focusedIndex:i,setFocusedIndex:o,menuRef:a,isOpen:s,onClose:l,menuId:u,isLazy:c,lazyBehavior:d,unstable__animationState:h}=r,p=k(),f=function(e={}){let{timeout:t=300,preventDefault:r=()=>!0}=e,[i,o]=(0,n.useState)([]),a=(0,n.useRef)(),s=()=>{a.current&&(clearTimeout(a.current),a.current=null)},l=()=>{s(),a.current=setTimeout(()=>{o([]),a.current=null},t)};return(0,n.useEffect)(()=>s,[]),function(e){return t=>{if("Backspace"===t.key){let e=[...i];e.pop(),o(e);return}if(function(e){let{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){let n=i.concat(t.key);r(t)&&(t.preventDefault(),t.stopPropagation()),o(n),e(n.join("")),l()}}}}({preventDefault:e=>" "!==e.key&&O(e.target)}),m=(0,n.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t={Tab:e=>e.preventDefault(),Escape:l,ArrowDown:()=>{let e=p.nextEnabled(i);e&&o(e.index)},ArrowUp:()=>{let e=p.prevEnabled(i);e&&o(e.index)}}[e.key];if(t){e.preventDefault(),t(e);return}let r=f(e=>{let t=function(e,t,r,n){if(null==t)return n;if(!n)return e.find(e=>r(e).toLowerCase().startsWith(t.toLowerCase()));let i=e.filter(e=>r(e).toLowerCase().startsWith(t.toLowerCase()));if(i.length>0){let t;return i.includes(n)?((t=i.indexOf(n)+1)===i.length&&(t=0),i[t]):(t=e.indexOf(i[0]),e[t])}return n}(p.values(),e,e=>{var t,r;return null!=(r=null==(t=null==e?void 0:e.node)?void 0:t.textContent)?r:""},p.item(i));t&&o(p.indexOf(t.node))});O(e.target)&&r(e)},[p,i,f,l,o]),g=(0,n.useRef)(!1);s&&(g.current=!0);let w=(0,b.q)({wasSelected:g.current,enabled:c,mode:d,isSelected:h.present});return{...e,ref:(0,v.Px)(a,t),children:w?e.children:null,tabIndex:-1,role:"menu",id:u,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:(0,y.Hj)(e.onKeyDown,m)}}function P(e={}){let{popper:t,isOpen:r}=E();return t.getPopperProps({...e,style:{visibility:r?"visible":"hidden",...e.style}})}function R(e={},t=null){let{onMouseEnter:r,onMouseMove:o,onMouseLeave:a,onClick:s,onFocus:l,isDisabled:u,isFocusable:c,closeOnSelect:d,type:h,...p}=e,{setFocusedIndex:f,focusedIndex:m,closeOnSelect:y,onClose:b,menuRef:w,isOpen:k,menuId:x,rafId:S}=E(),C=(0,n.useRef)(null),A=`${x}-menuitem-${(0,n.useId)()}`,{index:j,register:T}=_({disabled:u&&!c}),P=(0,n.useCallback)(e=>{null==r||r(e),u||f(j)},[f,j,u,r]),M=(0,n.useCallback)(e=>{null==o||o(e),C.current&&!D(C.current)&&P(e)},[P,o]),N=(0,n.useCallback)(e=>{null==a||a(e),u||f(-1)},[f,u,a]),F=(0,n.useCallback)(e=>{null==s||s(e),O(e.currentTarget)&&(null!=d?d:y)&&b()},[b,s,y,d]),I=(0,n.useCallback)(e=>{null==l||l(e),f(j)},[f,l,j]),L=j===m,B=u&&!c;(0,g.w)(()=>{if(k)return L&&!B&&C.current?(S.current&&cancelAnimationFrame(S.current),S.current=requestAnimationFrame(()=>{var e;null==(e=C.current)||e.focus({preventScroll:!0}),S.current=null})):w.current&&!D(w.current)&&w.current.focus({preventScroll:!0}),()=>{S.current&&cancelAnimationFrame(S.current)}},[L,B,w,k]);let z=(0,i.I)({onClick:F,onFocus:I,onMouseEnter:P,onMouseMove:M,onMouseLeave:N,ref:(0,v.Px)(T,C,t),isDisabled:u,isFocusable:c});return{...p,...z,type:null!=h?h:z.type,id:A,role:"menuitem",tabIndex:L?0:-1}}function M(e={},t=null){let{type:r="radio",isChecked:n,...i}=e;return{...R(i,t),role:`menuitem${r}`,"aria-checked":n}}function N(e={}){let{children:t,type:r="radio",value:i,defaultValue:o,onChange:a,...s}=e,l="radio"===r,[u,c]=(0,m.i)({defaultValue:null!=o?o:l?"":[],value:i,onChange:a}),d=(0,n.useCallback)(e=>{"radio"===r&&"string"==typeof u&&c(e),"checkbox"===r&&Array.isArray(u)&&c(u.includes(e)?u.filter(t=>t!==e):u.concat(e))},[u,c,r]),h=(0,f.a)(t).map(e=>{if("MenuItemOption"!==e.type.id)return e;let t="radio"===r?e.props.value===u:u.includes(e.props.value);return(0,n.cloneElement)(e,{type:r,onClick:t=>{var r,n;d(e.props.value),null==(n=(r=e.props).onClick)||n.call(r,t)},isChecked:t})});return{...s,children:h}}},63341:(e,t,r)=>{"use strict";r.d(t,{$:()=>h,W:()=>p});var n=r(69735),i=r(37754),o=r(11403),a=r(74108),s=r(41259),l=r(11976),u=r(14041),c=r(31085),[d,h]=(0,i.q)({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),p=e=>{let{children:t}=e,r=(0,o.o5)("Menu",e),i=(0,a.MN)(e),{direction:h}=(0,s.D)(),{descendants:p,...f}=(0,n.b)({...i,direction:h}),m=(0,u.useMemo)(()=>f,[f]),{isOpen:g,onClose:v,forceUpdate:y}=m;return(0,c.jsx)(n.Xu,{value:p,children:(0,c.jsx)(n.BV,{value:m,children:(0,c.jsx)(d,{value:r,children:(0,l.Jg)(t,{isOpen:g,onClose:v,forceUpdate:y})})})})};p.displayName="Menu"},18528:(e,t,r)=>{"use strict";r.d(t,{I:()=>c});var n=r(63341),i=r(69735),o=r(63552),a=r(60524),s=r(11976),l=r(31085),u=(0,o.R)((e,t)=>{let r=(0,n.$)();return(0,l.jsx)(a.B.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...r.button}})}),c=(0,o.R)((e,t)=>{let{children:r,as:n,...o}=e,c=(0,i.db)(o,t),d=n||u;return(0,l.jsx)(d,{...c,className:(0,s.cx)("chakra-menu__menu-button",e.className),children:(0,l.jsx)(a.B.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});c.displayName="MenuButton"},65446:(e,t,r)=>{"use strict";r.d(t,{s:()=>l});var n=r(18588),i=r(94259),o=r(11976),a=r(63552),s=r(31085),l=(0,a.R)((e,t)=>{let{onClick:r,className:a,...l}=e,{onClose:u}=(0,n.k3)(),c=(0,o.cx)("chakra-modal__close-btn",a),d=(0,n.x5)();return(0,s.jsx)(i.J,{ref:t,__css:d.closeButton,className:c,onClick:(0,o.Hj)(r,e=>{e.stopPropagation(),u()}),...l})});l.displayName="ModalCloseButton"},34363:(e,t,r)=>{"use strict";r.d(t,{r:()=>u});var n=r(18588),i=r(11976),o=r(63552),a=r(60524),s=r(14041),l=r(31085),u=(0,o.R)((e,t)=>{let{className:r,...o}=e,{headerId:u,setHeaderMounted:c}=(0,n.k3)();(0,s.useEffect)(()=>(c(!0),()=>c(!1)),[c]);let d=(0,i.cx)("chakra-modal__header",r),h={flex:0,...(0,n.x5)().header};return(0,l.jsx)(a.B.header,{ref:t,className:d,id:u,...o,__css:h})});u.displayName="ModalHeader"},9746:(e,t,r)=>{"use strict";r.d(t,{z:()=>h});var n=r(14608),i=r(78291),o=r(18588),a=r(11976),s=r(60524),l=r(63552),u=r(81176),c=r(31085),d=(0,s.B)(u.q),h=(0,l.R)((e,t)=>{let{className:r,children:l,motionProps:u,containerProps:h,...p}=e,{getDialogProps:f,getDialogContainerProps:m,isOpen:g}=(0,o.k3)(),v=f(p,t),y=m(h),b=(0,a.cx)("chakra-modal__content",r),w=(0,o.x5)(),k={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...w.dialog},x={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...w.dialogContainer},{placement:_}=(0,n.g)();return(0,c.jsx)(i.u,{children:(0,c.jsx)(s.B.div,{...y,className:"chakra-modal__content-container",__css:x,children:(0,c.jsx)(d,{motionProps:u,direction:_,in:g,className:b,...v,__css:k,children:l})})})});h.displayName="DrawerContent"},80563:(e,t,r)=>{"use strict";r.d(t,{J:()=>s,y:()=>l});var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t,r)=>(i(e,"symbol"!=typeof t?t+"":t,r),r),a=r(14041),s=new class{constructor(){o(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function l(e,t){let[r,n]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let r=e.current;if(r)return t&&n(s.add(r)),()=>{s.remove(r),n(0)}},[t,e]),r}},57238:(e,t,r)=>{"use strict";r.d(t,{$:()=>y});var n=r(60524),i=r(35193),o=r(11976),a=r(63373),s=r(27372),l=r(14041),u=r(31085),c={initial:"initial",animate:"enter",exit:"exit",variants:{initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:o})=>{var a;return{opacity:0,x:e,y:t,transition:null!=(a=null==r?void 0:r.exit)?a:i.yA.exit(i.jd.exit,o),transitionEnd:null==n?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:null!=(n=null==e?void 0:e.enter)?n:i.yA.enter(i.jd.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:o,delay:a})=>{var s;let l={x:t,y:e};return{opacity:0,transition:null!=(s=null==r?void 0:r.exit)?s:i.yA.exit(i.jd.exit,a),...o?{...l,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{...l,...null==n?void 0:n.exit}}}}}};(0,l.forwardRef)(function(e,t){let{unmountOnExit:r,in:n,reverse:i=!0,className:l,offsetX:d=0,offsetY:h=8,transition:p,transitionEnd:f,delay:m,...g}=e,v=!r||n&&r,y=n||r?"enter":"exit",b={offsetX:d,offsetY:h,reverse:i,transition:p,transitionEnd:f,delay:m};return(0,u.jsx)(a.N,{custom:b,children:v&&(0,u.jsx)(s.P.div,{ref:t,className:(0,o.cx)("chakra-offset-slide",l),custom:b,...c,animate:y,...g})})}).displayName="SlideFade";var d={initial:"exit",animate:"enter",exit:"exit",variants:{exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:o})=>{var a;return{opacity:0,...e?{scale:t,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{scale:t,...null==n?void 0:n.exit}},transition:null!=(a=null==r?void 0:r.exit)?a:i.yA.exit(i.jd.exit,o)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:null!=(n=null==t?void 0:t.enter)?n:i.yA.enter(i.jd.enter,r),transitionEnd:null==e?void 0:e.enter}}}};(0,l.forwardRef)(function(e,t){let{unmountOnExit:r,in:n,reverse:i=!0,initialScale:l=.95,className:c,transition:h,transitionEnd:p,delay:f,...m}=e,g=!r||n&&r,v=n||r?"enter":"exit",y={initialScale:l,reverse:i,transition:h,transitionEnd:p,delay:f};return(0,u.jsx)(a.N,{custom:y,children:g&&(0,u.jsx)(s.P.div,{ref:t,className:(0,o.cx)("chakra-offset-slide",c),...d,animate:v,custom:y,...m})})}).displayName="ScaleFade";var h={slideInBottom:{...c,custom:{offsetY:16,reverse:!0}},slideInRight:{...c,custom:{offsetX:16,reverse:!0}},slideInTop:{...c,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...c,custom:{offsetX:-16,reverse:!0}},scale:{...d,custom:{initialScale:.95,reverse:!0}},none:{}},p=(0,n.B)(s.P.section),f=e=>h[e||"none"],m=(0,l.forwardRef)((e,t)=>{let{preset:r,motionProps:n=f(r),...i}=e;return(0,u.jsx)(p,{ref:t,...n,...i})});m.displayName="ModalTransition";var g=r(78291),v=r(18588),y=(0,r(63552).R)((e,t)=>{let{className:r,children:i,containerProps:a,motionProps:s,...l}=e,{getDialogProps:c,getDialogContainerProps:d}=(0,v.k3)(),h=c(l,t),p=d(a),f=(0,o.cx)("chakra-modal__content",r),y=(0,v.x5)(),b={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...y.dialog},w={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...y.dialogContainer},{motionPreset:k}=(0,v.k3)();return(0,u.jsx)(g.u,{children:(0,u.jsx)(n.B.div,{...p,className:"chakra-modal__content-container",tabIndex:-1,__css:w,children:(0,u.jsx)(m,{preset:k,motionProps:s,className:f,...h,__css:b,children:i})})})});y.displayName="ModalContent"},59742:(e,t,r)=>{"use strict";r.d(t,{m:()=>d});var n=r(18588),i=r(11976),o=r(60524),a=r(63552),s=r(70405),l=r(27372),u=r(31085),c=(0,o.B)(l.P.div),d=(0,a.R)((e,t)=>{let{className:r,transition:o,motionProps:a,...l}=e,d=(0,i.cx)("chakra-modal__overlay",r),h={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...(0,n.x5)().overlay},{motionPreset:p}=(0,n.k3)(),f="none"===p?{}:s.l;return(0,u.jsx)(c,{...a||f,__css:h,ref:t,className:d,...l})});d.displayName="ModalOverlay"},14608:(e,t,r)=>{"use strict";r.d(t,{_:()=>c,g:()=>l});var n=r(18588),i=r(37754),o=r(41259),a=r(31085),[s,l]=(0,i.q)(),u={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function c(e){var t;let{isOpen:r,onClose:i,placement:l="right",children:c,...d}=e,h=(0,o.D)(),p=null==(t=h.components)?void 0:t.Drawer,f=function(e,t){var r,n;if(e)return null!=(n=null==(r=u[e])?void 0:r[t])?n:e}(l,h.direction);return(0,a.jsx)(s,{value:{placement:f},children:(0,a.jsx)(n.aF,{isOpen:r,onClose:i,styleConfig:p,...d,children:c})})}},18588:(e,t,r)=>{"use strict";r.d(t,{aF:()=>v,k3:()=>g,x5:()=>f});var n=r(80563),i=r(11976),o=r(94800),a=r(24788),s=r(14041),l=r(40173),u=r(37754),c=r(11403),d=r(63373),h=r(31085),[p,f]=(0,u.q)({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[m,g]=(0,u.q)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),v=e=>{let t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:u,autoFocus:f,trapFocus:g,initialFocusRef:v,finalFocusRef:y,returnFocusOnClose:b,blockScrollOnMount:w,allowPinchZoom:k,preserveScrollBarGap:x,motionPreset:_,lockFocusAcrossFrames:S,onCloseComplete:E}=t,C=(0,c.o5)("Modal",t),D={...function(e){let{isOpen:t,onClose:r,id:l,closeOnOverlayClick:u=!0,closeOnEsc:c=!0,useInert:d=!0,onOverlayClick:h,onEsc:p}=e,f=(0,s.useRef)(null),m=(0,s.useRef)(null),[g,v,y]=function(e,...t){let r=(0,s.useId)(),n=e||r;return(0,s.useMemo)(()=>t.map(e=>`${e}-${n}`),[n,t])}(l,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(e,t){let r=e.current;(0,s.useEffect)(()=>{if(e.current&&t)return(0,a.Eq)(e.current)},[t,e,r])}(f,t&&d);let b=(0,n.y)(f,t),w=(0,s.useRef)(null),k=(0,s.useCallback)(e=>{w.current=e.target},[]),x=(0,s.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),c&&(null==r||r()),null==p||p())},[c,r,p]),[_,S]=(0,s.useState)(!1),[E,C]=(0,s.useState)(!1),D=(0,s.useCallback)((e={},t=null)=>({role:"dialog",...e,ref:(0,o.Px)(t,f),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":_?v:void 0,"aria-describedby":E?y:void 0,onClick:(0,i.Hj)(e.onClick,e=>e.stopPropagation())}),[y,E,g,v,_]),A=(0,s.useCallback)(e=>{e.stopPropagation(),w.current===e.target&&n.J.isTopModal(f.current)&&(u&&(null==r||r()),null==h||h())},[r,u,h]),j=(0,s.useCallback)((e={},t=null)=>({...e,ref:(0,o.Px)(t,m),onClick:(0,i.Hj)(e.onClick,A),onKeyDown:(0,i.Hj)(e.onKeyDown,x),onMouseDown:(0,i.Hj)(e.onMouseDown,k)}),[x,k,A]);return{isOpen:t,onClose:r,headerId:v,bodyId:y,setBodyMounted:C,setHeaderMounted:S,dialogRef:f,overlayRef:m,getDialogProps:D,getDialogContainerProps:j,index:b}}(t),autoFocus:f,trapFocus:g,initialFocusRef:v,finalFocusRef:y,returnFocusOnClose:b,blockScrollOnMount:w,allowPinchZoom:k,preserveScrollBarGap:x,motionPreset:_,lockFocusAcrossFrames:S};return(0,h.jsx)(m,{value:D,children:(0,h.jsx)(p,{value:C,children:(0,h.jsx)(d.N,{onExitComplete:E,children:D.isOpen&&(0,h.jsx)(l.Z,{...r,children:u})})})})};v.displayName="Modal"},78291:(e,t,r)=>{"use strict";r.d(t,{u:()=>tt});var n,i,o,a=r(18588),s=r(80563),l=r(89575),u=r(14041),c="data-focus-lock",d="data-focus-lock-disabled",h=r(95240),p={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},f=r(95778),m=(0,f.C)({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),g=(0,f.C)(),v=(0,f.C)(),y=(0,f.f)({async:!0}),b=[],w=u.forwardRef(function(e,t){var r,n=u.useState(),i=n[0],o=n[1],a=u.useRef(),s=u.useRef(!1),f=u.useRef(null),v=e.children,w=e.disabled,k=void 0!==w&&w,x=e.noFocusGuards,_=void 0!==x&&x,S=e.persistentFocus,E=e.crossFrame,C=e.autoFocus,D=(e.allowTextSelection,e.group),A=e.className,j=e.whiteList,O=e.hasPositiveIndices,T=e.shards,P=void 0===T?b:T,R=e.as,M=e.lockProps,N=e.sideCar,F=e.returnFocus,I=void 0!==F&&F,L=e.focusOptions,B=e.onActivation,z=e.onDeactivation,U=u.useState({})[0],q=u.useCallback(function(){f.current=f.current||document&&document.activeElement,a.current&&B&&B(a.current),s.current=!0},[B]),H=u.useCallback(function(){s.current=!1,z&&z(a.current)},[z]);(0,u.useEffect)(function(){k||(f.current=null)},[]);var V=u.useCallback(function(e){var t=f.current;if(t&&t.focus){var r="function"==typeof I?I(t):I;if(r){var n="object"==typeof r?r:void 0;f.current=null,e?Promise.resolve().then(function(){return t.focus(n)}):t.focus(n)}}},[I]),$=u.useCallback(function(e){s.current&&m.useMedium(e)},[]),W=g.useMedium,Y=u.useCallback(function(e){a.current!==e&&(a.current=e,o(e))},[]),G=(0,l.A)(((r={})[d]=k&&"disabled",r[c]=D,r),void 0===M?{}:M),K=!0!==_,X=K&&"tail"!==_,J=(0,h.S)([t,Y]);return u.createElement(u.Fragment,null,K&&[u.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:k?-1:0,style:p}),O?u.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:k?-1:1,style:p}):null],!k&&u.createElement(N,{id:U,sideCar:y,observed:i,disabled:k,persistentFocus:void 0!==S&&S,crossFrame:void 0===E||E,autoFocus:void 0===C||C,whiteList:j,shards:P,onActivation:q,onDeactivation:H,returnFocus:V,focusOptions:L}),u.createElement(void 0===R?"div":R,(0,l.A)({ref:J},G,{className:A,onBlur:W,onFocus:$}),v),X&&u.createElement("div",{"data-focus-guard":!0,tabIndex:k?-1:0,style:p}))});function k(e,t){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}w.propTypes={};var x=r(24586),_=function(e){for(var t=Array(e.length),r=0;r=0}).sort(L)},z="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",U="".concat(z,", [data-focus-guard]"),q=function(e,t){return _((e.shadowRoot||e).children).reduce(function(e,r){return e.concat(r.matches(t?U:z)?[r]:[],q(r))},[])},H=function(e,t){var r;return e instanceof HTMLIFrameElement&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?V([e.contentDocument.body],t):[e]},V=function(e,t){return e.reduce(function(e,r){var n,i=q(r,t),o=(n=[]).concat.apply(n,i.map(function(e){return H(e,t)}));return e.concat(o,r.parentNode?_(r.parentNode.querySelectorAll(z)).filter(function(e){return e===r}):[])},[])},$=function(e,t){return _(e).filter(function(e){return j(t,e)}).filter(function(e){return!((P(e)||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))})},W=function(e,t){return void 0===t&&(t=new Map),_(e).filter(function(e){return O(t,e)})},Y=function(e,t,r){return B($(V(e,r),t),!0,r)},G=function(e,t){return B($(V(e),t),!1)},K=function(e,t){return e.shadowRoot?K(e.shadowRoot,t):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,t))||_(e.children).some(function(e){var r;if(e instanceof HTMLIFrameElement){var n=null===(r=e.contentDocument)||void 0===r?void 0:r.body;return!!n&&K(n,t)}return K(e,t)})},X=function(e){try{return e()}catch(e){return}},J=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?J(t.shadowRoot):t instanceof HTMLIFrameElement&&X(function(){return t.contentWindow.document})?J(t.contentWindow.document):t}},Q=function(e){void 0===e&&(e=document);var t=J(e);return!!t&&_(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return K(e,t)})},Z=function(e){for(var t=new Set,r=e.length,n=0;n0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(e,r){return!t.has(r)})},ee=function(e){return e.parentNode?ee(e.parentNode):e},et=function(e){return S(e).filter(Boolean).reduce(function(e,t){var r=t.getAttribute(c);return e.push.apply(e,r?Z(_(ee(t).querySelectorAll("[".concat(c,'="').concat(r,'"]:not([').concat(d,'="disabled"])')))):[t]),e},[])},er=function(e,t){return void 0===t&&(t=J(E(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&et(e).some(function(e){var r;return K(e,t)||(r=t,!!_(e.querySelectorAll("iframe")).some(function(e){return e===r}))})},en=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},ei=function(e,t){return R(e)&&e.name&&t.filter(R).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},eo=function(e){var t=new Set;return e.forEach(function(r){return t.add(ei(r,e))}),e.filter(function(e){return t.has(e)})},ea=function(e){return e[0]&&e.length>1?ei(e[0],e):e[0]},es=function(e,t){return e.length>1?e.indexOf(ei(e[t],e)):t},el="NEW_FOCUS",eu=function(e,t,r,n){var i=e.length,o=e[0],a=e[i-1],s=N(r);if(!(r&&e.indexOf(r)>=0)){var l=void 0!==r?t.indexOf(r):-1,u=n?t.indexOf(n):l,c=n?e.indexOf(n):-1,d=l-u,h=t.indexOf(o),p=t.indexOf(a),f=eo(t),m=(void 0!==r?f.indexOf(r):-1)-(n?f.indexOf(n):l),g=es(e,0),v=es(e,i-1);if(-1===l||-1===c)return el;if(!d&&c>=0)return c;if(l<=h&&s&&Math.abs(d)>1)return v;if(l>=p&&s&&Math.abs(d)>1)return g;if(d&&Math.abs(m)>1)return c;if(l<=h)return v;if(l>p)return g;if(d)return Math.abs(d)>1?c:(i+c+d)%i}},ec=function(e,t,r){var n=W(e.map(function(e){return e.node}).filter(function(e){var t,n=null===(t=T(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0}));return n&&n.length?ea(n):ea(W(t))},ed=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&ed(e.parentNode.host||e.parentNode,t),t},eh=function(e,t){for(var r=ed(e),n=ed(t),i=0;i=0)return o}return!1},ep=function(e,t,r){var n=S(e),i=S(t),o=n[0],a=!1;return i.filter(Boolean).forEach(function(e){a=eh(a||e,e)||a,r.filter(Boolean).forEach(function(e){var t=eh(o,e);t&&(a=!a||K(t,a)?t:eh(t,a))})}),a},ef=function(e,t){var r=new Map;return t.forEach(function(e){return r.set(e.node,e)}),e.map(function(e){return r.get(e)}).filter(I)},em=function(e,t){var r=J(S(e).length>0?document:E(e).ownerDocument),n=et(e).filter(F),i=ep(r||e,e,n),o=new Map,a=G(n,o),s=Y(n,o).filter(function(e){return F(e.node)});if(s[0]||(s=a)[0]){var l=G([i],o).map(function(e){return e.node}),u=ef(l,s),c=u.map(function(e){return e.node}),d=eu(c,l,r,t);if(d===el){var h=ec(a,c,n.reduce(function(e,t){return e.concat($(_(t.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(e){return V([e])}).reduce(function(e,t){return e.concat(t)},[]),o))},[]));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===d?d:u[d]}},eg=0,ev=!1,ey=function(e,t,r){void 0===r&&(r={});var n=em(e,t);if(!ev&&n){if(eg>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ev=!0,setTimeout(function(){ev=!1},1);return}eg++,en(n.node,r.focusOptions),eg--}},eb=function(e){var t=et(e).filter(F),r=ep(e,e,t),n=new Map,i=Y([r],n,!0),o=Y(t,n).filter(function(e){return F(e.node)}).map(function(e){return e.node});return i.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:N(t)}})};function ew(e){setTimeout(e,1)}var ek=null,ex=null,e_=null,eS=!1,eE=function(e,t){e_={observerNode:e,portaledElement:t}};function eC(e,t,r,n){var i=null,o=e;do{var a=n[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else if(a.lockItem){if(o!==e)return;i=null}else break}while((o+=r)!==t);i&&(i.node.tabIndex=0)}var eD=function(e){return e&&"current"in e?e.current:e},eA=function(){var e=!1;if(ek){var t=ek,r=t.observed,n=t.persistentFocus,i=t.autoFocus,o=t.shards,a=t.crossFrame,s=t.focusOptions,l=r||e_&&e_.portaledElement,u=document&&document.activeElement;if(l){var c=[l].concat(o.map(eD).filter(Boolean));if((!u||(ek.whiteList||function(){return!0})(u))&&(n||(a?!!eS:"meanwhile"===eS)||!(document&&document.activeElement===document.body||Q())||!ex&&i)&&(l&&!(er(c)||u&&c.some(function(e){return function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))}(u,e,e)})||e_&&e_.portaledElement===u)&&(document&&!ex&&u&&!i?(u.blur&&u.blur(),document.body.focus()):(e=ey(c,ex,{focusOptions:s}),e_={})),eS=!1,ex=document&&document.activeElement),document){var d=document&&document.activeElement,h=eb(c),p=h.map(function(e){return e.node}).indexOf(d);p>-1&&(h.filter(function(e){var t=e.guard,r=e.node;return t&&r.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),eC(p,h.length,1,h),eC(p,-1,-1,h))}}}return e},ej=function(e){eA()&&e&&(e.stopPropagation(),e.preventDefault())},eO=function(){return ew(eA)},eT=function(){eS="just",ew(function(){eS="meanwhile"})},eP=function(){document.addEventListener("focusin",ej),document.addEventListener("focusout",eO),window.addEventListener("blur",eT)},eR=function(){document.removeEventListener("focusin",ej),document.removeEventListener("focusout",eO),window.removeEventListener("blur",eT)};m.assignSyncMedium(function(e){var t=e.target,r=e.currentTarget;r.contains(t)||eE(r,t)}),g.assignMedium(eO),v.assignMedium(function(e){return e({moveFocusInside:ey,focusInside:er})});let eM=(n=function(e){return e.filter(function(e){return!e.disabled})},i=function(e){var t=e.slice(-1)[0];t&&!ek&&eP();var r=ek,n=r&&t&&t.id===r.id;ek=t,!r||n||(r.onDeactivation(),e.filter(function(e){return e.id===r.id}).length||r.returnFocus(!t)),t?(ex=null,n&&r.observed===t.observed||t.onActivation(),eA(!0),ew(eA)):(eR(),ex=null)},function(e){var t,r=[];function o(){i(t=n(r.map(function(e){return e.props})))}var a=function(n){function i(){return n.apply(this,arguments)||this}i.prototype=Object.create(n.prototype),i.prototype.constructor=i,k(i,n),i.peek=function(){return t};var a=i.prototype;return a.componentDidMount=function(){r.push(this),o()},a.componentDidUpdate=function(){o()},a.componentWillUnmount=function(){var e=r.indexOf(this);r.splice(e,1),o()},a.render=function(){return u.createElement(e,this.props)},i}(u.PureComponent);return(0,x.A)(a,"displayName","SideEffect("+(e.displayName||e.name||"Component")+")"),a})(function(){return null});var eN=u.forwardRef(function(e,t){return u.createElement(w,(0,l.A)({sideCar:eM,ref:t},e))}),eF=w.propTypes||{};eF.sideCar,function(e,t){if(null!=e){var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r])}}(eF,["sideCar"]),eN.propTypes={};var eI=r(63343),eL=r(31085),eB=null!=(o=eN.default)?o:eN,ez=e=>{let{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:i,children:o,isDisabled:a,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:c}=e,d=(0,u.useCallback)(()=>{(null==t?void 0:t.current)?t.current.focus():(null==n?void 0:n.current)&&0===(0,eI.ep)(n.current).length&&requestAnimationFrame(()=>{var e;null==(e=n.current)||e.focus()})},[t,n]),h=(0,u.useCallback)(()=>{var e;null==(e=null==r?void 0:r.current)||e.focus()},[r]),p=i&&!r;return(0,eL.jsx)(eB,{crossFrame:c,persistentFocus:l,autoFocus:s,disabled:a,onActivation:d,onDeactivation:h,returnFocus:p,children:o})};ez.displayName="FocusLock";var eU=r(54259),eq=function(){return(eq=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(0,h.S)([r,t]),x=eq(eq({},w),i);return u.createElement(u.Fragment,null,d&&u.createElement(f,{sideCar:eV,removeScrollBar:c,shards:p,noIsolation:m,inert:g,setCallbacks:o,allowPinchZoom:!!v,lockRef:r,gapMode:b}),a?u.cloneElement(u.Children.only(s),eq(eq({},x),{ref:k})):u.createElement(void 0===y?"div":y,eq({},x,{className:l,ref:k}),s))});eW.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eW.classNames={fullWidth:eH.pN,zeroRight:eH.Mi};var eY=r(1666),eG=r(18106),eK=r(11405),eX=!1;if("undefined"!=typeof window)try{var eJ=Object.defineProperty({},"passive",{get:function(){return eX=!0,!0}});window.addEventListener("test",eJ,eJ),window.removeEventListener("test",eJ,eJ)}catch(e){eX=!1}var eQ=!!eX&&{passive:!1},eZ=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===r[t])},e0=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),e1(e,n)){var i=e2(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},e1=function(e,t){return"v"===e?eZ(t,"overflowY"):eZ(t,"overflowX")},e2=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},e3=function(e,t,r,n,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*n,l=r.target,u=t.contains(l),c=!1,d=s>0,h=0,p=0;do{var f=e2(e,l),m=f[0],g=f[1]-f[2]-a*m;(m||g)&&e1(e,l)&&(h+=g,p+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(h)||!i&&s>h)?c=!0:!d&&(i&&1>Math.abs(p)||!i&&-s>p)&&(c=!0),c},e5=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},e4=function(e){return[e.deltaX,e.deltaY]},e6=function(e){return e&&"current"in e?e.current:e},e8=0,e9=[];let e7=(0,eY.m)(eV,function(e){var t=u.useRef([]),r=u.useRef([0,0]),n=u.useRef(),i=u.useState(e8++)[0],o=u.useState(eK.T0)[0],a=u.useRef(e);u.useEffect(function(){a.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;iMath.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=e0(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=e0(d,c)),!h)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=i),!i)return!0;var p=n.current||i;return e3(p,t,e,"h"===p?l:u,!0)},[]),l=u.useCallback(function(e){if(e9.length&&e9[e9.length-1]===o){var r="deltaY"in e?e4(e):e5(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(a.current.shards||[]).map(e6).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=u.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=u.useCallback(function(e){r.current=e5(e),n.current=void 0},[]),h=u.useCallback(function(t){c(t.type,e4(t),t.target,s(t,e.lockRef.current))},[]),p=u.useCallback(function(t){c(t.type,e5(t),t.target,s(t,e.lockRef.current))},[]);u.useEffect(function(){return e9.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,eQ),document.addEventListener("touchmove",l,eQ),document.addEventListener("touchstart",d,eQ),function(){e9=e9.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,eQ),document.removeEventListener("touchmove",l,eQ),document.removeEventListener("touchstart",d,eQ)}},[]);var f=e.removeScrollBar,m=e.inert;return u.createElement(u.Fragment,null,m?u.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,f?u.createElement(eG.jp,{gapMode:e.gapMode}):null)});var te=u.forwardRef(function(e,t){return u.createElement(eW,eq({},e,{ref:t,sideCar:e7}))});function tt(e){let{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:l,finalFocusRef:c,returnFocusOnClose:d,preserveScrollBarGap:h,lockFocusAcrossFrames:p,isOpen:f}=(0,a.k3)(),[m,g]=(0,eU.xQ)();(0,u.useEffect)(()=>{!m&&g&&setTimeout(g)},[m,g]);let v=(0,s.y)(n,f);return(0,eL.jsx)(ez,{autoFocus:t,isDisabled:!r,initialFocusRef:i,finalFocusRef:c,restoreFocus:d,contentRef:n,lockFocusAcrossFrames:p,children:(0,eL.jsx)(te,{removeScrollBar:!h,allowPinchZoom:l,enabled:1===v&&o,forwardProps:!0,children:e.children})})}te.classNames=eW.classNames},18658:(e,t,r)=>{"use strict";r.d(t,{c:()=>u});var n=r(18588),i=r(11976),o=r(63552),a=r(60524),s=r(14041),l=r(31085),u=(0,o.R)((e,t)=>{let{className:r,...o}=e,{bodyId:u,setBodyMounted:c}=(0,n.k3)();(0,s.useEffect)(()=>(c(!0),()=>c(!1)),[c]);let d=(0,i.cx)("chakra-modal__body",r),h=(0,n.x5)();return(0,l.jsx)(a.B.div,{ref:t,className:d,id:u,...o,__css:h.body})});u.displayName="ModalBody"},82680:(e,t,r)=>{"use strict";r.d(t,{j:()=>l});var n=r(18588),i=r(11976),o=r(63552),a=r(60524),s=r(31085),l=(0,o.R)((e,t)=>{let{className:r,...o}=e,l=(0,i.cx)("chakra-modal__footer",r),u={display:"flex",alignItems:"center",justifyContent:"flex-end",...(0,n.x5)().footer};return(0,s.jsx)(a.B.footer,{ref:t,...o,__css:u,className:l})});l.displayName="ModalFooter"},81853:(e,t,r)=>{"use strict";r.d(t,{Q7:()=>T,OO:()=>P});var n=r(69014),i=r(31085),o=e=>(0,i.jsx)(n.I,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),a=e=>(0,i.jsx)(n.I,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})}),s=r(14041);function l(e,t,r,n){(0,s.useEffect)(()=>{var i;if(!e.current||!n)return;let o=null!=(i=e.current.ownerDocument.defaultView)?i:window,a=Array.isArray(t)?t:[t],s=new o.MutationObserver(e=>{for(let t of e)"attributes"===t.type&&t.attributeName&&a.includes(t.attributeName)&&r(t)});return s.observe(e.current,{attributes:!0,attributeFilter:a}),()=>s.disconnect()})}var u=r(2902),c=r(5292);function d(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function h(e,t){return Math.max((0,c.FZ)(t),(0,c.FZ)(e))}function p(e,t,r){let n=d(e);if(Number.isNaN(n))return;let i=h(n,t);return(0,c.QX)(n,null!=r?r:i)}var f=r(8994),m=r(93006),g=r(34117),v=r(94800),y=r(11976),b=/^[Ee0-9+\-.]$/;function w(e){return b.test(e)}var k=r(72675),x=r(37754),_=r(63552),S=r(11403),E=r(74108),C=r(60524),[D,A]=(0,x.q)({name:"NumberInputStylesContext",errorMessage:"useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[j,O]=(0,x.q)({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),T=(0,_.R)(function(e,t){let r=(0,S.o5)("NumberInput",e),n=(0,E.MN)(e),{htmlProps:o,...a}=function(e={}){let{focusInputOnChange:t=!0,clampValueOnBlur:r=!0,keepWithinRange:n=!0,min:i=Number.MIN_SAFE_INTEGER,max:o=Number.MAX_SAFE_INTEGER,step:a=1,isReadOnly:b,isDisabled:k,isRequired:x,isInvalid:_,pattern:S="[0-9]*(.[0-9]+)?",inputMode:E="decimal",allowMouseWheel:C,id:D,onChange:A,precision:j,name:O,"aria-describedby":T,"aria-label":P,"aria-labelledby":R,onFocus:M,onBlur:N,onInvalid:F,getAriaValueText:I,isValidCharacter:L,format:B,parse:z,...U}=e,q=(0,u.c)(M),H=(0,u.c)(N),V=(0,u.c)(F),$=(0,u.c)(null!=L?L:w),W=(0,u.c)(I),Y=function(e={}){let{onChange:t,precision:r,defaultValue:n,value:i,step:o=1,min:a=Number.MIN_SAFE_INTEGER,max:l=Number.MAX_SAFE_INTEGER,keepWithinRange:f=!0}=e,m=(0,u.c)(t),[g,v]=(0,s.useState)(()=>{var e;return null==n?"":null!=(e=p(n,o,r))?e:""}),y=void 0!==i,b=y?i:g,w=h(d(b),o),k=null!=r?r:w,x=(0,s.useCallback)(e=>{e!==b&&(y||v(e.toString()),null==m||m(e.toString(),d(e)))},[m,y,b]),_=(0,s.useCallback)(e=>{let t=e;return f&&(t=(0,c.L3)(t,a,l)),(0,c.QX)(t,k)},[k,f,l,a]),S=(0,s.useCallback)((e=o)=>{x(_(""===b?d(e):d(b)+e))},[_,o,x,b]),E=(0,s.useCallback)((e=o)=>{x(_(""===b?d(-e):d(b)-e))},[_,o,x,b]),C=(0,s.useCallback)(()=>{var e;x(null==n?"":null!=(e=p(n,o,r))?e:a)},[n,r,o,x,a]),D=(0,s.useCallback)(e=>{var t;x(null!=(t=p(e,o,k))?t:a)},[k,o,x,a]),A=d(b);return{isOutOfRange:A>l||Ae.split("").filter($).join(""),[$]),eo=(0,s.useCallback)(e=>{var t;return null!=(t=null==z?void 0:z(e))?t:e},[z]),ea=(0,s.useCallback)(e=>{var t;return(null!=(t=null==B?void 0:B(e))?t:e).toString()},[B]);(0,m.w)(()=>{Y.valueAsNumber>o?null==V||V("rangeOverflow",ea(Y.value),Y.valueAsNumber):Y.valueAsNumber{if(ee.current&&ee.current.value!=Y.value){let e=eo(ee.current.value);Y.setValue(ei(e))}},[eo,ei]);let es=(0,s.useCallback)((e=a)=>{Z&&K(e)},[K,Z,a]),el=(0,s.useCallback)((e=a)=>{Z&&X(e)},[X,Z,a]),eu=function(e,t){let[r,n]=(0,s.useState)(!1),[i,o]=(0,s.useState)(null),[a,l]=(0,s.useState)(!0),c=(0,s.useRef)(null),d=()=>clearTimeout(c.current);!function(e,t){let r=(0,u.c)(e);(0,s.useEffect)(()=>{let e=null;return null!==t&&(e=window.setInterval(()=>r(),t)),()=>{e&&window.clearInterval(e)}},[t,r])}(()=>{"increment"===i&&e(),"decrement"===i&&t()},r?50:null);let h=(0,s.useCallback)(()=>{a&&e(),c.current=setTimeout(()=>{l(!1),n(!0),o("increment")},300)},[e,a]),p=(0,s.useCallback)(()=>{a&&t(),c.current=setTimeout(()=>{l(!1),n(!0),o("decrement")},300)},[t,a]),f=(0,s.useCallback)(()=>{l(!0),n(!1),d()},[]);return(0,s.useEffect)(()=>()=>d(),[]),{up:h,down:p,stop:f,isSpinning:r}}(es,el);l(er,"disabled",eu.stop,eu.isSpinning),l(en,"disabled",eu.stop,eu.isSpinning);let ec=(0,s.useCallback)(e=>{e.nativeEvent.isComposing||(G(ei(eo(e.currentTarget.value))),et.current={start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd})},[G,ei,eo]),ed=(0,s.useCallback)(e=>{var t,r,n;null==q||q(e),et.current&&(e.target.selectionStart=null!=(r=et.current.start)?r:null==(t=e.currentTarget.value)?void 0:t.length,e.currentTarget.selectionEnd=null!=(n=et.current.end)?n:e.currentTarget.selectionStart)},[q]),eh=(0,s.useCallback)(e=>{if(e.nativeEvent.isComposing)return;!function(e,t){if(null==e.key)return!0;let r=e.ctrlKey||e.altKey||e.metaKey;return 1!==e.key.length||!!r||t(e.key)}(e,$)&&e.preventDefault();let t=ep(e)*a,r={ArrowUp:()=>es(t),ArrowDown:()=>el(t),Home:()=>G(i),End:()=>G(o)}[e.key];r&&(e.preventDefault(),r(e))},[$,a,es,el,G,i,o]),ep=e=>{let t=1;return(e.metaKey||e.ctrlKey)&&(t=.1),e.shiftKey&&(t=10),t},ef=(0,s.useMemo)(()=>{let e=null==W?void 0:W(Y.value);return null!=e?e:Y.value.toString()||void 0},[Y.value,W]),em=(0,s.useCallback)(()=>{let e=Y.value;""!==Y.value&&(/^[eE]/.test(Y.value.toString())?Y.setValue(""):(Y.valueAsNumbero&&(e=o),Y.cast(e)))},[Y,o,i]),eg=(0,s.useCallback)(()=>{Q(!1),r&&em()},[r,Q,em]),ev=(0,s.useCallback)(()=>{t&&requestAnimationFrame(()=>{var e;null==(e=ee.current)||e.focus()})},[t]),ey=(0,s.useCallback)(e=>{e.preventDefault(),eu.up(),ev()},[ev,eu]),eb=(0,s.useCallback)(e=>{e.preventDefault(),eu.down(),ev()},[ev,eu]);(0,f.M)(()=>ee.current,"wheel",e=>{var t,r;let n=(null!=(r=null==(t=ee.current)?void 0:t.ownerDocument)?r:document).activeElement===ee.current;if(!C||!n)return;e.preventDefault();let i=ep(e)*a,o=Math.sign(e.deltaY);-1===o?es(i):1===o&&el(i)},{passive:!1});let ew=(0,s.useCallback)((e={},t=null)=>{let r=k||n&&Y.isAtMax;return{...e,ref:(0,v.Px)(t,er),role:"button",tabIndex:-1,onPointerDown:(0,y.Hj)(e.onPointerDown,e=>{0!==e.button||r||ey(e)}),onPointerLeave:(0,y.Hj)(e.onPointerLeave,eu.stop),onPointerUp:(0,y.Hj)(e.onPointerUp,eu.stop),disabled:r,"aria-disabled":(0,y.rq)(r)}},[Y.isAtMax,n,ey,eu.stop,k]),ek=(0,s.useCallback)((e={},t=null)=>{let r=k||n&&Y.isAtMin;return{...e,ref:(0,v.Px)(t,en),role:"button",tabIndex:-1,onPointerDown:(0,y.Hj)(e.onPointerDown,e=>{0!==e.button||r||eb(e)}),onPointerLeave:(0,y.Hj)(e.onPointerLeave,eu.stop),onPointerUp:(0,y.Hj)(e.onPointerUp,eu.stop),disabled:r,"aria-disabled":(0,y.rq)(r)}},[Y.isAtMin,n,eb,eu.stop,k]),ex=(0,s.useCallback)((e={},t=null)=>{var r,n,a,s;return{name:O,inputMode:E,type:"text",pattern:S,"aria-labelledby":R,"aria-label":P,"aria-describedby":T,id:D,disabled:k,...e,readOnly:null!=(r=e.readOnly)?r:b,"aria-readonly":null!=(n=e.readOnly)?n:b,"aria-required":null!=(a=e.required)?a:x,required:null!=(s=e.required)?s:x,ref:(0,v.Px)(ee,t),value:ea(Y.value),role:"spinbutton","aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":Number.isNaN(Y.valueAsNumber)?void 0:Y.valueAsNumber,"aria-invalid":(0,y.rq)(null!=_?_:Y.isOutOfRange),"aria-valuetext":ef,autoComplete:"off",autoCorrect:"off",onChange:(0,y.Hj)(e.onChange,ec),onKeyDown:(0,y.Hj)(e.onKeyDown,eh),onFocus:(0,y.Hj)(e.onFocus,ed,()=>Q(!0)),onBlur:(0,y.Hj)(e.onBlur,H,eg)}},[O,E,S,R,P,ea,T,D,k,x,b,_,Y.value,Y.valueAsNumber,Y.isOutOfRange,i,o,ef,ec,eh,ed,H,eg]);return{value:ea(Y.value),valueAsNumber:Y.valueAsNumber,isFocused:J,isDisabled:k,isReadOnly:b,getIncrementButtonProps:ew,getDecrementButtonProps:ek,getInputProps:ex,htmlProps:U}}((0,k.v)(n)),b=(0,s.useMemo)(()=>a,[a]);return(0,i.jsx)(j,{value:b,children:(0,i.jsx)(D,{value:r,children:(0,i.jsx)(C.B.div,{...o,ref:t,className:(0,y.cx)("chakra-numberinput",e.className),__css:{position:"relative",zIndex:0,...r.root}})})})});T.displayName="NumberInput",(0,_.R)(function(e,t){let r=A();return(0,i.jsx)(C.B.div,{"aria-hidden":!0,ref:t,...e,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...r.stepperGroup}})}).displayName="NumberInputStepper";var P=(0,_.R)(function(e,t){let{getInputProps:r}=O(),n=r(e,t),o=A();return(0,i.jsx)(C.B.input,{...n,className:(0,y.cx)("chakra-numberinput__field",e.className),__css:{width:"100%",...o.field}})});P.displayName="NumberInputField";var R=(0,C.B)("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}});(0,_.R)(function(e,t){var r;let n=A(),{getDecrementButtonProps:a}=O(),s=a(e,t);return(0,i.jsx)(R,{...s,__css:n.stepper,children:null!=(r=e.children)?r:(0,i.jsx)(o,{})})}).displayName="NumberDecrementStepper",(0,_.R)(function(e,t){var r;let{getIncrementButtonProps:n}=O(),o=n(e,t),s=A();return(0,i.jsx)(R,{...o,__css:s.stepper,children:null!=(r=e.children)?r:(0,i.jsx)(a,{})})}).displayName="NumberIncrementStepper"},5292:(e,t,r)=>{"use strict";function n(e,t){let r=function(e){let t=parseFloat(e);return"number"!=typeof t||Number.isNaN(t)?0:t}(e),n=10**(null!=t?t:10);return r=Math.round(r*n)/n,t?r.toFixed(t):r.toString()}function i(e){if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r}function o(e,t,r){return(e-t)*100/(r-t)}function a(e,t,r){return(r-t)*e+t}function s(e,t,r){return n(Math.round((e-t)/r)*r+t,i(r))}function l(e,t,r){return null==e?e:(ri,L3:()=>l,QX:()=>n,hp:()=>s,w5:()=>o,wr:()=>a})},77479:(e,t,r)=>{"use strict";function n(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}r.d(t,{o:()=>n})},93185:(e,t,r)=>{"use strict";r.d(t,{h:()=>h});var n=r(66549),i=r(60524),o=r(63552),a=r(27372),s=r(31085),l={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},u=(0,i.B)(a.P.section),c=(0,o.R)(function(e,t){let{variants:r=l,...i}=e,{isOpen:o}=(0,n.C_)();return(0,s.jsx)(u,{ref:t,variants:function(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}(r),initial:!1,animate:o?"enter":"exit",...i})});c.displayName="PopoverTransition";var d=r(11976),h=(0,o.R)(function(e,t){let{rootProps:r,motionProps:o,...a}=e,{getPopoverProps:l,getPopoverPositionerProps:u,onAnimationComplete:h}=(0,n.C_)(),p=(0,n.jm)(),f={position:"relative",display:"flex",flexDirection:"column",...p.content};return(0,s.jsx)(i.B.div,{...u(r),__css:p.popper,className:"chakra-popover__popper",children:(0,s.jsx)(c,{...o,...l(a,t),onAnimationComplete:(0,d.OK)(h,a.onAnimationComplete),className:(0,d.cx)("chakra-popover__content",e.className),__css:f})})});h.displayName="PopoverContent"},19098:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(4777),i=r(10770),o=r(5295),a=r(45116),s=r(95863),l=r(1743),u=r(94800),c=r(11976),d=r(96667),h=r(14041),p={click:"click",hover:"hover"};function f(e,t){return e===t||(null==e?void 0:e.contains(t))}function m(e){var t;let r=e.currentTarget.ownerDocument.activeElement;return null!=(t=e.relatedTarget)?t:r}var g=r(66549),v=r(11403),y=r(74108),b=r(41259),w=r(31085);function k(e){let t=(0,v.o5)("Popover",e),{children:r,...k}=(0,y.MN)(e),x=(0,b.D)(),_=function(e={}){let{closeOnBlur:t=!0,closeOnEsc:r=!0,initialFocusRef:g,id:v,returnFocusOnClose:y=!0,autoFocus:b=!0,arrowSize:w,arrowShadowColor:k,trigger:x=p.click,openDelay:_=200,closeDelay:S=200,isLazy:E,lazyBehavior:C="unmount",computePositionOnMount:D,...A}=e,{isOpen:j,onClose:O,onOpen:T,onToggle:P}=(0,a.j)(e),R=(0,h.useRef)(null),M=(0,h.useRef)(null),N=(0,h.useRef)(null),F=(0,h.useRef)(!1),I=(0,h.useRef)(!1);j&&(I.current=!0);let[L,B]=(0,h.useState)(!1),[z,U]=(0,h.useState)(!1),q=(0,h.useId)(),H=null!=v?v:q,[V,$,W,Y]=["popover-trigger","popover-content","popover-header","popover-body"].map(e=>`${e}-${H}`),{referenceRef:G,getArrowProps:K,getPopperProps:X,getArrowInnerProps:J,forceUpdate:Q}=(0,s.E)({...A,enabled:j||!!D}),Z=(0,n.v)({isOpen:j,ref:N});(0,i.S)({enabled:j,ref:M}),(0,o.X)(N,{focusRef:M,visible:j,shouldFocus:y&&x===p.click}),(0,o.w)(N,{focusRef:g,visible:j,shouldFocus:b&&x===p.click});let ee=(0,d.q)({wasSelected:I.current,enabled:E,mode:C,isSelected:Z.present}),et=(0,h.useCallback)((e={},n=null)=>{let i={...e,style:{...e.style,transformOrigin:l.O3.transformOrigin.varRef,[l.O3.arrowSize.var]:w?`${w}px`:void 0,[l.O3.arrowShadowColor.var]:k},ref:(0,u.Px)(N,n),children:ee?e.children:null,id:$,tabIndex:-1,role:"dialog",onKeyDown:(0,c.Hj)(e.onKeyDown,e=>{r&&"Escape"===e.key&&O()}),onBlur:(0,c.Hj)(e.onBlur,e=>{let r=m(e),n=f(N.current,r),i=f(M.current,r);j&&t&&!n&&!i&&O()}),"aria-labelledby":L?W:void 0,"aria-describedby":z?Y:void 0};return x===p.hover&&(i.role="tooltip",i.onMouseEnter=(0,c.Hj)(e.onMouseEnter,()=>{F.current=!0}),i.onMouseLeave=(0,c.Hj)(e.onMouseLeave,e=>{null!==e.nativeEvent.relatedTarget&&(F.current=!1,setTimeout(()=>O(),S))})),i},[ee,$,L,W,z,Y,x,r,O,j,t,S,k,w]),er=(0,h.useCallback)((e={},t=null)=>X({...e,style:{visibility:j?"visible":"hidden",...e.style}},t),[j,X]),en=(0,h.useCallback)((e,t=null)=>({...e,ref:(0,u.Px)(t,R,G)}),[R,G]),ei=(0,h.useRef)(),eo=(0,h.useRef)(),ea=(0,h.useCallback)(e=>{null==R.current&&G(e)},[G]),es=(0,h.useCallback)((e={},r=null)=>{let n={...e,ref:(0,u.Px)(M,r,ea),id:V,"aria-haspopup":"dialog","aria-expanded":j,"aria-controls":$};return x===p.click&&(n.onClick=(0,c.Hj)(e.onClick,P)),x===p.hover&&(n.onFocus=(0,c.Hj)(e.onFocus,()=>{void 0===ei.current&&T()}),n.onBlur=(0,c.Hj)(e.onBlur,e=>{let r=m(e),n=!f(N.current,r);j&&t&&n&&O()}),n.onKeyDown=(0,c.Hj)(e.onKeyDown,e=>{"Escape"===e.key&&O()}),n.onMouseEnter=(0,c.Hj)(e.onMouseEnter,()=>{F.current=!0,ei.current=window.setTimeout(()=>T(),_)}),n.onMouseLeave=(0,c.Hj)(e.onMouseLeave,()=>{F.current=!1,ei.current&&(clearTimeout(ei.current),ei.current=void 0),eo.current=window.setTimeout(()=>{!1===F.current&&O()},S)})),n},[V,j,$,x,ea,P,T,t,O,_,S]);(0,h.useEffect)(()=>()=>{ei.current&&clearTimeout(ei.current),eo.current&&clearTimeout(eo.current)},[]);let el=(0,h.useCallback)((e={},t=null)=>({...e,id:W,ref:(0,u.Px)(t,e=>{B(!!e)})}),[W]),eu=(0,h.useCallback)((e={},t=null)=>({...e,id:Y,ref:(0,u.Px)(t,e=>{U(!!e)})}),[Y]);return{forceUpdate:Q,isOpen:j,onAnimationComplete:Z.onComplete,onClose:O,getAnchorProps:en,getArrowProps:K,getArrowInnerProps:J,getPopoverPositionerProps:er,getPopoverProps:et,getTriggerProps:es,getHeaderProps:el,getBodyProps:eu}}({...k,direction:x.direction});return(0,w.jsx)(g.pb,{value:_,children:(0,w.jsx)(g.hA,{value:t,children:(0,c.Jg)(r,{isOpen:_.isOpen,onClose:_.onClose,forceUpdate:_.forceUpdate})})})}k.displayName="Popover"},32351:(e,t,r)=>{"use strict";r.d(t,{D:()=>l});var n=r(66549),i=r(63552),o=r(60524),a=r(11976),s=r(31085),l=(0,i.R)(function(e,t){let{getHeaderProps:r}=(0,n.C_)(),i=(0,n.jm)();return(0,s.jsx)(o.B.header,{...r(e,t),className:(0,a.cx)("chakra-popover__header",e.className),__css:i.header})});l.displayName="PopoverHeader"},98903:(e,t,r)=>{"use strict";r.d(t,{d:()=>o});var n=r(66549),i=r(14041);function o(e){let t=i.Children.only(e.children),{getAnchorProps:r}=(0,n.C_)();return(0,i.cloneElement)(t,r(t.props,t.ref))}o.displayName="PopoverAnchor"},79967:(e,t,r)=>{"use strict";r.d(t,{q:()=>l});var n=r(66549),i=r(94259),o=r(63552),a=r(11976),s=r(31085),l=(0,o.R)(function(e,t){let{onClose:r}=(0,n.C_)(),o=(0,n.jm)();return(0,s.jsx)(i.J,{size:"sm",onClick:r,className:(0,a.cx)("chakra-popover__close-btn",e.className),__css:o.closeButton,ref:t,...e})});l.displayName="PopoverCloseButton"},64444:(e,t,r)=>{"use strict";r.d(t,{W:()=>o});var n=r(66549),i=r(14041);function o(e){let t=i.Children.only(e.children),{getTriggerProps:r}=(0,n.C_)();return(0,i.cloneElement)(t,r(t.props,t.ref))}o.displayName="PopoverTrigger"},97864:(e,t,r)=>{"use strict";r.d(t,{e:()=>l});var n=r(66549),i=r(63552),o=r(60524),a=r(11976),s=r(31085),l=(0,i.R)(function(e,t){let{getBodyProps:r}=(0,n.C_)(),i=(0,n.jm)();return(0,s.jsx)(o.B.div,{...r(e,t),className:(0,a.cx)("chakra-popover__body",e.className),__css:i.body})});l.displayName="PopoverBody"},13945:(e,t,r)=>{"use strict";r.d(t,{R:()=>l});var n=r(66549),i=r(60524),o=r(11976),a=r(31085),s=(e,t)=>t?`${e}.${t}, ${t}`:void 0;function l(e){var t;let{bg:r,bgColor:l,backgroundColor:u,shadow:c,boxShadow:d,shadowColor:h}=e,{getArrowProps:p,getArrowInnerProps:f}=(0,n.C_)(),m=(0,n.jm)(),g=null!=(t=null!=r?r:l)?t:u;return(0,a.jsx)(i.B.div,{...p(),className:"chakra-popover__arrow-positioner",children:(0,a.jsx)(i.B.div,{className:(0,o.cx)("chakra-popover__arrow",e.className),...f(e),__css:{"--popper-arrow-shadow-color":s("colors",h),"--popper-arrow-bg":s("colors",g),"--popper-arrow-shadow":s("shadows",null!=c?c:d),...m.arrow}})})}l.displayName="PopoverArrow"},66549:(e,t,r)=>{"use strict";r.d(t,{C_:()=>o,hA:()=>a,jm:()=>s,pb:()=>i});var n=r(37754),[i,o]=(0,n.q)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[a,s]=(0,n.q)({name:"PopoverStylesContext",errorMessage:"usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "})},1743:(e,t,r)=>{"use strict";r.d(t,{Fs:()=>u,Ky:()=>o,O3:()=>i,ed:()=>s});var n=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),i={arrowShadowColor:n("--popper-arrow-shadow-color"),arrowSize:n("--popper-arrow-size","8px"),arrowSizeHalf:n("--popper-arrow-size-half"),arrowBg:n("--popper-arrow-bg"),transformOrigin:n("--popper-transform-origin"),arrowOffset:n("--popper-arrow-offset")};function o(e){return e.includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0}var a={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},s=e=>a[e],l={scroll:!0,resize:!0};function u(e){return"object"==typeof e?{enabled:!0,options:{...l,...e}}:{enabled:e,options:l}}},95863:(e,t,r)=>{"use strict";r.d(t,{E:()=>v});var n=r(1743),i={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{let t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},o={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{a(e)},effect:({state:e})=>()=>{a(e)}},a=e=>{e.elements.popper.style.setProperty(n.O3.transformOrigin.var,(0,n.ed)(e.placement))},s={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{l(e)}},l=e=>{var t;if(!e.placement)return;let r=u(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:n.O3.arrowSize.varRef,height:n.O3.arrowSize.varRef,zIndex:-1});let t={[n.O3.arrowSizeHalf.var]:`calc(${n.O3.arrowSize.varRef} / 2 - 1px)`,[n.O3.arrowOffset.var]:`calc(${n.O3.arrowSizeHalf.varRef} * -1)`};for(let r in t)e.elements.arrow.style.setProperty(r,t[r])}},u=e=>e.startsWith("top")?{property:"bottom",value:n.O3.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:n.O3.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:n.O3.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:n.O3.arrowOffset.varRef}:void 0,c={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{d(e)},effect:({state:e})=>()=>{d(e)}},d=e=>{if(!e.elements.arrow)return;let t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;let r=(0,n.Ky)(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:n.O3.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},h={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},p={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},f=r(94800),m=r(59980),g=r(14041);function v(e={}){let{enabled:t=!0,modifiers:r,placement:a="bottom",strategy:l="absolute",arrowPadding:u=8,eventListeners:d=!0,offset:y,gutter:b=8,flip:w=!0,boundary:k="clippingParents",preventOverflow:x=!0,matchWidth:_,direction:S="ltr"}=e,E=(0,g.useRef)(null),C=(0,g.useRef)(null),D=(0,g.useRef)(null),A=function(e,t="ltr"){var r,n;let i=(null==(r=h[e])?void 0:r[t])||e;return"ltr"===t?i:null!=(n=p[e])?n:i}(a,S),j=(0,g.useRef)(()=>{}),O=(0,g.useCallback)(()=>{var e;t&&E.current&&C.current&&(null==(e=j.current)||e.call(j),D.current=(0,m.n4)(E.current,C.current,{placement:A,modifiers:[c,s,o,{...i,enabled:!!_},{name:"eventListeners",...(0,n.Fs)(d)},{name:"arrow",options:{padding:u}},{name:"offset",options:{offset:null!=y?y:[0,b]}},{name:"flip",enabled:!!w,options:{padding:8}},{name:"preventOverflow",enabled:!!x,options:{boundary:k}},...null!=r?r:[]],strategy:l}),D.current.forceUpdate(),j.current=D.current.destroy)},[A,t,r,_,d,u,y,b,w,x,k,l]);(0,g.useEffect)(()=>()=>{var e;E.current||C.current||(null==(e=D.current)||e.destroy(),D.current=null)},[]);let T=(0,g.useCallback)(e=>{E.current=e,O()},[O]),P=(0,g.useCallback)((e={},t=null)=>({...e,ref:(0,f.Px)(T,t)}),[T]),R=(0,g.useCallback)(e=>{C.current=e,O()},[O]),M=(0,g.useCallback)((e={},t=null)=>({...e,ref:(0,f.Px)(R,t),style:{...e.style,position:l,minWidth:_?void 0:"max-content",inset:"0 auto auto 0"}}),[l,R,_]),N=(0,g.useCallback)((e={},t=null)=>{let{size:r,shadowColor:n,bg:i,style:o,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:function(e){let{size:t,shadowColor:r,bg:n,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),r&&(o["--popper-arrow-shadow-color"]=r),n&&(o["--popper-arrow-bg"]=n),o}(e)}},[]),F=(0,g.useCallback)((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""}),[]);return{update(){var e;null==(e=D.current)||e.update()},forceUpdate(){var e;null==(e=D.current)||e.forceUpdate()},transformOrigin:n.O3.transformOrigin.varRef,referenceRef:T,popperRef:R,getPopperProps:M,getArrowProps:N,getArrowInnerProps:F,getReferenceProps:P}}},40173:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n=r(70588),i=r(34117),o=r(37754),a=r(43144),s=r(14041),l=r(31085),[u,c]=(0,o.q)({strict:!1,name:"PortalContext"}),d="chakra-portal",h=e=>(0,l.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),p=e=>{let{appendToParentPortal:t,children:r}=e,[o,p]=(0,s.useState)(null),f=(0,s.useRef)(null),[,m]=(0,s.useState)({});(0,s.useEffect)(()=>m({}),[]);let g=c(),v=(0,n.T)();(0,i.U)(()=>{if(!o)return;let e=o.ownerDocument,r=t&&null!=g?g:e.body;if(!r)return;f.current=e.createElement("div"),f.current.className=d,r.appendChild(f.current),m({});let n=f.current;return()=>{r.contains(n)&&r.removeChild(n)}},[o]);let y=(null==v?void 0:v.zIndex)?(0,l.jsx)(h,{zIndex:null==v?void 0:v.zIndex,children:r}):r;return f.current?(0,a.createPortal)((0,l.jsx)(u,{value:f.current,children:y}),f.current):(0,l.jsx)("span",{ref:e=>{e&&p(e)}})},f=e=>{let{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,c=null!=o?o:"undefined"!=typeof window?document.body:void 0,h=(0,s.useMemo)(()=>{let e=null==o?void 0:o.ownerDocument.createElement("div");return e&&(e.className=d),e},[o]),[,p]=(0,s.useState)({});return((0,i.U)(()=>p({}),[]),(0,i.U)(()=>{if(h&&c)return c.appendChild(h),()=>{c.removeChild(h)}},[h,c]),c&&h)?(0,a.createPortal)((0,l.jsx)(u,{value:n?h:null,children:t}),h):null};function m(e){let{containerRef:t,...r}={appendToParentPortal:!0,...e};return t?(0,l.jsx)(f,{containerRef:t,...r}):(0,l.jsx)(p,{...r})}m.className=d,m.selector=".chakra-portal",m.displayName="Portal"},70588:(e,t,r)=>{"use strict";r.d(t,{T:()=>a,w:()=>s});var n=r(37754),i=r(31085),[o,a]=(0,n.q)({strict:!1,name:"PortalManagerContext"});function s(e){let{children:t,zIndex:r}=e;return(0,i.jsx)(o,{value:{zIndex:r},children:t})}s.displayName="PortalManager"},34121:(e,t,r)=>{"use strict";r.d(t,{z:()=>h,R:()=>d});var n=r(11976),i=r(94800),o=r(14041),a=r(63552),s=r(60524),l=r(37754),u=r(31085),[c,d]=(0,l.q)({name:"RadioGroupContext",strict:!1}),h=(0,a.R)((e,t)=>{let{colorScheme:r,size:a,variant:l,children:d,className:h,isDisabled:p,isFocusable:f,...m}=e,{value:g,onChange:v,getRootProps:y,name:b,htmlProps:w}=function(e={}){let{onChange:t,value:r,defaultValue:a,name:s,isDisabled:l,isFocusable:u,isNative:c,...d}=e,[h,p]=(0,o.useState)(a||""),f=void 0!==r,m=f?r:h,g=(0,o.useRef)(null),v=(0,o.useCallback)(()=>{let e=g.current;if(!e)return;let t="input:not(:disabled):checked",r=e.querySelector(t);if(r){r.focus();return}t="input:not(:disabled)";let n=e.querySelector(t);null==n||n.focus()},[]),y=(0,o.useId)(),b=`radio-${y}`,w=s||b,k=(0,o.useCallback)(e=>{let r=e&&(0,n.Gv)(e)&&(0,n.Gv)(e.target)?e.target.value:e;f||p(r),null==t||t(String(r))},[t,f]);return{getRootProps:(0,o.useCallback)((e={},t=null)=>({...e,ref:(0,i.Px)(t,g),role:"radiogroup"}),[]),getRadioProps:(0,o.useCallback)((e={},t=null)=>{let r=c?"checked":"isChecked";return{...e,ref:t,name:w,[r]:null!=m?e.value===m:void 0,onChange(e){k(e)},"data-radiogroup":!0}},[c,w,k,m]),name:w,ref:g,focus:v,setValue:p,value:m,onChange:k,isDisabled:l,isFocusable:u,htmlProps:d}}(m),k=(0,o.useMemo)(()=>({name:b,size:a,onChange:v,colorScheme:r,value:g,variant:l,isDisabled:p,isFocusable:f}),[b,a,v,r,g,l,p,f]);return(0,u.jsx)(c,{value:k,children:(0,u.jsx)(s.B.div,{...y(w,t),className:(0,n.cx)("chakra-radio-group",h),children:d})})});h.displayName="RadioGroup"},76352:(e,t,r)=>{"use strict";r.d(t,{s:()=>m});var n=r(34121),i=r(49547),o=r(11976),a=r(25834),s=r(14041),l={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function u(e){e.preventDefault(),e.stopPropagation()}var c=r(63552),d=r(11403),h=r(74108),p=r(60524),f=r(31085),m=(0,c.R)((e,t)=>{var r;let c=(0,n.R)(),{onChange:m,value:g}=e,v=(0,d.o5)("Radio",{...c,...e}),{spacing:y="0.5rem",children:b,isDisabled:w=null==c?void 0:c.isDisabled,isFocusable:k=null==c?void 0:c.isFocusable,inputProps:x,..._}=(0,h.MN)(e),S=e.isChecked;(null==c?void 0:c.value)!=null&&null!=g&&(S=c.value===g);let E=m;(null==c?void 0:c.onChange)&&null!=g&&(E=(0,o.OK)(c.onChange,m));let C=null!=(r=null==e?void 0:e.name)?r:null==c?void 0:c.name,{getInputProps:D,getCheckboxProps:A,getLabelProps:j,getRootProps:O,htmlProps:T}=function(e={}){let{defaultChecked:t,isChecked:r,isFocusable:c,isDisabled:d,isReadOnly:h,isRequired:p,onChange:f,isInvalid:m,name:g,value:v,id:y,"data-radiogroup":b,"aria-describedby":w,...k}=e,x=`radio-${(0,s.useId)()}`,_=(0,i.Uc)(),S=(0,n.R)(),E=_&&!(S||b)?_.id:x;E=null!=y?y:E;let C=null!=d?d:null==_?void 0:_.isDisabled,D=null!=h?h:null==_?void 0:_.isReadOnly,A=null!=p?p:null==_?void 0:_.isRequired,j=null!=m?m:null==_?void 0:_.isInvalid,[O,T]=(0,s.useState)(!1),[P,R]=(0,s.useState)(!1),[M,N]=(0,s.useState)(!1),[F,I]=(0,s.useState)(!1),[L,B]=(0,s.useState)(!!t),z=void 0!==r,U=z?r:L;(0,s.useEffect)(()=>(0,a.Yy)(T),[]);let q=(0,s.useCallback)(e=>{if(D||C){e.preventDefault();return}z||B(e.target.checked),null==f||f(e)},[z,C,D,f]),H=(0,s.useCallback)(e=>{" "===e.key&&I(!0)},[I]),V=(0,s.useCallback)(e=>{" "===e.key&&I(!1)},[I]),$=(0,s.useCallback)((e={},t=null)=>({...e,ref:t,"data-active":(0,o.sE)(F),"data-hover":(0,o.sE)(M),"data-disabled":(0,o.sE)(C),"data-invalid":(0,o.sE)(j),"data-checked":(0,o.sE)(U),"data-focus":(0,o.sE)(P),"data-focus-visible":(0,o.sE)(P&&O),"data-readonly":(0,o.sE)(D),"aria-hidden":!0,onMouseDown:(0,o.Hj)(e.onMouseDown,()=>I(!0)),onMouseUp:(0,o.Hj)(e.onMouseUp,()=>I(!1)),onMouseEnter:(0,o.Hj)(e.onMouseEnter,()=>N(!0)),onMouseLeave:(0,o.Hj)(e.onMouseLeave,()=>N(!1))}),[F,M,C,j,U,P,D,O]),{onFocus:W,onBlur:Y}=null!=_?_:{},G=(0,s.useCallback)((e={},t=null)=>{let r=C&&!c;return{...e,id:E,ref:t,type:"radio",name:g,value:v,onChange:(0,o.Hj)(e.onChange,q),onBlur:(0,o.Hj)(Y,e.onBlur,()=>R(!1)),onFocus:(0,o.Hj)(W,e.onFocus,()=>R(!0)),onKeyDown:(0,o.Hj)(e.onKeyDown,H),onKeyUp:(0,o.Hj)(e.onKeyUp,V),checked:U,disabled:r,readOnly:D,required:A,"aria-invalid":(0,o.rq)(j),"aria-disabled":(0,o.rq)(r),"aria-required":(0,o.rq)(A),"data-readonly":(0,o.sE)(D),"aria-describedby":w,style:l}},[C,c,E,g,v,q,Y,W,H,V,U,D,A,j,w]);return{state:{isInvalid:j,isFocused:P,isChecked:U,isActive:F,isHovered:M,isDisabled:C,isReadOnly:D,isRequired:A},getCheckboxProps:$,getRadioProps:$,getInputProps:G,getLabelProps:(e={},t=null)=>({...e,ref:t,onMouseDown:(0,o.Hj)(e.onMouseDown,u),"data-disabled":(0,o.sE)(C),"data-checked":(0,o.sE)(U),"data-invalid":(0,o.sE)(j)}),getRootProps:(e,t=null)=>({...e,ref:t,"data-disabled":(0,o.sE)(C),"data-checked":(0,o.sE)(U),"data-invalid":(0,o.sE)(j)}),htmlProps:k}}({..._,isChecked:S,isFocusable:k,isDisabled:w,onChange:E,name:C}),[P,R]=function(e,t){let r={},n={};for(let[i,o]of Object.entries(e))t.includes(i)?r[i]=o:n[i]=o;return[r,n]}(T,h.GF),M=A(R),N=D(x,t),F=j(),I=Object.assign({},P,O()),L={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...v.container},B={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...v.control},z={userSelect:"none",marginStart:y,...v.label};return(0,f.jsxs)(p.B.label,{className:"chakra-radio",...I,__css:L,children:[(0,f.jsx)("input",{className:"chakra-radio__input",...N}),(0,f.jsx)(p.B.span,{className:"chakra-radio__control",...M,__css:B}),b&&(0,f.jsx)(p.B.span,{className:"chakra-radio__label",...F,__css:z,children:b})]})});m.displayName="Radio"},76704:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});var n=r(14041);function i(e){return n.Children.toArray(e).filter(e=>(0,n.isValidElement)(e))}},37754:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});var n=r(14041);function i(e={}){let{name:t,strict:r=!0,hookName:o="useContext",providerName:a="Provider",errorMessage:s,defaultValue:l}=e,u=(0,n.createContext)(l);return u.displayName=t,[u.Provider,function e(){var t;let i=(0,n.useContext)(u);if(!i&&r){let r=Error(null!=s?s:`${o} returned \`undefined\`. Seems you forgot to wrap component within ${a}`);throw r.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,r,e),r}return i},u]}},82434:(e,t,r)=>{"use strict";r.d(t,{O:()=>s,v:()=>l});var n=r(34117),i=r(14041),o=r(31085),a=(0,i.createContext)({getDocument:()=>document,getWindow:()=>window});function s({defer:e}={}){let[,t]=(0,i.useReducer)(e=>e+1,0);return(0,n.U)(()=>{e&&t()},[e]),(0,i.useContext)(a)}function l(e){let{children:t,environment:r,disabled:n}=e,s=(0,i.useRef)(null),l=(0,i.useMemo)(()=>r||{getDocument:()=>{var e,t;return null!=(t=null==(e=s.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=s.current)?void 0:e.ownerDocument.defaultView)?t:window}},[r]),u=!n||!r;return(0,o.jsxs)(a.Provider,{value:l,children:[t,u&&(0,o.jsx)("span",{id:"__chakra_env",hidden:!0,ref:s})]})}a.displayName="EnvironmentContext",l.displayName="EnvironmentProvider"},4777:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=r(14041),i=r(8994),o=r(88754);function a(e){let{isOpen:t,ref:r}=e,[a,s]=(0,n.useState)(t),[l,u]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{l||(s(t),u(!0))},[t,l,a]),(0,i.M)(()=>r.current,"animationend",()=>{s(t)}),{present:!(!t&&!a),onComplete(){var e;let t=new((0,o.mD)(r.current)).CustomEvent("animationend",{bubbles:!0});null==(e=r.current)||e.dispatchEvent(t)}}}},2902:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(14041);function i(e,t=[]){let r=(0,n.useRef)(e);return(0,n.useEffect)(()=>{r.current=e}),(0,n.useCallback)((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)},t)}},58470:(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n=r(14041),i=r(2902);function o(e){let{value:t,defaultValue:r,onChange:o,shouldUpdate:a=(e,t)=>e!==t}=e,s=(0,i.c)(o),l=(0,i.c)(a),[u,c]=(0,n.useState)(r),d=void 0!==t,h=d?t:u,p=(0,i.c)(e=>{let t="function"==typeof e?e(h):e;l(h,t)&&(d||c(t),s(t))},[d,s,h,l]);return[h,p]}},45116:(e,t,r)=>{"use strict";r.d(t,{j:()=>o});var n=r(2902),i=r(14041);function o(e={}){let{onClose:t,onOpen:r,isOpen:a,id:s}=e,l=(0,n.c)(r),u=(0,n.c)(t),[c,d]=(0,i.useState)(e.defaultIsOpen||!1),h=void 0!==a?a:c,p=void 0!==a,f=(0,i.useId)(),m=null!=s?s:`disclosure-${f}`,g=(0,i.useCallback)(()=>{p||d(!1),null==u||u()},[p,u]),v=(0,i.useCallback)(()=>{p||d(!0),null==l||l()},[p,l]),y=(0,i.useCallback)(()=>{h?g():v()},[h,v,g]);return{isOpen:h,onOpen:v,onClose:g,onToggle:y,isControlled:p,getButtonProps:function(e={}){return{...e,"aria-expanded":h,"aria-controls":m,onClick(t){var r;null==(r=e.onClick)||r.call(e,t),y()}}},getDisclosureProps:function(e={}){return{...e,hidden:!h,id:m}}}}},8994:(e,t,r)=>{"use strict";r.d(t,{M:()=>o});var n=r(14041),i=r(2902);function o(e,t,r,o){let a=(0,i.c)(r);return(0,n.useEffect)(()=>{let n="function"==typeof e?e():null!=e?e:document;if(r&&n)return n.addEventListener(t,a,o),()=>{n.removeEventListener(t,a,o)}},[t,e,o,a,r]),()=>{let r="function"==typeof e?e():null!=e?e:document;null==r||r.removeEventListener(t,a,o)}}},5295:(e,t,r)=>{"use strict";r.d(t,{X:()=>c,w:()=>h});var n=r(88754),i=r(45886),o=r(63343),a=r(8994),s=r(34117),l=r(93006),u=r(14041);function c(e,t){let{shouldFocus:r,visible:o,focusRef:a}=t,s=r&&!o;(0,l.w)(()=>{let t;if(!s||function(e){let t=e.current;if(!t)return!1;let r=(0,n.bq)(t);return!(!r||t.contains(r))&&!!(0,i.AO)(r)}(e))return;let r=(null==a?void 0:a.current)||e.current;if(r)return t=requestAnimationFrame(()=>{r.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(t)}},[s,e,a])}var d={preventScroll:!0,shouldFocus:!1};function h(e,t=d){let{focusRef:r,preventScroll:n,shouldFocus:i,visible:c}=t,p="current"in e?e.current:e,f=i&&c,m=(0,u.useRef)(f),g=(0,u.useRef)(c);(0,s.U)(()=>{!g.current&&c&&(m.current=f),g.current=c},[c,f]);let v=(0,u.useCallback)(()=>{if(c&&p&&m.current&&(m.current=!1,!p.contains(document.activeElement))){if(null==r?void 0:r.current)requestAnimationFrame(()=>{var e;null==(e=r.current)||e.focus({preventScroll:n})});else{let e=(0,o.ep)(p);e.length>0&&requestAnimationFrame(()=>{e[0].focus({preventScroll:n})})}}},[c,n,p,r]);(0,l.w)(()=>{v()},[v]),(0,a.M)(p,"transitionend",v)}},10770:(e,t,r)=>{"use strict";r.d(t,{S:()=>u});var n=r(8994),i=()=>"undefined"!=typeof window,o=e=>i()&&e.test(navigator.vendor),a=e=>i()&&e.test(function(){var e;let t=navigator.userAgentData;return null!=(e=null==t?void 0:t.platform)?e:navigator.platform}()),s=()=>a(/mac|iphone|ipad|ipod/i),l=()=>s()&&o(/apple/i);function u(e){let{ref:t,elements:r,enabled:i}=e,o=()=>{var e,r;return null!=(r=null==(e=t.current)?void 0:e.ownerDocument)?r:document};(0,n.M)(o,"pointerdown",e=>{if(!l()||!i)return;let n=e.target,a=(null!=r?r:[t]).some(e=>{let t="current"in e?e.current:e;return(null==t?void 0:t.contains(n))||t===n});o().activeElement!==n&&a&&(e.preventDefault(),n.focus())})}},94800:(e,t,r)=>{"use strict";r.d(t,{Px:()=>i,SV:()=>o});var n=r(14041);function i(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(r){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}}(e,t)})}}function o(...e){return(0,n.useMemo)(()=>i(...e),e)}},34117:(e,t,r)=>{"use strict";r.d(t,{U:()=>i});var n=r(14041),i=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:n.useEffect},93006:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(14041);function i(e,t){let r=(0,n.useRef)(!1),i=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(r.current&&i.current)return e();i.current=!0},t),(0,n.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[])}},79977:(e,t,r)=>{"use strict";r.d(t,{P:()=>i});var n=r(99435);function i(...e){return t=>{e.forEach(e=>(function(e,t){if(null!=e){if((0,n.Tn)(e)){e(t);return}try{e.current=t}catch(r){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}})(e,t))}}},56077:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});var n=r(14041);function i(e={}){let{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,a=(0,n.createContext)(void 0);return a.displayName=o,[a.Provider,function e(){var i;let o=(0,n.useContext)(a);if(!o&&t){let t=Error(r);throw t.name="ContextError",null==(i=Error.captureStackTrace)||i.call(Error,t,e),t}return o},a]}},71001:(e,t,r)=>{"use strict";r.d(t,{s:()=>D});var n,i,o=r(15428),a=r(31085),s=String.raw,l=s` :root, :host { --chakra-vh: 100vh; } @supports (height: -webkit-fill-available) { :root, :host { --chakra-vh: -webkit-fill-available; } } @supports (height: -moz-fill-available) { :root, :host { --chakra-vh: -moz-fill-available; } } @supports (height: 100dvh) { :root, :host { --chakra-vh: 100dvh; } } `,u=()=>(0,a.jsx)(o.mL,{styles:l}),c=({scope:e=""})=>(0,a.jsx)(o.mL,{styles:s` html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale; touch-action: manipulation; } body { position: relative; min-height: 100%; margin: 0; font-feature-settings: "kern"; } ${e} :where(*, *::before, *::after) { border-width: 0; border-style: solid; box-sizing: border-box; word-wrap: break-word; } main { display: block; } ${e} hr { border-top-width: 1px; box-sizing: content-box; height: 0; overflow: visible; } ${e} :where(pre, code, kbd,samp) { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 1em; } ${e} a { background-color: transparent; color: inherit; text-decoration: inherit; } ${e} abbr[title] { border-bottom: none; text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; } ${e} :where(b, strong) { font-weight: bold; } ${e} small { font-size: 80%; } ${e} :where(sub,sup) { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } ${e} sub { bottom: -0.25em; } ${e} sup { top: -0.5em; } ${e} img { border-style: none; } ${e} :where(button, input, optgroup, select, textarea) { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } ${e} :where(button, input) { overflow: visible; } ${e} :where(button, select) { text-transform: none; } ${e} :where( button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner ) { border-style: none; padding: 0; } ${e} fieldset { padding: 0.35em 0.75em 0.625em; } ${e} legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; } ${e} progress { vertical-align: baseline; } ${e} textarea { overflow: auto; } ${e} :where([type="checkbox"], [type="radio"]) { box-sizing: border-box; padding: 0; } ${e} input[type="number"]::-webkit-inner-spin-button, ${e} input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none !important; } ${e} input[type="number"] { -moz-appearance: textfield; } ${e} input[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; } ${e} input[type="search"]::-webkit-search-decoration { -webkit-appearance: none !important; } ${e} ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } ${e} details { display: block; } ${e} summary { display: list-item; } template { display: none; } [hidden] { display: none !important; } ${e} :where( blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre ) { margin: 0; } ${e} button { background: transparent; padding: 0; } ${e} fieldset { margin: 0; padding: 0; } ${e} :where(ol, ul) { margin: 0; padding: 0; } ${e} textarea { resize: vertical; } ${e} :where(button, [role="button"]) { cursor: pointer; } ${e} button::-moz-focus-inner { border: 0 !important; } ${e} table { border-collapse: collapse; } ${e} :where(h1, h2, h3, h4, h5, h6) { font-size: inherit; font-weight: inherit; } ${e} :where(button, input, optgroup, select, textarea) { padding: 0; line-height: inherit; color: inherit; } ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { display: block; } ${e} :where(img, video) { max-width: 100%; height: auto; } [data-js-focus-visible] :focus:not([data-focus-visible-added]):not( [data-focus-visible-disabled] ) { outline: none; box-shadow: none; } ${e} select::-ms-expand { display: none; } ${l} `}),d=r(70588),h=r(99740),p=r(56824),f={light:"chakra-ui-light",dark:"chakra-ui-dark"},m="chakra-ui-color-mode",g=function(e){return{ssr:!1,type:"localStorage",get(t){let r;if(!(null==globalThis?void 0:globalThis.document))return t;try{r=localStorage.getItem(e)||t}catch(e){}return r||t},set(t){try{localStorage.setItem(e,t)}catch(e){}}}}(m);n=0;var v=r(34117),y=r(14041),b=()=>{};function w(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function k(e){let{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:s=g}=e,l="dark"===i?"dark":"light",[u,c]=(0,y.useState)(()=>w(s,l)),[d,h]=(0,y.useState)(()=>w(s)),{getSystemTheme:m,setClassName:k,setDataset:x,addListener:_}=(0,y.useMemo)(()=>(function(e={}){let{preventTransition:t=!0}=e,r={setDataset:e=>{let n=t?r.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==n||n()},setClassName(e){document.body.classList.add(e?f.dark:f.light),document.body.classList.remove(e?f.light:f.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!=(t=r.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){let t=r.query(),n=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"==typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},preventTransition(){let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return r})({preventTransition:o}),[o]),S="system"!==i||u?u:d,E=(0,y.useCallback)(e=>{let t="system"===e?m():e;c(t),k("dark"===t),x(t),s.set(t)},[s,m,k,x]);(0,v.U)(()=>{"system"===i&&h(m())},[]),(0,y.useEffect)(()=>{let e=s.get();if(e){E(e);return}if("system"===i){E("system");return}E(l)},[s,l,i,E]);let C=(0,y.useCallback)(()=>{E("dark"===S?"light":"dark")},[S,E]);(0,y.useEffect)(()=>{if(n)return _(E)},[n,_,E]);let D=(0,y.useMemo)(()=>({colorMode:null!=t?t:S,toggleColorMode:t?b:C,setColorMode:t?b:E,forced:void 0!==t}),[S,C,E,t]);return(0,a.jsx)(p.Ig.Provider,{value:D,children:r})}k.displayName="ColorModeProvider";var x=r(82434),_=e=>{let{children:t,colorModeManager:r,portalZIndex:n,resetScope:i,resetCSS:o=!0,theme:s={},environment:l,cssVarsRoot:p,disableEnvironment:f,disableGlobalStyle:m}=e,g=(0,a.jsx)(x.v,{environment:l,disabled:f,children:t});return(0,a.jsx)(h.NP,{theme:s,cssVarsRoot:p,children:(0,a.jsxs)(k,{colorModeManager:r,options:s.config,children:[o?(0,a.jsx)(c,{scope:i}):(0,a.jsx)(u,{}),!m&&(0,a.jsx)(h.zy,{}),n?(0,a.jsx)(d.w,{zIndex:n,children:g}):g]})})},S=r(45093),E=r(67417),C=e=>function({children:t,theme:r=e,toastOptions:n,...i}){return(0,a.jsxs)(_,{theme:r,...i,children:[(0,a.jsx)(E.ym,{value:null==n?void 0:n.defaultOptions,children:t}),(0,a.jsx)(E.tE,{...n})]})},D=C(S.w4);C(S.$7)},11976:(e,t,r)=>{"use strict";r.d(t,{Gv:()=>i,Hj:()=>c,Jg:()=>a,OK:()=>d,R8:()=>o,cx:()=>n,rq:()=>u,sE:()=>l});var n=(...e)=>e.filter(Boolean).join(" ");function i(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}var o=e=>{let{condition:t,message:r}=e};function a(e,...t){return s(e)?e(...t):e}var s=e=>"function"==typeof e,l=e=>e?"":void 0,u=e=>!!e||void 0;function c(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function d(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}},62230:(e,t,r)=>{"use strict";r.d(t,{E:()=>v});var n=r(14041),i=r(11976),o=r(60524),a=r(74108),s=r(15428),l=r(63552),u=r(11403),c=r(82223),d=r(31085),h=(0,o.B)("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),p=(0,a.Vg)("skeleton-start-color"),f=(0,a.Vg)("skeleton-end-color"),m=(0,s.i7)({from:{opacity:0},to:{opacity:1}}),g=(0,s.i7)({from:{borderColor:p.reference,background:p.reference},to:{borderColor:f.reference,background:f.reference}}),v=(0,l.R)((e,t)=>{let r={...e,fadeDuration:"number"==typeof e.fadeDuration?e.fadeDuration:.4,speed:"number"==typeof e.speed?e.speed:.8},s=(0,u.Vl)("Skeleton",r),l=function(){let e=(0,n.useRef)(!0);return(0,n.useEffect)(()=>{e.current=!1},[]),e.current}(),{startColor:v="",endColor:y="",isLoaded:b,fadeDuration:w,speed:k,className:x,fitContent:_,...S}=(0,a.MN)(r),[E,C]=(0,c.rd)("colors",[v,y]),D=function(e){let t=(0,n.useRef)();return(0,n.useEffect)(()=>{t.current=e},[e]),t.current}(b),A=(0,i.cx)("chakra-skeleton",x),j={...E&&{[p.variable]:E},...C&&{[f.variable]:C}};if(b){let e=l||D?"none":`${m} ${w}s`;return(0,d.jsx)(o.B.div,{ref:t,className:A,__css:{animation:e},...S})}return(0,d.jsx)(h,{ref:t,className:A,...S,__css:{width:_?"fit-content":void 0,...s,...j,_dark:{...s._dark,...j},animation:`${k}s linear infinite alternate ${g}`}})});v.displayName="Skeleton"},22495:(e,t,r)=>{"use strict";r.d(t,{r:()=>l});var n=r(62230),i=r(43421),o=r(60524),a=r(11976),s=r(31085),l=e=>{let{noOfLines:t=3,spacing:r="0.5rem",skeletonHeight:l="0.5rem",className:u,startColor:c,endColor:d,isLoaded:h,fadeDuration:p,speed:f,variant:m,size:g,colorScheme:v,children:y,...b}=e,w=(0,i.A)("number"==typeof t?[t]:t)||3,k=Array(w).fill(1).map((e,t)=>t+1),x=e=>w>1&&e===k.length?"80%":"100%",_=(0,a.cx)("chakra-skeleton__group",u);return(0,s.jsx)(o.B.div,{className:_,...b,children:k.map((e,t)=>{if(h&&t>0)return null;let i=h?null:{mb:e===k.length?"0":r,width:x(e),height:l};return(0,s.jsx)(n.E,{startColor:c,endColor:d,isLoaded:h,fadeDuration:p,speed:f,variant:m,size:g,colorScheme:v,...i,children:0===t?y:void 0},k.length.toString()+e)})})};l.displayName="SkeletonText"},1984:(e,t,r)=>{"use strict";r.d(t,{Ap:()=>et,hJ:()=>ei,OQ:()=>er,hB:()=>en});var n=e=>e?"":void 0,i=e=>!!e||void 0,o=(...e)=>e.filter(Boolean).join(" ");function a(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function s(e){let{orientation:t,vertical:r,horizontal:n}=e;return"vertical"===t?r:n}var l={width:0,height:0},u=e=>e||l;function c(e,t="page"){return e.touches?function(e,t="page"){let r=e.touches[0]||e.changedTouches[0];return{x:r[`${t}X`],y:r[`${t}Y`]}}(e,t):function(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}(e,t)}function d(e,t,r,n){var i;return i=function(e,t=!1){function r(t){e(t,{point:c(t)})}return t?e=>{let t=function(e){var t;let r=null!=(t=e.view)?t:window;return void 0!==r.PointerEvent&&e instanceof r.PointerEvent?!("mouse"!==e.pointerType):e instanceof r.MouseEvent}(e);(!t||t&&0===e.button)&&r(e)}:r}(r,"pointerdown"===t),e.addEventListener(t,i,n),()=>{e.removeEventListener(t,i,n)}}let h=1/60*1e3,p="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),f="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(p()),h),m=!0,g=!1,v=!1,y={delta:0,timestamp:0},b=["read","update","preRender","render","postRender"],w=b.reduce((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:r;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(n=t.length)),e},cancel:e=>{let t=r.indexOf(e);-1!==t&&r.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length)for(let r=0;rg=!0),e),{}),k=b.reduce((e,t)=>{let r=w[t];return e[t]=(e,t=!1,n=!1)=>(g||E(),r.schedule(e,t,n)),e},{}),x=b.reduce((e,t)=>(e[t]=w[t].cancel,e),{});b.reduce((e,t)=>(e[t]=()=>w[t].process(y),e),{});let _=e=>w[e].process(y),S=e=>{g=!1,y.delta=m?h:Math.max(Math.min(e-y.timestamp,40),1),y.timestamp=e,v=!0,b.forEach(_),v=!1,g&&(m=!1,f(S))},E=()=>{g=!0,m=!0,v||f(S)},C=()=>y;var D=Object.defineProperty,A=(e,t,r)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t,r)=>(A(e,"symbol"!=typeof t?t+"":t,r),r),O=class{constructor(e,t,r){var n;if(j(this,"history",[]),j(this,"startEvent",null),j(this,"lastEvent",null),j(this,"lastEventInfo",null),j(this,"handlers",{}),j(this,"removeListeners",()=>{}),j(this,"threshold",3),j(this,"win"),j(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;let e=P(this.lastEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){return"number"==typeof e&&"number"==typeof t?M(e,t):N(e)&&N(t)?Math.sqrt(M(e.x,t.x)**2+M(e.y,t.y)**2):0}(e.offset,{x:0,y:0})>=this.threshold;if(!t&&!r)return;let{timestamp:n}=C();this.history.push({...e.point,timestamp:n});let{onStart:i,onMove:o}=this.handlers;t||(null==i||i(this.lastEvent,e),this.startEvent=this.lastEvent),null==o||o(this.lastEvent,e)}),j(this,"onPointerMove",(e,t)=>{this.lastEvent=e,this.lastEventInfo=t,k.update(this.updatePoint,!0)}),j(this,"onPointerUp",(e,t)=>{let r=P(t,this.history),{onEnd:n,onSessionEnd:i}=this.handlers;null==i||i(e,r),this.end(),n&&this.startEvent&&(null==n||n(e,r))}),this.win=null!=(n=e.view)?n:window,function(e){return!!e.touches&&e.touches.length>1}(e))return;this.handlers=t,r&&(this.threshold=r),e.stopPropagation(),e.preventDefault();let i={point:c(e)},{timestamp:o}=C();this.history=[{...i.point,timestamp:o}];let{onSessionStart:a}=t;null==a||a(e,P(i,this.history)),this.removeListeners=function(...e){return t=>e.reduce((e,t)=>t(e),t)}(d(this.win,"pointermove",this.onPointerMove),d(this.win,"pointerup",this.onPointerUp),d(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;null==(e=this.removeListeners)||e.call(this),x.update(this.updatePoint)}};function T(e,t){return{x:e.x-t.x,y:e.y-t.y}}function P(e,t){return{point:e.point,delta:T(e.point,t[t.length-1]),offset:T(e.point,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=e[e.length-1];for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>R(.1)));)r--;if(!n)return{x:0,y:0};let o=(i.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}var R=e=>1e3*e;function M(e,t){return Math.abs(e-t)}function N(e){return"x"in e&&"y"in e}var F=r(14041);function I(e){let t=(0,F.useRef)(null);return t.current=e,t}var L=r(2902),B=r(93006),z=r(58470),U=(null==globalThis?void 0:globalThis.document)?F.useLayoutEffect:F.useEffect,q=r(94800),H=r(5292),V=r(37754),$=r(63552),W=r(11403),Y=r(74108),G=r(41259),K=r(60524),X=r(31085),[J,Q]=(0,V.q)({name:"SliderContext",hookName:"useSliderContext",providerName:""}),[Z,ee]=(0,V.q)({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),et=(0,$.R)((e,t)=>{var r;let c={...e,orientation:null!=(r=null==e?void 0:e.orientation)?r:"horizontal"},h=(0,W.o5)("Slider",c),p=(0,Y.MN)(c),{direction:f}=(0,G.D)();p.direction=f;let{getInputProps:m,getRootProps:g,...v}=function(e){var t;let{min:r=0,max:o=100,onChange:c,value:h,defaultValue:p,isReversed:f,direction:m="ltr",orientation:g="horizontal",id:v,isDisabled:y,isReadOnly:b,onChangeStart:w,onChangeEnd:k,step:x=1,getAriaValueText:_,"aria-valuetext":S,"aria-label":E,"aria-labelledby":C,name:D,focusThumbOnChange:A=!0,...j}=e,T=(0,L.c)(w),P=(0,L.c)(k),R=(0,L.c)(_),M=function(e){let{isReversed:t,direction:r,orientation:n}=e;return"ltr"===r||"vertical"===n?t:!t}({isReversed:f,direction:m,orientation:g}),[N,V]=(0,z.i)({value:h,defaultValue:null!=p?p:o{var t,r;if(!ei.current)return;let n=en.current;n.eventSource="pointer";let i=ei.current.getBoundingClientRect(),{clientX:o,clientY:a}=null!=(r=null==(t=e.touches)?void 0:t[0])?r:e,s=(er?i.bottom-a:o-i.left)/(er?i.height:i.width);M&&(s=1-s);let l=(0,H.wr)(s,n.min,n.max);return n.step&&(l=parseFloat((0,H.hp)(l,n.min,n.step))),l=(0,H.L3)(l,n.min,n.max)},[er,M,en]),eh=(0,F.useCallback)(e=>{let t=en.current;t.isInteractive&&(e=parseFloat((0,H.hp)(e,t.min,J)),V(e=(0,H.L3)(e,t.min,t.max)))},[J,V,en]),ep=(0,F.useMemo)(()=>({stepUp(e=J){eh(M?Q-e:Q+e)},stepDown(e=J){eh(M?Q+e:Q-e)},reset(){eh(p||0)},stepTo(e){eh(e)}}),[eh,M,Q,J,p]),ef=(0,F.useCallback)(e=>{let t=en.current,r={ArrowRight:()=>ep.stepUp(),ArrowUp:()=>ep.stepUp(),ArrowLeft:()=>ep.stepDown(),ArrowDown:()=>ep.stepDown(),PageUp:()=>ep.stepUp(X),PageDown:()=>ep.stepDown(X),Home:()=>eh(t.min),End:()=>eh(t.max)}[e.key];r&&(e.preventDefault(),e.stopPropagation(),r(e),t.eventSource="keyboard")},[ep,eh,X,en]),em=null!=(t=null==R?void 0:R(Q))?t:S,eg=function(e){let[t]=function({getNodes:e,observeMutation:t=!0}){let[r,n]=(0,F.useState)([]),[i,o]=(0,F.useState)(0);return U(()=>{let r=e(),i=r.map((e,t)=>(function(e,t){if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});let r=new(e.ownerDocument.defaultView??window).ResizeObserver(r=>{let n,i;if(!Array.isArray(r)||!r.length)return;let[o]=r;if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;t({width:n,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)})(e,e=>{n(r=>[...r.slice(0,t),e,...r.slice(t+1)])}));if(t){let e=r[0];i.push(function(e,t){var r,n;if(!e||!e.parentElement)return;let i=new(null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window).MutationObserver(()=>{t()});return i.observe(e.parentElement,{childList:!0}),()=>{i.disconnect()}}(e,()=>{o(e=>e+1)}))}return()=>{i.forEach(e=>{null==e||e()})}},[i]),r}({observeMutation:!1,getNodes:()=>["object"==typeof e&&null!==e&&"current"in e?e.current:e]});return t}(eo),{getThumbStyle:ev,rootStyle:ey,trackStyle:eb,innerTrackStyle:ew}=(0,F.useMemo)(()=>{let e=en.current,t=null!=eg?eg:{width:0,height:0};return function(e){let{orientation:t,thumbPercents:r,thumbRects:n,isReversed:i}=e,o="vertical"===t?n.reduce((e,t)=>u(e).height>u(t).height?e:t,l):n.reduce((e,t)=>u(e).width>u(t).width?e:t,l),a={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...s({orientation:t,vertical:o?{paddingLeft:o.width/2,paddingRight:o.width/2}:{},horizontal:o?{paddingTop:o.height/2,paddingBottom:o.height/2}:{}})},c={position:"absolute",...s({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},d=1===r.length,h=[0,i?100-r[0]:r[0]],p=d?h:r,f=p[0];!d&&i&&(f=100-f);let m=Math.abs(p[p.length-1]-p[0]),g={...c,...s({orientation:t,vertical:i?{height:`${m}%`,top:`${f}%`}:{height:`${m}%`,bottom:`${f}%`},horizontal:i?{width:`${m}%`,right:`${f}%`}:{width:`${m}%`,left:`${f}%`}})};return{trackStyle:c,innerTrackStyle:g,rootStyle:a,getThumbStyle:e=>{var i;let o=null!=(i=n[e])?i:l;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...s({orientation:t,vertical:{bottom:`calc(${r[e]}% - ${o.height/2}px)`},horizontal:{left:`calc(${r[e]}% - ${o.width/2}px)`}})}}}}({isReversed:M,orientation:e.orientation,thumbRects:[t],thumbPercents:[et]})},[M,eg,et,en]),ek=(0,F.useCallback)(()=>{en.current.focusThumbOnChange&&setTimeout(()=>{var e;return null==(e=eo.current)?void 0:e.focus()})},[en]);function ex(e){let t=ed(e);null!=t&&t!==en.current.value&&V(t)}(0,B.w)(()=>{let e=en.current;ek(),"keyboard"===e.eventSource&&(null==P||P(e.value))},[Q,P]),function(e,t){let{onPan:r,onPanStart:n,onPanEnd:i,onPanSessionStart:o,onPanSessionEnd:a,threshold:s}=t,l=!!(r||n||i||o||a),u=(0,F.useRef)(null),c=I({onSessionStart:o,onSessionEnd:a,onStart:n,onMove:r,onEnd(e,t){u.current=null,null==i||i(e,t)}});(0,F.useEffect)(()=>{var e;null==(e=u.current)||e.updateHandlers(c.current)}),(0,F.useEffect)(()=>{let t=e.current;if(t&&l)return d(t,"pointerdown",function(e){u.current=new O(e,c.current,s)})},[e,l,c,s]),(0,F.useEffect)(()=>()=>{var e;null==(e=u.current)||e.end(),u.current=null},[])}(ea,{onPanSessionStart(e){let t=en.current;t.isInteractive&&(W(!0),ek(),ex(e),null==T||T(t.value))},onPanSessionEnd(){let e=en.current;e.isInteractive&&(W(!1),null==P||P(e.value))},onPan(e){en.current.isInteractive&&ex(e)}});let e_=(0,F.useCallback)((e={},t=null)=>({...e,...j,ref:(0,q.Px)(t,ea),tabIndex:-1,"aria-disabled":i(y),"data-focused":n(Y),style:{...e.style,...ey}}),[j,y,Y,ey]),eS=(0,F.useCallback)((e={},t=null)=>({...e,ref:(0,q.Px)(t,ei),id:ec,"data-disabled":n(y),style:{...e.style,...eb}}),[y,ec,eb]),eE=(0,F.useCallback)((e={},t=null)=>({...e,ref:t,style:{...e.style,...ew}}),[ew]),eC=(0,F.useCallback)((e={},t=null)=>({...e,ref:(0,q.Px)(t,eo),role:"slider",tabIndex:K?0:void 0,id:eu,"data-active":n($),"aria-valuetext":em,"aria-valuemin":r,"aria-valuemax":o,"aria-valuenow":Q,"aria-orientation":g,"aria-disabled":i(y),"aria-readonly":i(b),"aria-label":E,"aria-labelledby":E?void 0:C,style:{...e.style,...ev(0)},onKeyDown:a(e.onKeyDown,ef),onFocus:a(e.onFocus,()=>G(!0)),onBlur:a(e.onBlur,()=>G(!1))}),[K,eu,$,em,r,o,Q,g,y,b,E,C,ev,ef]),eD=(0,F.useCallback)((e,t=null)=>{let i=!(e.valueo),a=Q>=e.value,s=(0,H.w5)(e.value,r,o),l={position:"absolute",pointerEvents:"none",...function(e){let{orientation:t,vertical:r,horizontal:n}=e;return"vertical"===t?r:n}({orientation:g,vertical:{bottom:M?`${100-s}%`:`${s}%`},horizontal:{left:M?`${100-s}%`:`${s}%`}})};return{...e,ref:t,role:"presentation","aria-hidden":!0,"data-disabled":n(y),"data-invalid":n(!i),"data-highlighted":n(a),style:{...e.style,...l}}},[y,M,o,r,g,Q]),eA=(0,F.useCallback)((e={},t=null)=>({...e,ref:t,type:"hidden",value:Q,name:D}),[D,Q]);return{state:{value:Q,isFocused:Y,isDragging:$},actions:ep,getRootProps:e_,getTrackProps:eS,getInnerTrackProps:eE,getThumbProps:eC,getMarkerProps:eD,getInputProps:eA}}(p),y=g(),b=m({},t);return(0,X.jsx)(J,{value:v,children:(0,X.jsx)(Z,{value:h,children:(0,X.jsxs)(K.B.div,{...y,className:o("chakra-slider",c.className),__css:h.container,children:[c.children,(0,X.jsx)("input",{...b})]})})})});et.displayName="Slider";var er=(0,$.R)((e,t)=>{let{getThumbProps:r}=Q(),n=ee(),i=r(e,t);return(0,X.jsx)(K.B.div,{...i,className:o("chakra-slider__thumb",e.className),__css:n.thumb})});er.displayName="SliderThumb";var en=(0,$.R)((e,t)=>{let{getTrackProps:r}=Q(),n=ee(),i=r(e,t);return(0,X.jsx)(K.B.div,{...i,className:o("chakra-slider__track",e.className),__css:n.track})});en.displayName="SliderTrack";var ei=(0,$.R)((e,t)=>{let{getInnerTrackProps:r}=Q(),n=ee(),i=r(e,t);return(0,X.jsx)(K.B.div,{...i,className:o("chakra-slider__filled-track",e.className),__css:n.filledTrack})});ei.displayName="SliderFilledTrack",(0,$.R)((e,t)=>{let{getMarkerProps:r}=Q(),n=ee(),i=r(e,t);return(0,X.jsx)(K.B.div,{...i,className:o("chakra-slider__marker",e.className),__css:n.mark})}).displayName="SliderMark"},43342:(e,t,r)=>{"use strict";r.d(t,{y:()=>d});var n=r(15428),i=r(63552),o=r(11403),a=r(74108),s=r(60524),l=r(11976),u=r(31085),c=(0,n.i7)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,i.R)((e,t)=>{let r=(0,o.Vl)("Spinner",e),{label:n="Loading...",thickness:i="2px",speed:d="0.45s",emptyColor:h="transparent",className:p,...f}=(0,a.MN)(e),m=(0,l.cx)("chakra-spinner",p),g={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:h,borderLeftColor:h,animation:`${c} ${d} linear infinite`,...r};return(0,u.jsx)(s.B.div,{ref:t,__css:g,className:m,...f,children:n&&(0,u.jsx)(s.B.span,{srOnly:!0,children:n})})});d.displayName="Spinner"},74108:(e,t,r)=>{"use strict";r.d(t,{AH:()=>eA,Dt:()=>eO,GF:()=>ek,H2:()=>ej,HU:()=>eS,MN:()=>eM,Vg:()=>et,YU:()=>eT,f4:()=>eR,gd:()=>eb,lL:()=>er,q8:()=>ex,uB:()=>eP});var n=r(11976),i=r(66229),o=e=>/!(important)?$/.test(e),a=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,s=(e,t)=>r=>{let i=String(t),s=o(i),l=a(i),u=e?`${e}.${l}`:l,c=(0,n.Gv)(r.__cssMap)&&u in r.__cssMap?r.__cssMap[u].varRef:t;return c=a(c),s?`${c} !important`:c};function l(e){let{scale:t,transform:r,compose:n}=e;return(e,i)=>{var o;let a=s(t,e)(i),l=null!=(o=null==r?void 0:r(a,i))?o:a;return n&&(l=n(l,i)),l}}var u=(...e)=>t=>e.reduce((e,t)=>t(e),t);function c(e,t){return r=>{let n={property:r,scale:e};return n.transform=l({scale:e,transform:t}),n}}var d=({rtl:e,ltr:t})=>r=>"rtl"===r.direction?e:t,h=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],p={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:"var(--chakra-blur) var(--chakra-brightness) var(--chakra-contrast) var(--chakra-grayscale) var(--chakra-hue-rotate) var(--chakra-invert) var(--chakra-saturate) var(--chakra-sepia) var(--chakra-drop-shadow)"},f={backdropFilter:"var(--chakra-backdrop-blur) var(--chakra-backdrop-brightness) var(--chakra-backdrop-contrast) var(--chakra-backdrop-grayscale) var(--chakra-backdrop-hue-rotate) var(--chakra-backdrop-invert) var(--chakra-backdrop-opacity) var(--chakra-backdrop-saturate) var(--chakra-backdrop-sepia)","--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},m={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},g={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},v=new Set(Object.values(g)),y=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),b=e=>e.trim(),w=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),k=e=>{let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},x=e=>t=>`${e}(${t})`,_={filter:e=>"auto"!==e?e:p,backdropFilter:e=>"auto"!==e?e:f,ring:e=>({"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":_.px(e),boxShadow:"var(--chakra-ring-offset-shadow), var(--chakra-ring-shadow), var(--chakra-shadow, 0 0 #0000)"}),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...h].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...h].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;let{unitless:t}=k(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:`${100*e}%`,float:(e,t)=>"rtl"===t.direction?({left:"right",right:"left"})[e]:e,degree(e){if(/^var\(--.+\)$/.test(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>(function(e,t){if(null==e||y.has(e))return e;if(!(w(e)||y.has(e)))return`url('${e}')`;let r=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),n=null==r?void 0:r[1],i=null==r?void 0:r[2];if(!n||!i)return e;let o=n.includes("-gradient")?n:`${n}-gradient`,[a,...s]=i.split(",").map(b).filter(Boolean);if((null==s?void 0:s.length)===0)return e;let l=a in g?g[a]:a;s.unshift(l);let u=s.map(e=>{if(v.has(e))return e;let r=e.indexOf(" "),[n,i]=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],o=w(i)?i:i&&i.split(" "),a=`colors.${n}`,s=a in t.__cssMap?t.__cssMap[a].varRef:n;return o?[s,...Array.isArray(o)?o:[o]].join(" "):s});return`${o}(${u.join(", ")})`})(e,null!=t?t:{}),blur:x("blur"),opacity:x("opacity"),brightness:x("brightness"),contrast:x("contrast"),dropShadow:x("drop-shadow"),grayscale:x("grayscale"),hueRotate:e=>x("hue-rotate")(_.degree(e)),invert:x("invert"),saturate:x("saturate"),sepia:x("sepia"),bgImage:e=>null==e?e:w(e)||y.has(e)?e:`url(${e})`,outline(e){let t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;let{space:r,divide:n}=null!=(t=m[e])?t:{},i={flexDirection:e};return r&&(i[r]=1),n&&(i[n]=1),i}},S={borderWidths:c("borderWidths"),borderStyles:c("borderStyles"),colors:c("colors"),borders:c("borders"),gradients:c("gradients",_.gradient),radii:c("radii",_.px),space:c("space",u(_.vh,_.px)),spaceT:c("space",u(_.vh,_.px)),degreeT:e=>({property:e,transform:_.degree}),prop:(e,t,r)=>({property:e,scale:t,...t&&{transform:l({scale:t,transform:r})}}),propT:(e,t)=>({property:e,transform:t}),sizes:c("sizes",u(_.vh,_.px)),sizesT:c("sizes",u(_.vh,_.fraction)),shadows:c("shadows"),logical:function(e){let{property:t,scale:r,transform:n}=e;return{scale:r,property:d(t),transform:r?l({scale:r,compose:n}):n}},blur:c("blur",_.blur)},E={background:S.colors("background"),backgroundColor:S.colors("backgroundColor"),backgroundImage:S.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:_.bgClip},bgSize:S.prop("backgroundSize"),bgPosition:S.prop("backgroundPosition"),bg:S.colors("background"),bgColor:S.colors("backgroundColor"),bgPos:S.prop("backgroundPosition"),bgRepeat:S.prop("backgroundRepeat"),bgAttachment:S.prop("backgroundAttachment"),bgGradient:S.gradients("backgroundImage"),bgClip:{transform:_.bgClip}};Object.assign(E,{bgImage:E.backgroundImage,bgImg:E.backgroundImage});var C={border:S.borders("border"),borderWidth:S.borderWidths("borderWidth"),borderStyle:S.borderStyles("borderStyle"),borderColor:S.colors("borderColor"),borderRadius:S.radii("borderRadius"),borderTop:S.borders("borderTop"),borderBlockStart:S.borders("borderBlockStart"),borderTopLeftRadius:S.radii("borderTopLeftRadius"),borderStartStartRadius:S.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:S.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:S.radii("borderTopRightRadius"),borderStartEndRadius:S.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:S.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:S.borders("borderRight"),borderInlineEnd:S.borders("borderInlineEnd"),borderBottom:S.borders("borderBottom"),borderBlockEnd:S.borders("borderBlockEnd"),borderBottomLeftRadius:S.radii("borderBottomLeftRadius"),borderBottomRightRadius:S.radii("borderBottomRightRadius"),borderLeft:S.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:S.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:S.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:S.borders(["borderLeft","borderRight"]),borderInline:S.borders("borderInline"),borderY:S.borders(["borderTop","borderBottom"]),borderBlock:S.borders("borderBlock"),borderTopWidth:S.borderWidths("borderTopWidth"),borderBlockStartWidth:S.borderWidths("borderBlockStartWidth"),borderTopColor:S.colors("borderTopColor"),borderBlockStartColor:S.colors("borderBlockStartColor"),borderTopStyle:S.borderStyles("borderTopStyle"),borderBlockStartStyle:S.borderStyles("borderBlockStartStyle"),borderBottomWidth:S.borderWidths("borderBottomWidth"),borderBlockEndWidth:S.borderWidths("borderBlockEndWidth"),borderBottomColor:S.colors("borderBottomColor"),borderBlockEndColor:S.colors("borderBlockEndColor"),borderBottomStyle:S.borderStyles("borderBottomStyle"),borderBlockEndStyle:S.borderStyles("borderBlockEndStyle"),borderLeftWidth:S.borderWidths("borderLeftWidth"),borderInlineStartWidth:S.borderWidths("borderInlineStartWidth"),borderLeftColor:S.colors("borderLeftColor"),borderInlineStartColor:S.colors("borderInlineStartColor"),borderLeftStyle:S.borderStyles("borderLeftStyle"),borderInlineStartStyle:S.borderStyles("borderInlineStartStyle"),borderRightWidth:S.borderWidths("borderRightWidth"),borderInlineEndWidth:S.borderWidths("borderInlineEndWidth"),borderRightColor:S.colors("borderRightColor"),borderInlineEndColor:S.colors("borderInlineEndColor"),borderRightStyle:S.borderStyles("borderRightStyle"),borderInlineEndStyle:S.borderStyles("borderInlineEndStyle"),borderTopRadius:S.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:S.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:S.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:S.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(C,{rounded:C.borderRadius,roundedTop:C.borderTopRadius,roundedTopLeft:C.borderTopLeftRadius,roundedTopRight:C.borderTopRightRadius,roundedTopStart:C.borderStartStartRadius,roundedTopEnd:C.borderStartEndRadius,roundedBottom:C.borderBottomRadius,roundedBottomLeft:C.borderBottomLeftRadius,roundedBottomRight:C.borderBottomRightRadius,roundedBottomStart:C.borderEndStartRadius,roundedBottomEnd:C.borderEndEndRadius,roundedLeft:C.borderLeftRadius,roundedRight:C.borderRightRadius,roundedStart:C.borderInlineStartRadius,roundedEnd:C.borderInlineEndRadius,borderStart:C.borderInlineStart,borderEnd:C.borderInlineEnd,borderTopStartRadius:C.borderStartStartRadius,borderTopEndRadius:C.borderStartEndRadius,borderBottomStartRadius:C.borderEndStartRadius,borderBottomEndRadius:C.borderEndEndRadius,borderStartRadius:C.borderInlineStartRadius,borderEndRadius:C.borderInlineEndRadius,borderStartWidth:C.borderInlineStartWidth,borderEndWidth:C.borderInlineEndWidth,borderStartColor:C.borderInlineStartColor,borderEndColor:C.borderInlineEndColor,borderStartStyle:C.borderInlineStartStyle,borderEndStyle:C.borderInlineEndStyle});var D={color:S.colors("color"),textColor:S.colors("color"),fill:S.colors("fill"),stroke:S.colors("stroke")},A={boxShadow:S.shadows("boxShadow"),mixBlendMode:!0,blendMode:S.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:S.prop("backgroundBlendMode"),opacity:!0};Object.assign(A,{shadow:A.boxShadow});var j={filter:{transform:_.filter},blur:S.blur("--chakra-blur"),brightness:S.propT("--chakra-brightness",_.brightness),contrast:S.propT("--chakra-contrast",_.contrast),hueRotate:S.propT("--chakra-hue-rotate",_.hueRotate),invert:S.propT("--chakra-invert",_.invert),saturate:S.propT("--chakra-saturate",_.saturate),dropShadow:S.propT("--chakra-drop-shadow",_.dropShadow),backdropFilter:{transform:_.backdropFilter},backdropBlur:S.blur("--chakra-backdrop-blur"),backdropBrightness:S.propT("--chakra-backdrop-brightness",_.brightness),backdropContrast:S.propT("--chakra-backdrop-contrast",_.contrast),backdropHueRotate:S.propT("--chakra-backdrop-hue-rotate",_.hueRotate),backdropInvert:S.propT("--chakra-backdrop-invert",_.invert),backdropSaturate:S.propT("--chakra-backdrop-saturate",_.saturate)},O={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:_.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:S.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:S.space("gap"),rowGap:S.space("rowGap"),columnGap:S.space("columnGap")};Object.assign(O,{flexDir:O.flexDirection});var T={gridGap:S.space("gridGap"),gridColumnGap:S.space("gridColumnGap"),gridRowGap:S.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},P={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:_.outline},outlineOffset:!0,outlineColor:S.colors("outlineColor")},R={width:S.sizesT("width"),inlineSize:S.sizesT("inlineSize"),height:S.sizes("height"),blockSize:S.sizes("blockSize"),boxSize:S.sizes(["width","height"]),minWidth:S.sizes("minWidth"),minInlineSize:S.sizes("minInlineSize"),minHeight:S.sizes("minHeight"),minBlockSize:S.sizes("minBlockSize"),maxWidth:S.sizes("maxWidth"),maxInlineSize:S.sizes("maxInlineSize"),maxHeight:S.sizes("maxHeight"),maxBlockSize:S.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;let o=null!=(i=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n.minW)?i:e;return{[`@media screen and (min-width: ${o})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;let o=null!=(i=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n._minW)?i:e;return{[`@media screen and (max-width: ${o})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:S.propT("float",_.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(R,{w:R.width,h:R.height,minW:R.minWidth,maxW:R.maxWidth,minH:R.minHeight,maxH:R.maxHeight,overscroll:R.overscrollBehavior,overscrollX:R.overscrollBehaviorX,overscrollY:R.overscrollBehaviorY});var M={listStyleType:!0,listStylePosition:!0,listStylePos:S.prop("listStylePosition"),listStyleImage:!0,listStyleImg:S.prop("listStyleImage")},N=(e=>{let t=new WeakMap;return(r,n,i,o)=>{if(void 0===r)return e(r,n,i);t.has(r)||t.set(r,new Map);let a=t.get(r);if(a.has(n))return a.get(n);let s=e(r,n,i,o);return a.set(n,s),s}})(function(e,t,r,n){let i="string"==typeof t?t.split("."):[t];for(n=0;n{let n={},i=N(e,t,{});for(let e in i)e in r&&null!=r[e]||(n[e]=i[e]);return n},B={position:!0,pos:S.prop("position"),zIndex:S.prop("zIndex","zIndices"),inset:S.spaceT("inset"),insetX:S.spaceT(["left","right"]),insetInline:S.spaceT("insetInline"),insetY:S.spaceT(["top","bottom"]),insetBlock:S.spaceT("insetBlock"),top:S.spaceT("top"),insetBlockStart:S.spaceT("insetBlockStart"),bottom:S.spaceT("bottom"),insetBlockEnd:S.spaceT("insetBlockEnd"),left:S.spaceT("left"),insetInlineStart:S.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:S.spaceT("right"),insetInlineEnd:S.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(B,{insetStart:B.insetInlineStart,insetEnd:B.insetInlineEnd});var z={ring:{transform:_.ring},ringColor:S.colors("--chakra-ring-color"),ringOffset:S.prop("--chakra-ring-offset-width"),ringOffsetColor:S.colors("--chakra-ring-offset-color"),ringInset:S.prop("--chakra-ring-inset")},U={margin:S.spaceT("margin"),marginTop:S.spaceT("marginTop"),marginBlockStart:S.spaceT("marginBlockStart"),marginRight:S.spaceT("marginRight"),marginInlineEnd:S.spaceT("marginInlineEnd"),marginBottom:S.spaceT("marginBottom"),marginBlockEnd:S.spaceT("marginBlockEnd"),marginLeft:S.spaceT("marginLeft"),marginInlineStart:S.spaceT("marginInlineStart"),marginX:S.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:S.spaceT("marginInline"),marginY:S.spaceT(["marginTop","marginBottom"]),marginBlock:S.spaceT("marginBlock"),padding:S.space("padding"),paddingTop:S.space("paddingTop"),paddingBlockStart:S.space("paddingBlockStart"),paddingRight:S.space("paddingRight"),paddingBottom:S.space("paddingBottom"),paddingBlockEnd:S.space("paddingBlockEnd"),paddingLeft:S.space("paddingLeft"),paddingInlineStart:S.space("paddingInlineStart"),paddingInlineEnd:S.space("paddingInlineEnd"),paddingX:S.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:S.space("paddingInline"),paddingY:S.space(["paddingTop","paddingBottom"]),paddingBlock:S.space("paddingBlock")};Object.assign(U,{m:U.margin,mt:U.marginTop,mr:U.marginRight,me:U.marginInlineEnd,marginEnd:U.marginInlineEnd,mb:U.marginBottom,ml:U.marginLeft,ms:U.marginInlineStart,marginStart:U.marginInlineStart,mx:U.marginX,my:U.marginY,p:U.padding,pt:U.paddingTop,py:U.paddingY,px:U.paddingX,pb:U.paddingBottom,pl:U.paddingLeft,ps:U.paddingInlineStart,paddingStart:U.paddingInlineStart,pr:U.paddingRight,pe:U.paddingInlineEnd,paddingEnd:U.paddingInlineEnd});var q={textDecorationColor:S.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:S.shadows("textShadow")},H={clipPath:!0,transform:S.propT("transform",_.transform),transformOrigin:!0,translateX:S.spaceT("--chakra-translate-x"),translateY:S.spaceT("--chakra-translate-y"),skewX:S.degreeT("--chakra-skew-x"),skewY:S.degreeT("--chakra-skew-y"),scaleX:S.prop("--chakra-scale-x"),scaleY:S.prop("--chakra-scale-y"),scale:S.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:S.degreeT("--chakra-rotate")},V={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:S.prop("transitionDuration","transition.duration"),transitionProperty:S.prop("transitionProperty","transition.property"),transitionTimingFunction:S.prop("transitionTimingFunction","transition.easing")},$={fontFamily:S.prop("fontFamily","fonts"),fontSize:S.prop("fontSize","fontSizes",_.px),fontWeight:S.prop("fontWeight","fontWeights"),lineHeight:S.prop("lineHeight","lineHeights"),letterSpacing:S.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},W={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:S.spaceT("scrollMargin"),scrollMarginTop:S.spaceT("scrollMarginTop"),scrollMarginBottom:S.spaceT("scrollMarginBottom"),scrollMarginLeft:S.spaceT("scrollMarginLeft"),scrollMarginRight:S.spaceT("scrollMarginRight"),scrollMarginX:S.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:S.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:S.spaceT("scrollPadding"),scrollPaddingTop:S.spaceT("scrollPaddingTop"),scrollPaddingBottom:S.spaceT("scrollPaddingBottom"),scrollPaddingLeft:S.spaceT("scrollPaddingLeft"),scrollPaddingRight:S.spaceT("scrollPaddingRight"),scrollPaddingX:S.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:S.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Y(e){return(0,n.Gv)(e)&&e.reference?e.reference:String(e)}var G=(e,...t)=>t.map(Y).join(` ${e} `).replace(/calc/g,""),K=(...e)=>`calc(${G("+",...e)})`,X=(...e)=>`calc(${G("-",...e)})`,J=(...e)=>`calc(${G("*",...e)})`,Q=(...e)=>`calc(${G("/",...e)})`,Z=e=>{let t=Y(e);return null==t||Number.isNaN(parseFloat(t))?J(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},ee=Object.assign(e=>({add:(...t)=>ee(K(e,...t)),subtract:(...t)=>ee(X(e,...t)),multiply:(...t)=>ee(J(e,...t)),divide:(...t)=>ee(Q(e,...t)),negate:()=>ee(Z(e)),toString:()=>e.toString()}),{add:K,subtract:X,multiply:J,divide:Q,negate:Z});function et(e,t,r){let n=function(e,t=""){var r;return((r=function(e,t="-"){return e.replace(/\s+/g,t)}(`--${(function(e,t=""){return[t,e].filter(Boolean).join("-")})(e,t)}`.toString())).includes("\\.")?r:Number.isInteger(parseFloat(r.toString()))?r:r.replace(".","\\.")).replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(e,r);return{variable:n,reference:`var(${n}${t?`, ${t}`:""})`}}function er(e,t){let r={};for(let n of t){if(Array.isArray(n)){let[t,i]=n;r[t]=et(`${e}-${t}`,i);continue}r[n]=et(`${e}-${n}`)}return r}function en(e){if(null==e)return e;let{unitless:t}=function(e){let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return t||"number"==typeof e?`${e}px`:e}var ei=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,eo=e=>Object.fromEntries(Object.entries(e).sort(ei));function ea(e){let t=eo(e);return Object.assign(Object.values(t),t)}function es(e){var t;return e?"number"==typeof(e=null!=(t=en(e))?t:e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function el(e,t){let r=["@media screen"];return e&&r.push("and",`(min-width: ${en(e)})`),t&&r.push("and",`(max-width: ${en(t)})`),r.join(" ")}var eu={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},ec=e=>eh(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ed=e=>eh(t=>e(t,"~ &"),"[data-peer]",".peer"),eh=(e,...t)=>t.map(e).join(", "),ep={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:ec(eu.hover),_peerHover:ed(eu.hover),_groupFocus:ec(eu.focus),_peerFocus:ed(eu.focus),_groupFocusVisible:ec(eu.focusVisible),_peerFocusVisible:ed(eu.focusVisible),_groupActive:ec(eu.active),_peerActive:ed(eu.active),_groupDisabled:ec(eu.disabled),_peerDisabled:ed(eu.disabled),_groupInvalid:ec(eu.invalid),_peerInvalid:ed(eu.invalid),_groupChecked:ec(eu.checked),_peerChecked:ed(eu.checked),_groupFocusWithin:ec(eu.focusWithin),_peerFocusWithin:ed(eu.focusWithin),_peerPlaceholderShown:ed(eu.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},ef=Object.keys(ep);function em(e,t){return et(String(e).replace(/\./g,"-"),void 0,t)}function eg(e,t,r={}){let{stop:n,getKey:i}=r;return function e(r,o=[]){var a;if("object"==typeof r&&null!=r&&!Array.isArray(r)||Array.isArray(r)){let s={};for(let[l,u]of Object.entries(r)){let c=null!=(a=null==i?void 0:i(l))?a:l,d=[...o,c];if(null==n?void 0:n(r,d))return t(r,o);s[c]=e(u,d)}return s}return t(r,o)}(e)}var ev=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"],ey=e=>ef.includes(e)||"default"===e;function eb(e){var t;let r=function(e){let{__cssMap:t,__cssVars:r,__breakpoints:n,...i}=e;return i}(e),{cssMap:o,cssVars:a}=function(e,t){let r={},o={};for(let[a,s]of Object.entries(e)){let{isSemantic:l,value:u}=s,{variable:c,reference:d}=em(a,null==t?void 0:t.cssVarPrefix);if(!l){if(a.startsWith("space")){let[e,...t]=a.split("."),r=`${e}.-${t.join(".")}`,n=ee.negate(u),i=ee.negate(d);o[r]={value:n,var:c,varRef:i}}r[c]=u,o[a]={value:u,var:c,varRef:d};continue}let h=r=>{let n=[String(a).split(".")[0],r].join(".");if(!e[n])return r;let{reference:i}=em(n,null==t?void 0:t.cssVarPrefix);return i};r=i(r,Object.entries((0,n.Gv)(u)?u:{default:u}).reduce((e,[t,r])=>{var n;if(!r)return e;let i=h(`${r}`);return"default"===t?e[c]=i:e[null!=(n=null==ep?void 0:ep[t])?n:t]={[c]:i},e},{})),o[a]={value:d,var:c,varRef:d}}return{cssVars:r,cssMap:o}}(function({tokens:e,semanticTokens:t}){let r={};return eg(e,(e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!1,value:e})}),eg(t,(e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(ey)}),r}({tokens:function(e,t){let r={};for(let n of t)n in e&&(r[n]=e[n]);return r}(r,ev),semanticTokens:r.semanticTokens}),{cssVarPrefix:null==(t=r.config)?void 0:t.cssVarPrefix});return Object.assign(r,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...a},__cssMap:o,__breakpoints:function(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";let r=ea(e),i=Object.entries(e).sort(ei).map(([e,t],r,n)=>{var i;let[,o]=null!=(i=n[r+1])?i:[];return o=parseFloat(o)>0?es(o):void 0,{_minW:es(t),breakpoint:e,minW:t,maxW:o,maxWQuery:el(null,o),minWQuery:el(t),minMaxQuery:el(t,o)}}),o=new Set(Object.keys(eo(e))),a=Array.from(o.values());return{keys:o,normalized:r,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>o.has(e))},asObject:eo(e),asArray:ea(e),details:i,get:e=>i.find(t=>t.breakpoint===e),media:[null,...r.map(e=>el(e)).slice(1)],toArrayValue(e){if(!(0,n.Gv)(e))throw Error("toArrayValue: value must be an object");let t=a.map(t=>{var r;return null!=(r=e[t])?r:null});for(;null===function(e){let t=null==e?0:e.length;return t?e[t-1]:void 0}(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw Error("toObjectValue: value must be an array");return e.reduce((e,t,r)=>{let n=a[r];return null!=n&&null!=t&&(e[n]=t),e},{})}}}(r.breakpoints)}),r}var ew=i({},E,C,D,O,R,j,z,P,T,{srOnly:{transform:e=>!0===e?F:"focusable"===e?I:{}},layerStyle:{processResult:!0,transform:(e,t,r)=>L(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>L(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>L(t,e,r)}},B,A,U,W,$,q,H,M,V),ek=Object.keys(Object.assign({},U,R,O,T,B)),ex=[...Object.keys(ew),...ef],e_={...ew,...ep},eS=e=>e in e_,eE=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:r,toArrayValue:i,media:o}=t.__breakpoints,a={};for(let s in e){let l=(0,n.Jg)(e[s],t);if(null==l)continue;if(!Array.isArray(l=(0,n.Gv)(l)&&r(l)?i(l):l)){a[s]=l;continue}let u=l.slice(0,o.length).length;for(let e=0;ee.startsWith("--")&&"string"==typeof t&&!/^var\(--.+\)$/.test(t),eD=(e,t)=>{var r,n;if(null==t)return t;let i=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.varRef},o=e=>{var t;return null!=(t=i(e))?t:e},[a,s]=function(e){let t=[],r="",n=!1;for(let i=0;it=>(function(e){let{configs:t={},pseudos:r={},theme:o}=e,a=(e,s=!1)=>{var l,u,c;let d=(0,n.Jg)(e,o),h=eE(d)(o),p={};for(let e in h){let f=h[e],m=(0,n.Jg)(f,o);e in r&&(e=r[e]),eC(e,m)&&(m=eD(o,m));let g=t[e];if(!0===g&&(g={property:e}),(0,n.Gv)(m)){p[e]=null!=(l=p[e])?l:{},p[e]=i({},p[e],a(m,!0));continue}let v=null!=(c=null==(u=null==g?void 0:g.transform)?void 0:u.call(g,m,o,d))?c:m;v=(null==g?void 0:g.processResult)?a(v,!0):v;let y=(0,n.Jg)(null==g?void 0:g.property,o);if(!s&&(null==g?void 0:g.static)&&(p=i({},p,(0,n.Jg)(g.static,o))),y&&Array.isArray(y)){for(let e of y)p[e]=v;continue}if(y){"&"===y&&(0,n.Gv)(v)?p=i({},p,v):p[y]=v;continue}if((0,n.Gv)(v)){p=i({},p,v);continue}p[e]=v}return p};return a})({theme:t,pseudos:ep,configs:ew})(e);function ej(e){return e}function eO(e){return e}function eT(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function eP(e){return t=>{var r;let{variant:o,size:a,theme:s}=t,l=function(e){let t=e.__breakpoints;return function(e,r,o,a){var s,l,u;if(!t)return;let c={},d=(u=t.toArrayValue,Array.isArray(o)?o:(0,n.Gv)(o)?u(o):null!=o?[o]:void 0);if(!d)return c;let h=d.length,p=1===h,f=!!e.parts;for(let o=0;o{i(c,{[e]:p?g[e]:{[m]:g[e]}})});continue}if(!f){p?i(c,g):c[m]=g;continue}c[m]=g}}return c}}(s);return i({},(0,n.Jg)(null!=(r=e.baseStyle)?r:{},t),l(e,"sizes",a,t),l(e,"variants",o,t))}}function eR(e,t,r){var n,i,o;return null!=(o=null==(i=null==(n=e.__cssMap)?void 0:n[`${t}.${r}`])?void 0:i.varRef)?o:r}function eM(e){return function(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}(e,["styleConfig","size","variant","colorScheme"])}},59835:(e,t,r)=>{"use strict";r.d(t,{d:()=>d});var n=r(89784),i=r(11976),o=r(63552),a=r(11403),s=r(74108),l=r(60524),u=r(14041),c=r(31085),d=(0,o.R)(function(e,t){let r=(0,a.o5)("Switch",e),{spacing:o="0.5rem",children:d,...h}=(0,s.MN)(e),{getIndicatorProps:p,getInputProps:f,getCheckboxProps:m,getRootProps:g,getLabelProps:v}=(0,n.v)(h),y=(0,u.useMemo)(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),b=(0,u.useMemo)(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),w=(0,u.useMemo)(()=>({userSelect:"none",marginStart:o,...r.label}),[o,r.label]);return(0,c.jsxs)(l.B.label,{...g(),className:(0,i.cx)("chakra-switch",e.className),__css:y,children:[(0,c.jsx)("input",{className:"chakra-switch__input",...f({},t)}),(0,c.jsx)(l.B.span,{...m(),className:"chakra-switch__track",__css:b,children:(0,c.jsx)(l.B.span,{__css:r.thumb,className:"chakra-switch__thumb",...p()})}),d&&(0,c.jsx)(l.B.span,{className:"chakra-switch__label",...v(),__css:w,children:d})]})});d.displayName="Switch"},82223:(e,t,r)=>{"use strict";r.d(t,{UQ:()=>o,gf:()=>s,rd:()=>a});var n=r(41259),i=r(56824);function o(){let e=(0,i.G6)(),t=(0,n.D)();return{...e,theme:t}}function a(e,t,r){let i=(0,n.D)();return s(e,t,r)(i)}function s(e,t,r){let n=Array.isArray(t)?t:[t],i=Array.isArray(r)?r:[r];return r=>{let o=i.filter(Boolean),a=n.map((t,n)=>{var i,a;return"breakpoints"===e?function(e,t,r){var n,i;if(null==t)return t;let o=t=>{var r,n;return null==(n=null==(r=e.__breakpoints)?void 0:r.asArray)?void 0:n[t]};return null!=(i=null!=(n=o(t))?n:o(r))?i:r}(r,t,null!=(i=o[n])?i:t):function(e,t,r){var n,i;if(null==t)return t;let o=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.value};return null!=(i=null!=(n=o(t))?n:o(r))?i:r}(r,`${e}.${t}`,null!=(a=o[n])?a:t)});return Array.isArray(t)?a:a[0]}}},11403:(e,t,r)=>{"use strict";r.d(t,{Vl:()=>c,o5:()=>d});var n=r(82223),i=r(74108),o=r(84466),a=r(66229),s=r(14041),l=r(79772);function u(e,t={}){var r;let{styleConfig:c,...d}=t,{theme:h,colorMode:p}=(0,n.UQ)(),f=e?(0,o.rY)(h,`components.${e}`):void 0,m=c||f,g=a({theme:h,colorMode:p},null!=(r=null==m?void 0:m.defaultProps)?r:{},(0,o.TB)((0,o.cJ)(d,["children"]))),v=(0,s.useRef)({});if(m){let e=(0,i.uB)(m)(g);l(v.current,e)||(v.current=e)}return v.current}function c(e,t={}){return u(e,t)}function d(e,t={}){return u(e,t)}},77551:(e,t,r)=>{"use strict";r.d(t,{M:()=>o});var n=new Set([...r(74108).q8,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),i=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function o(e){return i.has(e)||!n.has(e)}},99740:(e,t,r)=>{"use strict";r.d(t,{NP:()=>h,zy:()=>g});var n=r(56824),i=r(56077),o=r(74108),a=r(84466),s=r(7499),l=r(1424),u=r(15428),c=r(14041),d=r(31085);function h(e){let{cssVarsRoot:t,theme:r,children:n}=e,i=(0,c.useMemo)(()=>(0,o.gd)(r),[r]);return(0,d.jsxs)(l.a,{theme:i,children:[(0,d.jsx)(p,{root:t}),n]})}function p({root:e=":host, :root"}){let t=[e,"[data-theme]"].join(",");return(0,d.jsx)(u.mL,{styles:e=>({[t]:e.__cssVars})})}var[f,m]=(0,i.q)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function g(){let{colorMode:e}=(0,n.G6)();return(0,d.jsx)(u.mL,{styles:t=>{let r=(0,a.rY)(t,"styles.global"),n=(0,s.Jg)(r,{theme:t,colorMode:e});if(n)return(0,o.AH)(n)(t)}})}},41259:(e,t,r)=>{"use strict";r.d(t,{D:()=>o});var n=r(1424),i=r(14041);function o(){let e=(0,i.useContext)(n.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}},60524:(e,t,r)=>{"use strict";r.d(t,{B:()=>I});var n,i,o=r(77551),a=r(56824),s=r(74108),l=r(84466),u=r(7499),c=r(14041);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;te.charCodeAt(2)}),m=r(1424),g=r(85780),v=r(79284),y=r(84700),b=/[A-Z]|^ms/g,w=/_EMO_([^_]+?)_([^]*?)_EMO_/g,k=function(e){return 45===e.charCodeAt(1)},x=function(e){return null!=e&&"boolean"!=typeof e},_=(0,h.A)(function(e){return k(e)?e:e.replace(b,"-$&").toLowerCase()}),S=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(w,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===y.A[e]||k(e)||"number"!=typeof t||0===t?t:t+"px"};function E(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)n={name:i.name,styles:i.styles,next:n},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i96?f:j},T=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},P=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,g.SF)(t,r,n),(0,A.s)(function(){return(0,g.sk)(t,r,n)}),null},R=(function e(t,r){var n,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==r&&(n=r.label,i=r.target);var s=T(t,r,o),l=s||O(a),u=!l("as");return function(){var h=arguments,p=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&p.push("label:"+n+";"),null==h[0]||void 0===h[0].raw)p.push.apply(p,h);else{p.push(h[0][0]);for(var f=h.length,v=1;vt=>{let{theme:r,css:n,__css:i,sx:o,...a}=t,c=(0,l.I$)(a,(e,t)=>(0,s.HU)(t)),d=function(e,...t){if(null==e)throw TypeError("Cannot convert undefined or null to object");let r={...e};for(let e of t)if(null!=e)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in r&&delete r[t],r[t]=e[t]);return r}({},i,(0,u.Jg)(e,t),(0,l.TB)(c),o),h=(0,s.AH)(d)(t.theme);return n?[h,n]:h};function F(e,t){let{baseStyle:r,...n}=null!=t?t:{};n.shouldForwardProp||(n.shouldForwardProp=o.M);let i=N({baseStyle:r}),s=M(e,n)(i);return c.forwardRef(function(e,t){let{colorMode:r,forced:n}=(0,a.G6)();return c.createElement(s,{ref:t,"data-theme":n?r:void 0,...e})})}var I=function(){let e=new Map;return new Proxy(F,{apply:(e,t,r)=>F(...r),get:(t,r)=>(e.has(r)||e.set(r,F(r)),e.get(r))})}()},63552:(e,t,r)=>{"use strict";r.d(t,{R:()=>i});var n=r(14041);function i(e){return(0,n.forwardRef)(e)}},76069:(e,t,r)=>{"use strict";r.d(t,{X:()=>h,k:()=>d});var n=r(63552),i=r(11403),o=r(74108),a=r(60524),s=r(11976),l=r(37754),u=r(31085),[c,d]=(0,l.q)({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),h=(0,n.R)((e,t)=>{let r=(0,i.o5)("Table",e),{className:n,layout:l,...d}=(0,o.MN)(e);return(0,u.jsx)(c,{value:r,children:(0,u.jsx)(a.B.table,{ref:t,__css:{tableLayout:l,...r.table},className:(0,s.cx)("chakra-table",n),...d})})});h.displayName="Table"},31659:(e,t,r)=>{"use strict";r.d(t,{Tr:()=>s});var n=r(76069),i=r(63552),o=r(60524),a=r(31085),s=(0,i.R)((e,t)=>{let r=(0,n.k)();return(0,a.jsx)(o.B.tr,{...e,ref:t,__css:r.tr})})},90534:(e,t,r)=>{"use strict";r.d(t,{N:()=>s});var n=r(76069),i=r(63552),o=r(60524),a=r(31085),s=(0,i.R)((e,t)=>{let r=(0,n.k)();return(0,a.jsx)(o.B.tbody,{...e,ref:t,__css:r.tbody})})},70652:(e,t,r)=>{"use strict";r.d(t,{K:()=>s});var n=r(63552),i=r(60524),o=r(11976),a=r(31085),s=(0,n.R)((e,t)=>{var r;let{overflow:n,overflowX:s,className:l,...u}=e;return(0,a.jsx)(i.B.div,{ref:t,className:(0,o.cx)("chakra-table__container",l),...u,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:null!=(r=null!=n?n:s)?r:"auto",overflowY:"hidden",maxWidth:"100%"}})})},78758:(e,t,r)=>{"use strict";r.d(t,{Td:()=>s});var n=r(76069),i=r(63552),o=r(60524),a=r(31085),s=(0,i.R)(({isNumeric:e,...t},r)=>{let i=(0,n.k)();return(0,a.jsx)(o.B.td,{...t,ref:r,__css:i.td,"data-is-numeric":e})})},71792:(e,t,r)=>{"use strict";r.d(t,{T:()=>u});var n=r(92515),i=r(51947),o=r(11976),a=r(63552),s=r(60524),l=r(31085),u=(0,a.R)(function(e,t){let r=(0,i.uo)(e),a=(0,n.e)();return(0,l.jsx)(s.B.div,{...r,width:"100%",ref:t,className:(0,o.cx)("chakra-tabs__tab-panels",e.className),__css:a.tabpanels})});u.displayName="TabPanels"},57812:(e,t,r)=>{"use strict";r.d(t,{w:()=>u});var n=r(92515),i=r(51947),o=r(11976),a=r(63552),s=r(60524),l=r(31085),u=(0,a.R)(function(e,t){let r=(0,i.$c)({...e,ref:t}),a={display:"flex",...(0,n.e)().tablist};return(0,l.jsx)(s.B.div,{...r,className:(0,o.cx)("chakra-tabs__tablist",e.className),__css:a})});u.displayName="TabList"},92515:(e,t,r)=>{"use strict";r.d(t,{e:()=>p,t:()=>f});var n=r(51947),i=r(37754),o=r(63552),a=r(11403),s=r(74108),l=r(60524),u=r(11976),c=r(14041),d=r(31085),[h,p]=(0,i.q)({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),f=(0,o.R)(function(e,t){let r=(0,a.o5)("Tabs",e),{children:i,className:o,...p}=(0,s.MN)(e),{htmlProps:f,descendants:m,...g}=(0,n.uc)(p),v=(0,c.useMemo)(()=>g,[g]),{isFitted:y,...b}=f,w={position:"relative",...r.root};return(0,d.jsx)(n.at,{value:m,children:(0,d.jsx)(n.O_,{value:v,children:(0,d.jsx)(h,{value:r,children:(0,d.jsx)(l.B.div,{className:(0,u.cx)("chakra-tabs",o),ref:t,...b,__css:w,children:i})})})})});f.displayName="Tabs"},19727:(e,t,r)=>{"use strict";r.d(t,{o:()=>u});var n=r(92515),i=r(51947),o=r(11976),a=r(63552),s=r(60524),l=r(31085),u=(0,a.R)(function(e,t){let r=(0,n.e)(),a=(0,i.Vh)({...e,ref:t}),u={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return(0,l.jsx)(s.B.button,{...a,className:(0,o.cx)("chakra-tabs__tab",e.className),__css:u})});u.displayName="Tab"},96502:(e,t,r)=>{"use strict";r.d(t,{K:()=>u});var n=r(92515),i=r(51947),o=r(11976),a=r(63552),s=r(60524),l=r(31085),u=(0,a.R)(function(e,t){let r=(0,i.Jn)({...e,ref:t}),a=(0,n.e)();return(0,l.jsx)(s.B.div,{outline:"0",...r,className:(0,o.cx)("chakra-tabs__tab-panel",e.className),__css:a.tabpanel})});u.displayName="TabPanel"},51947:(e,t,r)=>{"use strict";r.d(t,{$c:()=>b,Jn:()=>S,O_:()=>v,Vh:()=>w,at:()=>h,uc:()=>g,uo:()=>_});var n=r(64917),i=r(54371),o=r(37754),a=r(58470),s=r(76704),l=r(94800),u=r(96667),c=r(11976),d=r(14041),[h,p,f,m]=(0,i.D)();function g(e){var t;let{defaultIndex:r,onChange:n,index:i,isManual:o,isLazy:s,lazyBehavior:l="unmount",orientation:u="horizontal",direction:c="ltr",...h}=e,[p,m]=(0,d.useState)(null!=r?r:0),[g,v]=(0,a.i)({defaultValue:null!=r?r:0,value:i,onChange:n});(0,d.useEffect)(()=>{null!=i&&m(i)},[i]);let y=f(),b=(0,d.useId)(),w=null!=(t=e.id)?t:b;return{id:`tabs-${w}`,selectedIndex:g,focusedIndex:p,setSelectedIndex:v,setFocusedIndex:m,isManual:o,isLazy:s,lazyBehavior:l,orientation:u,descendants:y,direction:c,htmlProps:h}}var[v,y]=(0,o.q)({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function b(e){let{focusedIndex:t,orientation:r,direction:n}=y(),i=p(),o=(0,d.useCallback)(e=>{let o=()=>{var e;let r=i.nextEnabled(t);r&&(null==(e=r.node)||e.focus())},a=()=>{var e;let r=i.prevEnabled(t);r&&(null==(e=r.node)||e.focus())},s="horizontal"===r,l="vertical"===r,u={["ltr"===n?"ArrowLeft":"ArrowRight"]:()=>s&&a(),["ltr"===n?"ArrowRight":"ArrowLeft"]:()=>s&&o(),ArrowDown:()=>l&&o(),ArrowUp:()=>l&&a(),Home:()=>{var e;let t=i.firstEnabled();t&&(null==(e=t.node)||e.focus())},End:()=>{var e;let t=i.lastEnabled();t&&(null==(e=t.node)||e.focus())}}[e.key];u&&(e.preventDefault(),u(e))},[i,t,r,n]);return{...e,role:"tablist","aria-orientation":r,onKeyDown:(0,c.Hj)(e.onKeyDown,o)}}function w(e){let{isDisabled:t=!1,isFocusable:r=!1,...i}=e,{setSelectedIndex:o,isManual:a,id:s,setFocusedIndex:u,selectedIndex:d}=y(),{index:h,register:p}=m({disabled:t&&!r}),f=h===d;return{...(0,n.I)({...i,ref:(0,l.Px)(p,e.ref),isDisabled:t,isFocusable:r,onClick:(0,c.Hj)(e.onClick,()=>{o(h)})}),id:E(s,h),role:"tab",tabIndex:f?0:-1,type:"button","aria-selected":f,"aria-controls":C(s,h),onFocus:t?void 0:(0,c.Hj)(e.onFocus,()=>{u(h);let e=t&&r;a||e||o(h)})}}var[k,x]=(0,o.q)({});function _(e){let{id:t,selectedIndex:r}=y(),n=(0,s.a)(e.children).map((e,n)=>(0,d.createElement)(k,{key:n,value:{isSelected:n===r,id:C(t,n),tabId:E(t,n),selectedIndex:r}},e));return{...e,children:n}}function S(e){let{children:t,...r}=e,{isLazy:n,lazyBehavior:i}=y(),{isSelected:o,id:a,tabId:s}=x(),l=(0,d.useRef)(!1);o&&(l.current=!0);let c=(0,u.q)({wasSelected:l.current,isSelected:o,enabled:n,mode:i});return{tabIndex:0,...r,children:c?t:null,role:"tabpanel","aria-labelledby":s,hidden:!o,id:a}}function E(e,t){return`${e}--tab-${t}`}function C(e,t){return`${e}--tabpanel-${t}`}},70403:(e,t,r)=>{"use strict";r.d(t,{Vz:()=>f,d1:()=>p,vw:()=>h});var n=r(69014),i=r(37754),o=r(63552),a=r(11403),s=r(74108),l=r(60524),u=r(31085),[c,d]=(0,i.q)({name:"TagStylesContext",errorMessage:"useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),h=(0,o.R)((e,t)=>{let r=(0,a.o5)("Tag",e),n=(0,s.MN)(e),i={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...r.container};return(0,u.jsx)(c,{value:r,children:(0,u.jsx)(l.B.span,{ref:t,...n,__css:i})})});h.displayName="Tag";var p=(0,o.R)((e,t)=>{let r=d();return(0,u.jsx)(l.B.span,{ref:t,noOfLines:1,...e,__css:r.label})});p.displayName="TagLabel";var f=(0,o.R)((e,t)=>(0,u.jsx)(n.I,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e}));f.displayName="TagLeftIcon",(0,o.R)((e,t)=>(0,u.jsx)(n.I,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e})).displayName="TagRightIcon";var m=e=>(0,u.jsx)(n.I,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});m.displayName="TagCloseIcon",(0,o.R)((e,t)=>{let{isDisabled:r,children:n,...i}=e,o={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...d().closeButton};return(0,u.jsx)(l.B.button,{ref:t,"aria-label":"close",...i,type:"button",disabled:r,__css:o,children:n||(0,u.jsx)(m,{})})}).displayName="TagCloseButton"},63633:(e,t,r)=>{"use strict";r.d(t,{T:()=>d});var n=r(72675),i=r(63552),o=r(11403),a=r(74108),s=r(60524),l=r(11976),u=r(31085),c=["h","minH","height","minHeight"],d=(0,i.R)((e,t)=>{let r=(0,o.Vl)("Textarea",e),{className:i,rows:d,...h}=(0,a.MN)(e),p=(0,n.t)(h),f=d?function(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}(r,c):r;return(0,u.jsx)(s.B.textarea,{ref:t,rows:d,...p,className:(0,l.cx)("chakra-textarea",i),__css:f})});d.displayName="Textarea"},36057:(e,t,r)=>{"use strict";function n(e,t){return r=>"dark"===r.colorMode?t:e}function i(e){let{orientation:t,vertical:r,horizontal:n}=e;return t?"vertical"===t?r:n:{}}r.d(t,{M:()=>n,s:()=>i})},67897:(e,t,r)=>{"use strict";r.d(t,{x:()=>o});var n=r(93722),i=r(11976);function o({variant:e,components:t}){return r=>{let o=Object.keys(r.components||{});return Array.isArray(t)?o=t:(0,i.Gv)(t)&&(o=Object.keys(t)),(0,n.MR)(r,{components:Object.fromEntries(o.map(t=>[t,{defaultProps:{variant:e}}]))})}}},2508:(e,t,r)=>{"use strict";r.d(t,{W:()=>o});var n=r(93722),i=r(11976);function o({colorScheme:e,components:t}){return r=>{let o=Object.keys(r.components||{});return Array.isArray(t)?o=t:(0,i.Gv)(t)&&(o=Object.keys(t)),(0,n.MR)(r,{components:Object.fromEntries(o.map(t=>[t,{defaultProps:{colorScheme:e}}]))})}}},93722:(e,t,r)=>{"use strict";r.d(t,{oY:()=>u,MR:()=>c});var n=r(11976),i=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"],o=r(45093),a=r(66229);function s(e){return"function"==typeof e}var l=e=>function(...t){var r;let o=[...t],a=t[t.length-1];return(r=a,(0,n.Gv)(r)&&i.every(e=>Object.prototype.hasOwnProperty.call(r,e))&&o.length>1)?o=o.slice(0,o.length-1):a=e,(function(...e){return t=>e.reduce((e,t)=>t(e),t)})(...o.map(e=>t=>s(e)?e(t):c(t,e)))(a)},u=l(o.w4);function c(...e){return a({},...e,d)}function d(e,t,r,n){if((s(e)||s(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...r)=>a({},s(e)?e(...r):e,s(t)?t(...r):t,d)}l(o.$7)},45093:(e,t,r)=>{"use strict";r.d(t,{$7:()=>i0,w4:()=>iZ});var n,i,o,a,s,l,u,c,d,h,p,f,m,g,v,y,b,w,k,x,_,S,E,C={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},D={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},A={...D,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},j={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},...C,sizes:A,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:D,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}},O=r(74108),{defineMultiStyleConfig:T,definePartsStyle:P}=(0,O.YU)(["stepper","step","title","description","indicator","separator","icon","number"]),R=(0,O.Vg)("stepper-indicator-size"),M=(0,O.Vg)("stepper-icon-size"),N=(0,O.Vg)("stepper-title-font-size"),F=(0,O.Vg)("stepper-description-font-size"),I=(0,O.Vg)("stepper-accent-color"),L=T({baseStyle:P(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[I.variable]:`colors.${e}.500`,_dark:{[I.variable]:`colors.${e}.200`}},title:{fontSize:N.reference,fontWeight:"medium"},description:{fontSize:F.reference,color:"chakra-subtle-text"},number:{fontSize:N.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:M.reference,height:M.reference},indicator:{flexShrink:0,borderRadius:"full",width:R.reference,height:R.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:I.reference},"&[data-status=complete]":{bg:I.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:I.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${R.reference} - 8px)`,top:`calc(${R.reference} + 4px)`,insetStart:`calc(${R.reference} / 2 - 1px)`}}})),sizes:{xs:P({stepper:{[R.variable]:"sizes.4",[M.variable]:"sizes.3",[N.variable]:"fontSizes.xs",[F.variable]:"fontSizes.xs"}}),sm:P({stepper:{[R.variable]:"sizes.6",[M.variable]:"sizes.4",[N.variable]:"fontSizes.sm",[F.variable]:"fontSizes.xs"}}),md:P({stepper:{[R.variable]:"sizes.8",[M.variable]:"sizes.5",[N.variable]:"fontSizes.md",[F.variable]:"fontSizes.sm"}}),lg:P({stepper:{[R.variable]:"sizes.10",[M.variable]:"sizes.6",[N.variable]:"fontSizes.lg",[F.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function B(e,t={}){let r=!1;function n(t){let r=(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__"),n=`chakra-${r}`;return{className:n,selector:`.${n}`,toString:()=>t}}return{parts:function(...i){for(let e of(!function(){if(!r){r=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),i))t[e]=n(e);return B(e,t)},toPart:n,extend:function(...r){for(let e of r)e in t||(t[e]=n(e));return B(e,t)},selectors:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]))},classnames:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]))},get keys(){return Object.keys(t)},__type:{}}}var z=B("accordion").parts("root","container","button","panel").extend("icon"),U=B("alert").parts("title","description","container").extend("icon","spinner"),q=B("avatar").parts("label","badge","container").extend("excessLabel","group"),H=B("breadcrumb").parts("link","item","container").extend("separator");B("button").parts();var V=B("checkbox").parts("control","icon","container").extend("label");B("progress").parts("track","filledTrack").extend("label");var $=B("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),W=B("editable").parts("preview","input","textarea"),Y=B("form").parts("container","requiredIndicator","helperText"),G=B("formError").parts("text","icon"),K=B("input").parts("addon","field","element","group"),X=B("list").parts("container","item","icon"),J=B("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),Q=B("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Z=B("numberinput").parts("root","field","stepperGroup","stepper");B("pininput").parts("field");var ee=B("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),et=B("progress").parts("label","filledTrack","track"),er=B("radio").parts("container","control","label"),en=B("select").parts("field","icon"),ei=B("slider").parts("container","track","thumb","filledTrack","mark"),eo=B("stat").parts("container","label","helpText","number","icon"),ea=B("switch").parts("container","track","thumb","label"),es=B("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),el=B("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),eu=B("tag").parts("container","label","closeButton"),ec=B("card").parts("container","header","body","footer");function ed(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:Number.isInteger(parseFloat(e.toString()))?e:t.replace(".","\\.")}function eh(e,t){var r,n;let i=function(e,t=""){return`--${function(e,t=""){return[t,ed(e)].filter(Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:i,reference:(r="string"==typeof(n=null==t?void 0:t.fallback)?n:null==n?void 0:n.reference,`var(${ed(i)}${r?`, ${r}`:""})`)}}B("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");var ep=r(11976);function ef(e){return(0,ep.Gv)(e)&&e.reference?e.reference:String(e)}var em=(e,...t)=>t.map(ef).join(` ${e} `).replace(/calc/g,""),eg=(...e)=>`calc(${em("+",...e)})`,ev=(...e)=>`calc(${em("-",...e)})`,ey=(...e)=>`calc(${em("*",...e)})`,eb=(...e)=>`calc(${em("/",...e)})`,ew=e=>{let t=ef(e);return null==t||Number.isNaN(parseFloat(t))?ey(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},ek=Object.assign(e=>({add:(...t)=>ek(eg(e,...t)),subtract:(...t)=>ek(ev(e,...t)),multiply:(...t)=>ek(ey(e,...t)),divide:(...t)=>ek(eb(e,...t)),negate:()=>ek(ew(e)),toString:()=>e.toString()}),{add:eg,subtract:ev,multiply:ey,divide:eb,negate:ew}),{defineMultiStyleConfig:ex,definePartsStyle:e_}=(0,O.YU)(ea.keys),eS=eh("switch-track-width"),eE=eh("switch-track-height"),eC=eh("switch-track-diff"),eD=ek.subtract(eS,eE),eA=eh("switch-thumb-x"),ej=eh("switch-bg"),eO=(0,O.H2)(e=>{let{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[eS.reference],height:[eE.reference],transitionProperty:"common",transitionDuration:"fast",[ej.variable]:"colors.gray.300",_dark:{[ej.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ej.variable]:`colors.${t}.500`,_dark:{[ej.variable]:`colors.${t}.200`}},bg:ej.reference}}),eT=(0,O.H2)({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[eE.reference],height:[eE.reference],_checked:{transform:`translateX(${eA.reference})`}}),eP=ex({baseStyle:e_(e=>({container:{[eC.variable]:eD,[eA.variable]:eC.reference,_rtl:{[eA.variable]:ek(eC).negate().toString()}},track:eO(e),thumb:eT})),sizes:{sm:e_({container:{[eS.variable]:"1.375rem",[eE.variable]:"sizes.3"}}),md:e_({container:{[eS.variable]:"1.875rem",[eE.variable]:"sizes.4"}}),lg:e_({container:{[eS.variable]:"2.875rem",[eE.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}}),eR=r(36057),{defineMultiStyleConfig:eM,definePartsStyle:eN}=(0,O.YU)(es.keys),eF=eN({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),eI=(0,O.H2)({"&[data-is-numeric=true]":{textAlign:"end"}}),eL=eM({baseStyle:eF,variants:{simple:eN(e=>{let{colorScheme:t}=e;return{th:{color:(0,eR.M)("gray.600","gray.400")(e),borderBottom:"1px",borderColor:(0,eR.M)(`${t}.100`,`${t}.700`)(e),...eI},td:{borderBottom:"1px",borderColor:(0,eR.M)(`${t}.100`,`${t}.700`)(e),...eI},caption:{color:(0,eR.M)("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:eN(e=>{let{colorScheme:t}=e;return{th:{color:(0,eR.M)("gray.600","gray.400")(e),borderBottom:"1px",borderColor:(0,eR.M)(`${t}.100`,`${t}.700`)(e),...eI},td:{borderBottom:"1px",borderColor:(0,eR.M)(`${t}.100`,`${t}.700`)(e),...eI},caption:{color:(0,eR.M)("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:(0,eR.M)(`${t}.100`,`${t}.700`)(e)},td:{background:(0,eR.M)(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:(0,O.H2)({})},sizes:{sm:eN({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:eN({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:eN({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function eB(e,t,r){return Math.min(Math.max(e,r),t)}class ez extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}function eU(e){if("string"!=typeof e)throw new ez(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=eK.test(e)?function(e){let t=eH[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(e.toLowerCase().trim())];if(!t)throw new ez(e);return`#${t}`}(e):e;let r=e$.exec(t);if(r){let e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(eV(e,2),16)),parseInt(eV(e[3]||"f",2),16)/255]}let n=eW.exec(t);if(n){let e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}let i=eY.exec(t);if(i){let e=Array.from(i).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}let o=eG.exec(t);if(o){let[t,r,n,i]=Array.from(o).slice(1).map(parseFloat);if(eB(0,100,r)!==r||eB(0,100,n)!==n)throw new ez(e);return[...eJ(t,r,n),Number.isNaN(i)?1:i]}throw new ez(e)}let eq=e=>parseInt(e.replace(/_/g,""),36),eH="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{let r=eq(t.substring(0,3)),n=eq(t.substring(3)).toString(16),i="";for(let e=0;e<6-n.length;e++)i+="0";return e[r]=`${i}${n}`,e},{}),eV=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),e$=RegExp(`^#${eV("([a-f0-9])",3)}([a-f0-9])?$`,"i"),eW=RegExp(`^#${eV("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),eY=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${eV(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),eG=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,eK=/^[a-z]+$/i,eX=e=>Math.round(255*e),eJ=(e,t,r)=>{let n=r/100;if(0===t)return[n,n,n].map(eX);let i=(e%360+360)%360/60,o=t/100*(1-Math.abs(2*n-1)),a=o*(1-Math.abs(i%2-1)),s=0,l=0,u=0;i>=0&&i<1?(s=o,l=a):i>=1&&i<2?(s=a,l=o):i>=2&&i<3?(l=o,u=a):i>=3&&i<4?(l=a,u=o):i>=4&&i<5?(s=a,u=o):i>=5&&i<6&&(s=o,u=a);let c=n-o/2;return[s+c,l+c,u+c].map(eX)};var eQ=e=>0===Object.keys(e).length,eZ=(e,t,r)=>{let n=function(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;n{let t=eB(0,255,e).toString(16);return 1===t.length?`0${t}`:t};o(t),o(r),o(n),i<1&&o(Math.round(255*i))}(n),n}catch{return null!=r?r:"#000000"}},e0=e=>{let[t,r,n]=eU(e);return(299*t+587*r+114*n)/1e3},e1=e=>t=>128>e0(eZ(t,e))?"dark":"light",e2=e=>t=>"dark"===e1(e)(t),e3=(e,t)=>r=>(function(e,t){var r;let[n,i,o,a]=eU(e);return r=a-t,`rgba(${eB(0,255,n).toFixed()}, ${eB(0,255,i).toFixed()}, ${eB(0,255,o).toFixed()}, ${parseFloat(eB(0,1,r).toFixed(3))})`})(eZ(r,e),1-t);function e5(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${t} 25%, transparent 25%, transparent 50%, ${t} 50%, ${t} 75%, transparent 75%, transparent )`,backgroundSize:`${e} ${e}`}}var e4=()=>`#${Math.floor(0xffffff*Math.random()).toString(16).padEnd(6,"0")}`,e6=(0,O.Vg)("tabs-color"),e8=(0,O.Vg)("tabs-bg"),e9=(0,O.Vg)("tabs-border-color"),{defineMultiStyleConfig:e7,definePartsStyle:te}=(0,O.YU)(el.keys),tt=(0,O.H2)(e=>{let{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}}),tr=(0,O.H2)(e=>{let{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}}),tn=(0,O.H2)(e=>{let{align:t="start",orientation:r}=e;return{justifyContent:({end:"flex-end",center:"center",start:"flex-start"})[t],flexDirection:"vertical"===r?"column":"row"}}),ti=(0,O.H2)({p:4}),to=e7({baseStyle:te(e=>({root:tt(e),tab:tr(e),tablist:tn(e),tabpanel:ti})),sizes:{sm:te({tab:{py:1,px:4,fontSize:"sm"}}),md:te({tab:{fontSize:"md",py:2,px:4}}),lg:te({tab:{fontSize:"lg",py:3,px:4}})},variants:{line:te(e=>{let{colorScheme:t,orientation:r}=e,n="vertical"===r,i=n?"borderStart":"borderBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[n?"marginStart":"marginBottom"]:"-2px",_selected:{[e6.variable]:`colors.${t}.600`,_dark:{[e6.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[e8.variable]:"colors.gray.200",_dark:{[e8.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:e6.reference,bg:e8.reference}}}),enclosed:te(e=>{let{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[e9.variable]:"transparent",_selected:{[e6.variable]:`colors.${t}.600`,[e9.variable]:"colors.white",_dark:{[e6.variable]:`colors.${t}.300`,[e9.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:e9.reference},color:e6.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"enclosed-colored":te(e=>{let{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[e8.variable]:"colors.gray.50",_dark:{[e8.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[e8.variable]:"colors.white",[e6.variable]:`colors.${t}.600`,_dark:{[e8.variable]:"colors.gray.800",[e6.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:e6.reference,bg:e8.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"soft-rounded":te(e=>{let{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:eZ(r,`${t}.700`),bg:eZ(r,`${t}.100`)}}}}),"solid-rounded":te(e=>{let{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[e6.variable]:"colors.gray.600",_dark:{[e6.variable]:"inherit"},_selected:{[e6.variable]:"colors.white",[e8.variable]:`colors.${t}.600`,_dark:{[e6.variable]:"colors.gray.800",[e8.variable]:`colors.${t}.300`}},color:e6.reference,bg:e8.reference}}}),unstyled:te({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),ta=(0,O.lL)("badge",["bg","color","shadow"]),ts=(0,O.H2)({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:ta.bg.reference,color:ta.color.reference,boxShadow:ta.shadow.reference}),tl=(0,O.H2)(e=>{let{colorScheme:t,theme:r}=e,n=e3(`${t}.500`,.6)(r);return{[ta.bg.variable]:`colors.${t}.500`,[ta.color.variable]:"colors.white",_dark:{[ta.bg.variable]:n,[ta.color.variable]:"colors.whiteAlpha.800"}}}),tu=(0,O.H2)(e=>{let{colorScheme:t,theme:r}=e,n=e3(`${t}.200`,.16)(r);return{[ta.bg.variable]:`colors.${t}.100`,[ta.color.variable]:`colors.${t}.800`,_dark:{[ta.bg.variable]:n,[ta.color.variable]:`colors.${t}.200`}}}),tc=(0,O.H2)(e=>{let{colorScheme:t,theme:r}=e,n=e3(`${t}.200`,.8)(r);return{[ta.color.variable]:`colors.${t}.500`,_dark:{[ta.color.variable]:n},[ta.shadow.variable]:`inset 0 0 0px 1px ${ta.color.reference}`}}),td=(0,O.Dt)({baseStyle:ts,variants:{solid:tl,subtle:tu,outline:tc},defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:th,definePartsStyle:tp}=(0,O.YU)(eu.keys),tf=(0,O.Vg)("tag-bg"),tm=(0,O.Vg)("tag-color"),tg=(0,O.Vg)("tag-shadow"),tv=(0,O.Vg)("tag-min-height"),ty=(0,O.Vg)("tag-min-width"),tb=(0,O.Vg)("tag-font-size"),tw=(0,O.Vg)("tag-padding-inline"),tk=tp({container:(0,O.H2)({fontWeight:"medium",lineHeight:1.2,outline:0,[tm.variable]:ta.color.reference,[tf.variable]:ta.bg.reference,[tg.variable]:ta.shadow.reference,color:tm.reference,bg:tf.reference,boxShadow:tg.reference,borderRadius:"md",minH:tv.reference,minW:ty.reference,fontSize:tb.reference,px:tw.reference,_focusVisible:{[tg.variable]:"shadows.outline"}}),label:(0,O.H2)({lineHeight:1.2,overflow:"visible"}),closeButton:(0,O.H2)({fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}})}),tx={sm:tp({container:{[tv.variable]:"sizes.5",[ty.variable]:"sizes.5",[tb.variable]:"fontSizes.xs",[tw.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:tp({container:{[tv.variable]:"sizes.6",[ty.variable]:"sizes.6",[tb.variable]:"fontSizes.sm",[tw.variable]:"space.2"}}),lg:tp({container:{[tv.variable]:"sizes.8",[ty.variable]:"sizes.8",[tb.variable]:"fontSizes.md",[tw.variable]:"space.3"}})},t_=th({variants:{subtle:tp(e=>{var t;return{container:null==(t=td.variants)?void 0:t.subtle(e)}}),solid:tp(e=>{var t;return{container:null==(t=td.variants)?void 0:t.solid(e)}}),outline:tp(e=>{var t;return{container:null==(t=td.variants)?void 0:t.outline(e)}})},baseStyle:tk,sizes:tx,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:tS,defineMultiStyleConfig:tE}=(0,O.YU)(K.keys),tC=(0,O.Vg)("input-height"),tD=(0,O.Vg)("input-font-size"),tA=(0,O.Vg)("input-padding"),tj=(0,O.Vg)("input-border-radius"),tO=tS({addon:{height:tC.reference,fontSize:tD.reference,px:tA.reference,borderRadius:tj.reference},field:{width:"100%",height:tC.reference,fontSize:tD.reference,px:tA.reference,borderRadius:tj.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),tT={lg:(0,O.H2)({[tD.variable]:"fontSizes.lg",[tA.variable]:"space.4",[tj.variable]:"radii.md",[tC.variable]:"sizes.12"}),md:(0,O.H2)({[tD.variable]:"fontSizes.md",[tA.variable]:"space.4",[tj.variable]:"radii.md",[tC.variable]:"sizes.10"}),sm:(0,O.H2)({[tD.variable]:"fontSizes.sm",[tA.variable]:"space.3",[tj.variable]:"radii.sm",[tC.variable]:"sizes.8"}),xs:(0,O.H2)({[tD.variable]:"fontSizes.xs",[tA.variable]:"space.2",[tj.variable]:"radii.sm",[tC.variable]:"sizes.6"})};function tP(e){let{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||(0,eR.M)("blue.500","blue.300")(e),errorBorderColor:r||(0,eR.M)("red.500","red.300")(e)}}var tR=tE({baseStyle:tO,sizes:{lg:tS({field:tT.lg,group:tT.lg}),md:tS({field:tT.md,group:tT.md}),sm:tS({field:tT.sm,group:tT.sm}),xs:tS({field:tT.xs,group:tT.xs})},variants:{outline:tS(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=tP(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:(0,eR.M)("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:eZ(t,n),boxShadow:`0 0 0 1px ${eZ(t,n)}`},_focusVisible:{zIndex:1,borderColor:eZ(t,r),boxShadow:`0 0 0 1px ${eZ(t,r)}`}},addon:{border:"1px solid",borderColor:(0,eR.M)("inherit","whiteAlpha.50")(e),bg:(0,eR.M)("gray.100","whiteAlpha.300")(e)}}}),filled:tS(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=tP(e);return{field:{border:"2px solid",borderColor:"transparent",bg:(0,eR.M)("gray.100","whiteAlpha.50")(e),_hover:{bg:(0,eR.M)("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:eZ(t,n)},_focusVisible:{bg:"transparent",borderColor:eZ(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:(0,eR.M)("gray.100","whiteAlpha.50")(e)}}}),flushed:tS(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=tP(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:eZ(t,n),boxShadow:`0px 1px 0px 0px ${eZ(t,n)}`},_focusVisible:{borderColor:eZ(t,r),boxShadow:`0px 1px 0px 0px ${eZ(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),unstyled:tS({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),tM=(0,O.H2)({...null==(n=tR.baseStyle)?void 0:n.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),tN={outline:(0,O.H2)(e=>{var t,r;return null!=(r=null==(t=tR.variants)?void 0:t.outline(e).field)?r:{}}),flushed:(0,O.H2)(e=>{var t,r;return null!=(r=null==(t=tR.variants)?void 0:t.flushed(e).field)?r:{}}),filled:(0,O.H2)(e=>{var t,r;return null!=(r=null==(t=tR.variants)?void 0:t.filled(e).field)?r:{}}),unstyled:null!=(o=null==(i=tR.variants)?void 0:i.unstyled.field)?o:{}},tF={xs:null!=(s=null==(a=tR.sizes)?void 0:a.xs.field)?s:{},sm:null!=(u=null==(l=tR.sizes)?void 0:l.sm.field)?u:{},md:null!=(d=null==(c=tR.sizes)?void 0:c.md.field)?d:{},lg:null!=(p=null==(h=tR.sizes)?void 0:h.lg.field)?p:{}},tI=(0,O.Dt)({baseStyle:tM,sizes:tF,variants:tN,defaultProps:{size:"md",variant:"outline"}}),tL=eh("tooltip-bg"),tB=eh("tooltip-fg"),tz=eh("popper-arrow-bg"),tU=(0,O.H2)({bg:tL.reference,color:tB.reference,[tL.variable]:"colors.gray.700",[tB.variable]:"colors.whiteAlpha.900",_dark:{[tL.variable]:"colors.gray.300",[tB.variable]:"colors.gray.900"},[tz.variable]:tL.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),tq=(0,O.Dt)({baseStyle:tU}),{defineMultiStyleConfig:tH,definePartsStyle:tV}=(0,O.YU)(et.keys),t$=(0,O.H2)(e=>{let{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:i}=e,o=(0,eR.M)(e5(),e5("1rem","rgba(0,0,0,0.1)"))(e),a=(0,eR.M)(`${t}.500`,`${t}.200`)(e),s=`linear-gradient( to right, transparent 0%, ${eZ(r,a)} 50%, transparent 100% )`;return{...!n&&i&&o,...n?{bgImage:s}:{bgColor:a}}}),tW=(0,O.H2)({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),tY=(0,O.H2)(e=>({bg:(0,eR.M)("gray.100","whiteAlpha.300")(e)})),tG=(0,O.H2)(e=>({transitionProperty:"common",transitionDuration:"slow",...t$(e)})),tK=tV(e=>({label:tW,filledTrack:tG(e),track:tY(e)})),tX=tH({sizes:{xs:tV({track:{h:"1"}}),sm:tV({track:{h:"2"}}),md:tV({track:{h:"3"}}),lg:tV({track:{h:"4"}})},baseStyle:tK,defaultProps:{size:"md",colorScheme:"blue"}}),tJ=e=>"function"==typeof e;function tQ(e,...t){return tJ(e)?e(...t):e}var{definePartsStyle:tZ,defineMultiStyleConfig:t0}=(0,O.YU)(V.keys),t1=(0,O.Vg)("checkbox-size"),t2=(0,O.H2)(e=>{let{colorScheme:t}=e;return{w:t1.reference,h:t1.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:(0,eR.M)(`${t}.500`,`${t}.200`)(e),borderColor:(0,eR.M)(`${t}.500`,`${t}.200`)(e),color:(0,eR.M)("white","gray.900")(e),_hover:{bg:(0,eR.M)(`${t}.600`,`${t}.300`)(e),borderColor:(0,eR.M)(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:(0,eR.M)("gray.200","transparent")(e),bg:(0,eR.M)("gray.200","whiteAlpha.300")(e),color:(0,eR.M)("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:(0,eR.M)(`${t}.500`,`${t}.200`)(e),borderColor:(0,eR.M)(`${t}.500`,`${t}.200`)(e),color:(0,eR.M)("white","gray.900")(e)},_disabled:{bg:(0,eR.M)("gray.100","whiteAlpha.100")(e),borderColor:(0,eR.M)("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:(0,eR.M)("red.500","red.300")(e)}}}),t3=(0,O.H2)({_disabled:{cursor:"not-allowed"}}),t5=(0,O.H2)({userSelect:"none",_disabled:{opacity:.4}}),t4=(0,O.H2)({transitionProperty:"transform",transitionDuration:"normal"}),t6=t0({baseStyle:tZ(e=>({icon:t4,container:t3,control:tQ(t2,e),label:t5})),sizes:{sm:tZ({control:{[t1.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:tZ({control:{[t1.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:tZ({control:{[t1.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:t8,definePartsStyle:t9}=(0,O.YU)(er.keys),t7=(0,O.H2)(e=>{var t;let r=null==(t=tQ(t6.baseStyle,e))?void 0:t.control;return{...r,borderRadius:"full",_checked:{...null==r?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),re=t8({baseStyle:t9(e=>{var t,r;return{label:null==(t=t6.baseStyle)?void 0:t.call(t6,e).label,container:null==(r=t6.baseStyle)?void 0:r.call(t6,e).container,control:t7(e)}}),sizes:{md:t9({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:t9({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:t9({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rt,definePartsStyle:rr}=(0,O.YU)(en.keys),rn=(0,O.Vg)("select-bg"),ri=rr({field:(0,O.H2)({...null==(f=tR.baseStyle)?void 0:f.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:rn.reference,[rn.variable]:"colors.white",_dark:{[rn.variable]:"colors.gray.700"},"> option, > optgroup":{bg:rn.reference}}),icon:(0,O.H2)({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}})}),ro=(0,O.H2)({paddingInlineEnd:"8"}),ra=rt({baseStyle:ri,sizes:{lg:{...null==(m=tR.sizes)?void 0:m.lg,field:{...null==(g=tR.sizes)?void 0:g.lg.field,...ro}},md:{...null==(v=tR.sizes)?void 0:v.md,field:{...null==(y=tR.sizes)?void 0:y.md.field,...ro}},sm:{...null==(b=tR.sizes)?void 0:b.sm,field:{...null==(w=tR.sizes)?void 0:w.sm.field,...ro}},xs:{...null==(k=tR.sizes)?void 0:k.xs,field:{...null==(x=tR.sizes)?void 0:x.xs.field,...ro},icon:{insetEnd:"1"}}},variants:tR.variants,defaultProps:tR.defaultProps}),rs=(0,O.Vg)("skeleton-start-color"),rl=(0,O.Vg)("skeleton-end-color"),ru=(0,O.H2)({[rs.variable]:"colors.gray.100",[rl.variable]:"colors.gray.400",_dark:{[rs.variable]:"colors.gray.800",[rl.variable]:"colors.gray.600"},background:rs.reference,borderColor:rl.reference,opacity:.7,borderRadius:"sm"}),rc=(0,O.Dt)({baseStyle:ru}),rd=(0,O.Vg)("skip-link-bg"),rh=(0,O.H2)({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[rd.variable]:"colors.white",_dark:{[rd.variable]:"colors.gray.700"},bg:rd.reference}}),rp=(0,O.Dt)({baseStyle:rh}),{defineMultiStyleConfig:rf,definePartsStyle:rm}=(0,O.YU)(ei.keys),rg=(0,O.Vg)("slider-thumb-size"),rv=(0,O.Vg)("slider-track-size"),ry=(0,O.Vg)("slider-bg"),rb=(0,O.H2)(e=>{let{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...(0,eR.s)({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}}),rw=(0,O.H2)(e=>({...(0,eR.s)({orientation:e.orientation,horizontal:{h:rv.reference},vertical:{w:rv.reference}}),overflow:"hidden",borderRadius:"sm",[ry.variable]:"colors.gray.200",_dark:{[ry.variable]:"colors.whiteAlpha.200"},_disabled:{[ry.variable]:"colors.gray.300",_dark:{[ry.variable]:"colors.whiteAlpha.300"}},bg:ry.reference})),rk=(0,O.H2)(e=>{let{orientation:t}=e;return{...(0,eR.s)({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:rg.reference,h:rg.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}}),rx=(0,O.H2)(e=>{let{colorScheme:t}=e;return{width:"inherit",height:"inherit",[ry.variable]:`colors.${t}.500`,_dark:{[ry.variable]:`colors.${t}.200`},bg:ry.reference}}),r_=rf({baseStyle:rm(e=>({container:rb(e),track:rw(e),thumb:rk(e),filledTrack:rx(e)})),sizes:{lg:rm({container:{[rg.variable]:"sizes.4",[rv.variable]:"sizes.1"}}),md:rm({container:{[rg.variable]:"sizes.3.5",[rv.variable]:"sizes.1"}}),sm:rm({container:{[rg.variable]:"sizes.2.5",[rv.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),rS=eh("spinner-size"),rE=(0,O.H2)({width:[rS.reference],height:[rS.reference]}),rC={xs:(0,O.H2)({[rS.variable]:"sizes.3"}),sm:(0,O.H2)({[rS.variable]:"sizes.4"}),md:(0,O.H2)({[rS.variable]:"sizes.6"}),lg:(0,O.H2)({[rS.variable]:"sizes.8"}),xl:(0,O.H2)({[rS.variable]:"sizes.12"})},rD=(0,O.Dt)({baseStyle:rE,sizes:rC,defaultProps:{size:"md"}}),{defineMultiStyleConfig:rA,definePartsStyle:rj}=(0,O.YU)(eo.keys),rO=rA({baseStyle:rj({container:{},label:(0,O.H2)({fontWeight:"medium"}),helpText:(0,O.H2)({opacity:.8,marginBottom:"2"}),number:(0,O.H2)({verticalAlign:"baseline",fontWeight:"semibold"}),icon:(0,O.H2)({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"})}),sizes:{md:rj({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),rT=(0,O.Vg)("kbd-bg"),rP=(0,O.H2)({[rT.variable]:"colors.gray.100",_dark:{[rT.variable]:"colors.whiteAlpha.100"},bg:rT.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),rR=(0,O.Dt)({baseStyle:rP}),rM=(0,O.H2)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),rN=(0,O.Dt)({baseStyle:rM}),{defineMultiStyleConfig:rF,definePartsStyle:rI}=(0,O.YU)(X.keys),rL=rF({baseStyle:rI({icon:(0,O.H2)({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"})})}),{defineMultiStyleConfig:rB,definePartsStyle:rz}=(0,O.YU)(J.keys),rU=(0,O.Vg)("menu-bg"),rq=(0,O.Vg)("menu-shadow"),rH=(0,O.H2)({[rU.variable]:"#fff",[rq.variable]:"shadows.sm",_dark:{[rU.variable]:"colors.gray.700",[rq.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:rU.reference,boxShadow:rq.reference}),rV=(0,O.H2)({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[rU.variable]:"colors.gray.100",_dark:{[rU.variable]:"colors.whiteAlpha.100"}},_active:{[rU.variable]:"colors.gray.200",_dark:{[rU.variable]:"colors.whiteAlpha.200"}},_expanded:{[rU.variable]:"colors.gray.100",_dark:{[rU.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:rU.reference}),r$=(0,O.H2)({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),rW=(0,O.H2)({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),rY=(0,O.H2)({opacity:.6}),rG=(0,O.H2)({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),rK=rB({baseStyle:rz({button:(0,O.H2)({transitionProperty:"common",transitionDuration:"normal"}),list:rH,item:rV,groupTitle:r$,icon:rW,command:rY,divider:rG})}),{defineMultiStyleConfig:rX,definePartsStyle:rJ}=(0,O.YU)(Q.keys),rQ=(0,O.Vg)("modal-bg"),rZ=(0,O.Vg)("modal-shadow"),r0=(0,O.H2)({bg:"blackAlpha.600",zIndex:"modal"}),r1=(0,O.H2)(e=>{let{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===r?"hidden":"auto",overscrollBehaviorY:"none"}}),r2=(0,O.H2)(e=>{let{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,[rQ.variable]:"colors.white",[rZ.variable]:"shadows.lg",_dark:{[rQ.variable]:"colors.gray.700",[rZ.variable]:"shadows.dark-lg"},bg:rQ.reference,boxShadow:rZ.reference}}),r3=(0,O.H2)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),r5=(0,O.H2)({position:"absolute",top:"2",insetEnd:"3"}),r4=(0,O.H2)(e=>{let{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}}),r6=(0,O.H2)({px:"6",py:"4"});function r8(e){return"full"===e?rJ({dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}):rJ({dialog:{maxW:e}})}var r9=rX({baseStyle:rJ(e=>({overlay:r0,dialogContainer:tQ(r1,e),dialog:tQ(r2,e),header:r3,closeButton:r5,body:tQ(r4,e),footer:r6})),sizes:{xs:r8("xs"),sm:r8("sm"),md:r8("md"),lg:r8("lg"),xl:r8("xl"),"2xl":r8("2xl"),"3xl":r8("3xl"),"4xl":r8("4xl"),"5xl":r8("5xl"),"6xl":r8("6xl"),full:r8("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:r7,definePartsStyle:ne}=(0,O.YU)(Z.keys),nt=eh("number-input-stepper-width"),nr=eh("number-input-input-padding"),nn=ek(nt).add("0.5rem").toString(),ni=eh("number-input-bg"),no=eh("number-input-color"),na=eh("number-input-border-color"),ns=(0,O.H2)({[nt.variable]:"sizes.6",[nr.variable]:nn}),nl=(0,O.H2)(e=>{var t,r;return null!=(r=null==(t=tQ(tR.baseStyle,e))?void 0:t.field)?r:{}}),nu=(0,O.H2)({width:nt.reference}),nc=(0,O.H2)({borderStart:"1px solid",borderStartColor:na.reference,color:no.reference,bg:ni.reference,[no.variable]:"colors.chakra-body-text",[na.variable]:"colors.chakra-border-color",_dark:{[no.variable]:"colors.whiteAlpha.800",[na.variable]:"colors.whiteAlpha.300"},_active:{[ni.variable]:"colors.gray.200",_dark:{[ni.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}});function nd(e){var t,r,n;let i=null==(t=tR.sizes)?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(n=null==(r=i.field)?void 0:r.fontSize)?n:"md",s=C.fontSizes[a];return ne({field:{...i.field,paddingInlineEnd:nr.reference,verticalAlign:"top"},stepper:{fontSize:ek(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var nh=r7({baseStyle:ne(e=>{var t;return{root:ns,field:null!=(t=tQ(nl,e))?t:{},stepperGroup:nu,stepper:nc}}),sizes:{xs:nd("xs"),sm:nd("sm"),md:nd("md"),lg:nd("lg")},variants:tR.variants,defaultProps:tR.defaultProps}),np=(0,O.H2)({...null==(_=tR.baseStyle)?void 0:_.field,textAlign:"center"}),nf={lg:(0,O.H2)({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:(0,O.H2)({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:(0,O.H2)({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:(0,O.H2)({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},nm={outline:(0,O.H2)(e=>{var t,r,n;return null!=(n=null==(r=tQ(null==(t=tR.variants)?void 0:t.outline,e))?void 0:r.field)?n:{}}),flushed:(0,O.H2)(e=>{var t,r,n;return null!=(n=null==(r=tQ(null==(t=tR.variants)?void 0:t.flushed,e))?void 0:r.field)?n:{}}),filled:(0,O.H2)(e=>{var t,r,n;return null!=(n=null==(r=tQ(null==(t=tR.variants)?void 0:t.filled,e))?void 0:r.field)?n:{}}),unstyled:null!=(E=null==(S=tR.variants)?void 0:S.unstyled.field)?E:{}},ng=(0,O.Dt)({baseStyle:np,sizes:nf,variants:nm,defaultProps:tR.defaultProps}),{defineMultiStyleConfig:nv,definePartsStyle:ny}=(0,O.YU)(ee.keys),nb=eh("popper-bg"),nw=eh("popper-arrow-bg"),nk=eh("popper-arrow-shadow-color"),nx=nv({baseStyle:ny({popper:(0,O.H2)({zIndex:10}),content:(0,O.H2)({[nb.variable]:"colors.white",bg:nb.reference,[nw.variable]:nb.reference,[nk.variable]:"colors.gray.200",_dark:{[nb.variable]:"colors.gray.700",[nk.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),header:(0,O.H2)({px:3,py:2,borderBottomWidth:"1px"}),body:(0,O.H2)({px:3,py:2}),footer:(0,O.H2)({px:3,py:2,borderTopWidth:"1px"}),closeButton:(0,O.H2)({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2})})}),{definePartsStyle:n_,defineMultiStyleConfig:nS}=(0,O.YU)($.keys),nE=(0,O.Vg)("drawer-bg"),nC=(0,O.Vg)("drawer-box-shadow");function nD(e){return"full"===e?n_({dialog:{maxW:"100vw",h:"100vh"}}):n_({dialog:{maxW:e}})}var nA=(0,O.H2)({bg:"blackAlpha.600",zIndex:"modal"}),nj=(0,O.H2)({display:"flex",zIndex:"modal",justifyContent:"center"}),nO=(0,O.H2)(e=>{let{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[nE.variable]:"colors.white",[nC.variable]:"shadows.lg",_dark:{[nE.variable]:"colors.gray.700",[nC.variable]:"shadows.dark-lg"},bg:nE.reference,boxShadow:nC.reference}}),nT=(0,O.H2)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),nP=(0,O.H2)({position:"absolute",top:"2",insetEnd:"3"}),nR=(0,O.H2)({px:"6",py:"2",flex:"1",overflow:"auto"}),nM=(0,O.H2)({px:"6",py:"4"}),nN=nS({baseStyle:n_(e=>({overlay:nA,dialogContainer:nj,dialog:tQ(nO,e),header:nT,closeButton:nP,body:nR,footer:nM})),sizes:{xs:nD("xs"),sm:nD("md"),md:nD("lg"),lg:nD("2xl"),xl:nD("4xl"),full:nD("full")},defaultProps:{size:"xs"}}),{definePartsStyle:nF,defineMultiStyleConfig:nI}=(0,O.YU)(W.keys),nL=nI({baseStyle:nF({preview:(0,O.H2)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),input:(0,O.H2)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),textarea:(0,O.H2)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}})})}),{definePartsStyle:nB,defineMultiStyleConfig:nz}=(0,O.YU)(Y.keys),nU=(0,O.Vg)("form-control-color"),nq=nz({baseStyle:nB({container:{width:"100%",position:"relative"},requiredIndicator:(0,O.H2)({marginStart:"1",[nU.variable]:"colors.red.500",_dark:{[nU.variable]:"colors.red.300"},color:nU.reference}),helperText:(0,O.H2)({mt:"2",[nU.variable]:"colors.gray.600",_dark:{[nU.variable]:"colors.whiteAlpha.600"},color:nU.reference,lineHeight:"normal",fontSize:"sm"})})}),{definePartsStyle:nH,defineMultiStyleConfig:nV}=(0,O.YU)(G.keys),n$=(0,O.Vg)("form-error-color"),nW=nV({baseStyle:nH({text:(0,O.H2)({[n$.variable]:"colors.red.500",_dark:{[n$.variable]:"colors.red.300"},color:n$.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),icon:(0,O.H2)({marginEnd:"0.5em",[n$.variable]:"colors.red.500",_dark:{[n$.variable]:"colors.red.300"},color:n$.reference})})}),nY=(0,O.H2)({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),nG=(0,O.Dt)({baseStyle:nY}),nK=(0,O.H2)({fontFamily:"heading",fontWeight:"bold"}),nX={"4xl":(0,O.H2)({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":(0,O.H2)({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":(0,O.H2)({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:(0,O.H2)({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:(0,O.H2)({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:(0,O.H2)({fontSize:"xl",lineHeight:1.2}),sm:(0,O.H2)({fontSize:"md",lineHeight:1.2}),xs:(0,O.H2)({fontSize:"sm",lineHeight:1.2})},nJ=(0,O.Dt)({baseStyle:nK,sizes:nX,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:nQ,definePartsStyle:nZ}=(0,O.YU)(H.keys),n0=(0,O.Vg)("breadcrumb-link-decor"),n1=nQ({baseStyle:nZ({link:(0,O.H2)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:n0.reference,[n0.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[n0.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}})})}),n2=(0,O.H2)({lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}}),n3=(0,O.H2)(e=>{let{colorScheme:t,theme:r}=e;if("gray"===t)return{color:(0,eR.M)("gray.800","whiteAlpha.900")(e),_hover:{bg:(0,eR.M)("gray.100","whiteAlpha.200")(e)},_active:{bg:(0,eR.M)("gray.200","whiteAlpha.300")(e)}};let n=e3(`${t}.200`,.12)(r),i=e3(`${t}.200`,.24)(r);return{color:(0,eR.M)(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:(0,eR.M)(`${t}.50`,n)(e)},_active:{bg:(0,eR.M)(`${t}.100`,i)(e)}}}),n5=(0,O.H2)(e=>{let{colorScheme:t}=e,r=(0,eR.M)("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...tQ(n3,e)}}),n4={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},n6=(0,O.H2)(e=>{var t;let{colorScheme:r}=e;if("gray"===r){let t=(0,eR.M)("gray.100","whiteAlpha.200")(e);return{bg:t,color:(0,eR.M)("gray.800","whiteAlpha.900")(e),_hover:{bg:(0,eR.M)("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:(0,eR.M)("gray.300","whiteAlpha.400")(e)}}}let{bg:n=`${r}.500`,color:i="white",hoverBg:o=`${r}.600`,activeBg:a=`${r}.700`}=null!=(t=n4[r])?t:{},s=(0,eR.M)(n,`${r}.200`)(e);return{bg:s,color:(0,eR.M)(i,"gray.800")(e),_hover:{bg:(0,eR.M)(o,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:(0,eR.M)(a,`${r}.400`)(e)}}}),n8=(0,O.H2)(e=>{let{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:(0,eR.M)(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:(0,eR.M)(`${t}.700`,`${t}.500`)(e)}}}),n9=(0,O.H2)({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),n7={lg:(0,O.H2)({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:(0,O.H2)({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:(0,O.H2)({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:(0,O.H2)({h:"6",minW:"6",fontSize:"xs",px:"2"})},ie=(0,O.Dt)({baseStyle:n2,variants:{ghost:n3,outline:n5,solid:n6,link:n8,unstyled:n9},sizes:n7,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:it,defineMultiStyleConfig:ir}=(0,O.YU)(ec.keys),ii=(0,O.Vg)("card-bg"),io=(0,O.Vg)("card-padding"),ia=(0,O.Vg)("card-shadow"),is=(0,O.Vg)("card-radius"),il=(0,O.Vg)("card-border-width","0"),iu=(0,O.Vg)("card-border-color"),ic=it({container:{[ii.variable]:"colors.chakra-body-bg",backgroundColor:ii.reference,boxShadow:ia.reference,borderRadius:is.reference,color:"chakra-body-text",borderWidth:il.reference,borderColor:iu.reference},body:{padding:io.reference,flex:"1 1 0%"},header:{padding:io.reference},footer:{padding:io.reference}}),id={sm:it({container:{[is.variable]:"radii.base",[io.variable]:"space.3"}}),md:it({container:{[is.variable]:"radii.md",[io.variable]:"space.5"}}),lg:it({container:{[is.variable]:"radii.xl",[io.variable]:"space.7"}})},ih=ir({baseStyle:ic,variants:{elevated:it({container:{[ia.variable]:"shadows.base",_dark:{[ii.variable]:"colors.gray.700"}}}),outline:it({container:{[il.variable]:"1px",[iu.variable]:"colors.chakra-border-color"}}),filled:it({container:{[ii.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[io.variable]:0},header:{[io.variable]:0},footer:{[io.variable]:0}}},sizes:id,defaultProps:{variant:"elevated",size:"md"}}),ip=eh("close-button-size"),im=eh("close-button-bg"),ig=(0,O.H2)({w:[ip.reference],h:[ip.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[im.variable]:"colors.blackAlpha.100",_dark:{[im.variable]:"colors.whiteAlpha.100"}},_active:{[im.variable]:"colors.blackAlpha.200",_dark:{[im.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:im.reference}),iv={lg:(0,O.H2)({[ip.variable]:"sizes.10",fontSize:"md"}),md:(0,O.H2)({[ip.variable]:"sizes.8",fontSize:"xs"}),sm:(0,O.H2)({[ip.variable]:"sizes.6",fontSize:"2xs"})},iy=(0,O.Dt)({baseStyle:ig,sizes:iv,defaultProps:{size:"md"}}),{variants:ib,defaultProps:iw}=td,ik=(0,O.H2)({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:ta.bg.reference,color:ta.color.reference,boxShadow:ta.shadow.reference}),ix=(0,O.Dt)({baseStyle:ik,variants:ib,defaultProps:iw}),i_=(0,O.H2)({w:"100%",mx:"auto",maxW:"prose",px:"4"}),iS=(0,O.Dt)({baseStyle:i_}),iE=(0,O.H2)({opacity:.6,borderColor:"inherit"}),iC=(0,O.H2)({borderStyle:"solid"}),iD=(0,O.H2)({borderStyle:"dashed"}),iA=(0,O.Dt)({baseStyle:iE,variants:{solid:iC,dashed:iD},defaultProps:{variant:"solid"}}),{definePartsStyle:ij,defineMultiStyleConfig:iO}=(0,O.YU)(z.keys),iT=iO({baseStyle:ij({container:(0,O.H2)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),button:(0,O.H2)({transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"}),panel:(0,O.H2)({pt:"2",px:"4",pb:"5"}),icon:(0,O.H2)({fontSize:"1.25em"})})}),{definePartsStyle:iP,defineMultiStyleConfig:iR}=(0,O.YU)(U.keys),iM=(0,O.Vg)("alert-fg"),iN=(0,O.Vg)("alert-bg");function iF(e){let{theme:t,colorScheme:r}=e,n=e3(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var iI=iR({baseStyle:iP({container:{bg:iN.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:iM.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:iM.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:iP(e=>{let{colorScheme:t}=e,r=iF(e);return{container:{[iM.variable]:`colors.${t}.600`,[iN.variable]:r.light,_dark:{[iM.variable]:`colors.${t}.200`,[iN.variable]:r.dark}}}}),"left-accent":iP(e=>{let{colorScheme:t}=e,r=iF(e);return{container:{[iM.variable]:`colors.${t}.600`,[iN.variable]:r.light,_dark:{[iM.variable]:`colors.${t}.200`,[iN.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:iM.reference}}}),"top-accent":iP(e=>{let{colorScheme:t}=e,r=iF(e);return{container:{[iM.variable]:`colors.${t}.600`,[iN.variable]:r.light,_dark:{[iM.variable]:`colors.${t}.200`,[iN.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:iM.reference}}}),solid:iP(e=>{let{colorScheme:t}=e;return{container:{[iM.variable]:"colors.white",[iN.variable]:`colors.${t}.600`,_dark:{[iM.variable]:"colors.gray.900",[iN.variable]:`colors.${t}.200`},color:iM.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:iL,defineMultiStyleConfig:iB}=(0,O.YU)(q.keys),iz=(0,O.Vg)("avatar-border-color"),iU=(0,O.Vg)("avatar-bg"),iq=(0,O.Vg)("avatar-font-size"),iH=(0,O.Vg)("avatar-size"),iV=(0,O.H2)({borderRadius:"full",border:"0.2em solid",borderColor:iz.reference,[iz.variable]:"white",_dark:{[iz.variable]:"colors.gray.800"}}),i$=(0,O.H2)({bg:iU.reference,fontSize:iq.reference,width:iH.reference,height:iH.reference,lineHeight:"1",[iU.variable]:"colors.gray.200",_dark:{[iU.variable]:"colors.whiteAlpha.400"}}),iW=(0,O.H2)(e=>{let{name:t,theme:r}=e,n=t?function(e){var t;let r=e4();return!e||eQ(e)?r:e.string&&e.colors?function(e,t){let r=0;if(0===e.length)return t[0];for(let t=0;t>8*e&255;r+=`00${n.toString(16)}`.substr(-2)}return r}(e.string):e.colors&&!e.string?(t=e.colors)[Math.floor(Math.random()*t.length)]:r}({string:t}):"colors.gray.400",i=e2(n)(r),o="white";return i||(o="gray.800"),{bg:iU.reference,fontSize:iq.reference,color:o,borderColor:iz.reference,verticalAlign:"top",width:iH.reference,height:iH.reference,"&:not([data-loaded])":{[iU.variable]:n},[iz.variable]:"colors.white",_dark:{[iz.variable]:"colors.gray.800"}}}),iY=(0,O.H2)({fontSize:iq.reference,lineHeight:"1"});function iG(e){let t="100%"!==e?A[e]:void 0;return iL({container:{[iH.variable]:null!=t?t:e,[iq.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[iH.variable]:null!=t?t:e,[iq.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var iK=iB({baseStyle:iL(e=>({badge:tQ(iV,e),excessLabel:tQ(i$,e),container:tQ(iW,e),label:iY})),sizes:{"2xs":iG(4),xs:iG(6),sm:iG(8),md:iG(12),lg:iG(16),xl:iG(24),"2xl":iG(32),full:iG("100%")},defaultProps:{size:"md"}}),iX={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},iJ={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},iQ={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},iZ={semanticTokens:iX,direction:"ltr",...j,components:{Accordion:iT,Alert:iI,Avatar:iK,Badge:td,Breadcrumb:n1,Button:ie,Checkbox:t6,CloseButton:iy,Code:ix,Container:iS,Divider:iA,Drawer:nN,Editable:nL,Form:nq,FormError:nW,FormLabel:nG,Heading:nJ,Input:tR,Kbd:rR,Link:rN,List:rL,Menu:rK,Modal:r9,NumberInput:nh,PinInput:ng,Popover:nx,Progress:tX,Radio:re,Select:ra,Skeleton:rc,SkipLink:rp,Slider:r_,Spinner:rD,Stat:rO,Switch:eP,Table:eL,Tabs:to,Tag:t_,Textarea:tI,Tooltip:tq,Card:ih,Stepper:L},styles:iJ,config:iQ},i0={semanticTokens:iX,direction:"ltr",components:{},...j,styles:iJ,config:iQ}},67417:(e,t,r)=>{"use strict";r.d(t,{ym:()=>v,tE:()=>b,NU:()=>y});var n=r(31662),i=r(14041),o=r(2902),a=r(93006),s=r(11976),l=r(54259),u=r(27372),c=r(60524),d=r(31085),h={initial:e=>{let{position:t}=e,r=["top","bottom"].includes(t)?"y":"x",n=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(n=1),{opacity:0,[r]:24*n}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},p=(0,i.memo)(e=>{let{id:t,message:r,onCloseComplete:p,onRequestRemove:f,requestClose:m=!1,position:g="bottom",duration:v=5e3,containerStyle:y,motionVariants:b=h,toastSpacing:w="0.5rem"}=e,[k,x]=(0,i.useState)(v),_=(0,l.tF)();(0,a.w)(()=>{_||null==p||p()},[_]),(0,a.w)(()=>{x(v)},[v]);let S=()=>{_&&f()};(0,i.useEffect)(()=>{_&&m&&f()},[_,m,f]),function(e,t){let r=(0,o.c)(e);(0,i.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{r()},t),()=>{e&&window.clearTimeout(e)}},[t,r])}(S,k);let E=(0,i.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:w,...y}),[y,w]),C=(0,i.useMemo)(()=>(0,n.Tc)(g),[g]);return(0,d.jsx)(u.P.div,{layout:!0,className:"chakra-toast",variants:b,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>x(null),onHoverEnd:()=>x(v),custom:{position:g},style:C,children:(0,d.jsx)(c.B.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:E,children:(0,s.Jg)(r,{id:t,onClose:S})})})});p.displayName="ToastComponent";var f=r(49513),m=r(63373),g=r(40173),[v,y]=(0,r(37754).q)({name:"ToastOptionsContext",strict:!1}),b=e=>{let t=(0,i.useSyncExternalStore)(f.ZW.subscribe,f.ZW.getState,f.ZW.getState),{motionVariants:r,component:o=p,portalProps:a}=e,s=Object.keys(t).map(e=>{let i=t[e];return(0,d.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:(0,n.V1)(e),children:(0,d.jsx)(m.N,{initial:!1,children:i.map(e=>(0,d.jsx)(o,{motionVariants:r,...e},e.id))})},e)});return(0,d.jsx)(g.Z,{...a,children:s})}},32202:(e,t,r)=>{"use strict";r.d(t,{d:()=>s});var n=r(67417),i=r(49513),o=r(82223),a=r(14041);function s(e){let{theme:t}=(0,o.UQ)(),r=(0,n.NU)();return(0,a.useMemo)(()=>(0,i.UP)(t.direction,{...r,...e}),[e,t.direction,r])}},14729:(e,t,r)=>{"use strict";r.d(t,{J:()=>c});var n=r(67417),i=r(49513),o=r(99740),a=r(56824),s=r(45093),l=r(31085),u={theme:s.w4,colorMode:"light",toggleColorMode:()=>{},setColorMode:()=>{},defaultOptions:{duration:5e3,variant:"solid"},forced:!1};function c({theme:e=u.theme,colorMode:t=u.colorMode,toggleColorMode:r=u.toggleColorMode,setColorMode:s=u.setColorMode,defaultOptions:d=u.defaultOptions,motionVariants:h,toastSpacing:p,component:f,forced:m}=u){let g={colorMode:t,setColorMode:s,toggleColorMode:r,forced:m};return{ToastContainer:()=>(0,l.jsx)(o.NP,{theme:e,children:(0,l.jsx)(a.Ig.Provider,{value:g,children:(0,l.jsx)(n.tE,{defaultOptions:d,motionVariants:h,toastSpacing:p,component:f})})}),toast:(0,i.UP)(e.direction,d)}}},49513:(e,t,r)=>{"use strict";r.d(t,{UP:()=>g,ZW:()=>h});var n=r(31662),i=r(90290),o=r(69648),a=r(84607),s=r(39761),l=r(60524),u=r(94259),c=r(11976),d=r(31085),h=function(e){let t=e,r=new Set,i=e=>{t=e(t),r.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(r.add(t),()=>{i(()=>e),r.delete(t)}),removeToast:(e,t)=>{i(r=>({...r,[t]:r[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{let r=function(e,t={}){var r,n;p+=1;let i=null!=(r=t.id)?r:p,o=null!=(n=t.position)?n:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>h.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:n,id:o}=r;return i(e=>{var t,i;let o=n.includes("top")?[r,...null!=(t=e[n])?t:[]]:[...null!=(i=e[n])?i:[],r];return{...e,[n]:o}}),o},update:(e,t)=>{e&&i(r=>{let i={...r},{position:o,index:a}=(0,n.xi)(i,e);return o&&-1!==a&&(i[o][a]={...i[o][a],...t,message:m(t)}),i})},closeAll:({positions:e}={})=>{i(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,r)=>(e[r]=t[r].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{i(t=>{let r=(0,n.r3)(t,e);return r?{...t,[r]:t[r].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>!!(0,n.xi)(h.getState(),e).position}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),p=0,f=e=>{let{status:t,variant:r="solid",id:n,title:c,isClosable:h,onClose:p,description:f,colorScheme:m,icon:g}=e,v=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return(0,d.jsxs)(i.F,{addRole:!1,status:t,variant:r,id:null==v?void 0:v.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:m,children:[(0,d.jsx)(o._,{children:g}),(0,d.jsxs)(l.B.div,{flex:"1",maxWidth:"100%",children:[c&&(0,d.jsx)(a.X,{id:null==v?void 0:v.title,children:c}),f&&(0,d.jsx)(s.T,{id:null==v?void 0:v.description,display:"block",children:f})]}),h&&(0,d.jsx)(u.J,{size:"sm",onClick:p,position:"absolute",insetEnd:1,top:1})]})};function m(e={}){let{render:t,toastComponent:r=f}=e;return n=>"function"==typeof t?t({...n,...e}):(0,d.jsx)(r,{...n,...e})}function g(e,t){let r=r=>{var n;return{...t,...r,position:function(e,t){var r;let n=null!=e?e:"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return null!=(r=null==i?void 0:i[t])?r:n}(null!=(n=null==r?void 0:r.position)?n:null==t?void 0:t.position,e)}},n=e=>{let t=r(e),n=m(t);return h.notify(n,t)};return n.update=(e,t)=>{h.update(e,r(t))},n.promise=(e,t)=>{let r=n({...t.loading,status:"loading",duration:null});e.then(e=>n.update(r,{status:"success",duration:5e3,...(0,c.Jg)(t.success,e)})).catch(e=>n.update(r,{status:"error",duration:5e3,...(0,c.Jg)(t.error,e)}))},n.closeAll=h.closeAll,n.close=h.close,n.isActive=h.isActive,n}},31662:(e,t,r)=>{"use strict";r.d(t,{Tc:()=>a,V1:()=>s,r3:()=>o,xi:()=>i});var n=(e,t)=>e.find(e=>e.id===t);function i(e,t){let r=o(e,t),n=r?e[r].findIndex(e=>e.id===t):-1;return{position:r,index:n}}function o(e,t){for(let[r,i]of Object.entries(e))if(n(i,t))return r}function a(e){let t=e.includes("right"),r=e.includes("left"),n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function s(e){let t="top"===e||"bottom"===e,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0;return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:t?"0 auto":void 0,top:r,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}},30046:(e,t,r)=>{"use strict";r.d(t,{m:()=>E});var n={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},i=r(88754),o=r(95863),a=r(1743),s=r(45116),l=r(8994),u=r(94800),c=r(11976),d=r(14041),h=e=>{var t;return(null==(t=e.current)?void 0:t.ownerDocument)||document},p=e=>{var t,r;return(null==(r=null==(t=e.current)?void 0:t.ownerDocument)?void 0:r.defaultView)||window},f="chakra-ui:close-tooltip",m=r(40173),g=r(60524),v=r(63552),y=r(11403),b=r(74108),w=r(41259),k=r(27372),x=r(63373),_=r(31085),S=(0,g.B)(k.P.div),E=(0,v.R)((e,t)=>{var r,v;let k;let E=(0,y.Vl)("Tooltip",e),C=(0,b.MN)(e),D=(0,w.D)(),{children:A,label:j,shouldWrapChildren:O,"aria-label":T,hasArrow:P,bg:R,portalProps:M,background:N,backgroundColor:F,bgColor:I,motionProps:L,...B}=C,z=null!=(v=null!=(r=null!=N?N:F)?r:R)?v:I;if(z){E.bg=z;let e=(0,b.f4)(D,"colors",z);E[a.O3.arrowBg.var]=e}let U=function(e={}){let{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:m,closeOnScroll:g,closeOnPointerDown:v=m,closeOnEsc:y=!0,onOpen:b,onClose:w,placement:k,id:x,isOpen:_,defaultIsOpen:S,arrowSize:E=10,arrowShadowColor:C,arrowPadding:D,modifiers:A,isDisabled:j,gutter:O,offset:T,direction:P,...R}=e,{isOpen:M,onOpen:N,onClose:F}=(0,s.j)({isOpen:_,defaultIsOpen:S,onOpen:b,onClose:w}),{referenceRef:I,getPopperProps:L,getArrowInnerProps:B,getArrowProps:z}=(0,o.E)({enabled:M,placement:k,arrowPadding:D,modifiers:A,gutter:O,offset:T,direction:P}),U=(0,d.useId)(),q=`tooltip-${null!=x?x:U}`,H=(0,d.useRef)(null),V=(0,d.useRef)(),$=(0,d.useCallback)(()=>{V.current&&(clearTimeout(V.current),V.current=void 0)},[]),W=(0,d.useRef)(),Y=(0,d.useCallback)(()=>{W.current&&(clearTimeout(W.current),W.current=void 0)},[]),G=(0,d.useCallback)(()=>{Y(),F()},[F,Y]),K=((0,d.useEffect)(()=>{let e=h(H);return e.addEventListener(f,G),()=>e.removeEventListener(f,G)},[G,H]),()=>{let e=h(H),t=p(H);e.dispatchEvent(new t.CustomEvent(f))}),X=(0,d.useCallback)(()=>{if(!j&&!V.current){M&&K();let e=p(H);V.current=e.setTimeout(N,t)}},[K,j,M,N,t]),J=(0,d.useCallback)(()=>{$();let e=p(H);W.current=e.setTimeout(G,r)},[r,G,$]),Q=(0,d.useCallback)(()=>{M&&n&&J()},[n,J,M]),Z=(0,d.useCallback)(()=>{M&&v&&J()},[v,J,M]),ee=(0,d.useCallback)(e=>{M&&"Escape"===e.key&&J()},[M,J]);(0,l.M)(()=>h(H),"keydown",y?ee:void 0),(0,l.M)(()=>{if(!g)return null;let e=H.current;if(!e)return null;let t=function e(t){return["html","body","#document"].includes(t.localName)?t.ownerDocument.body:(0,i.sb)(t)&&function(e){let{overflow:t,overflowX:r,overflowY:n}=(e.ownerDocument.defaultView||window).getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}(t)?t:e("html"===t.localName?t:t.assignedSlot||t.parentElement||t.ownerDocument.documentElement)}(e);return"body"===t.localName?p(H):t},"scroll",()=>{M&&g&&G()},{passive:!0,capture:!0}),(0,d.useEffect)(()=>{j&&($(),M&&F())},[j,M,F,$]),(0,d.useEffect)(()=>()=>{$(),Y()},[$,Y]),(0,l.M)(()=>H.current,"pointerleave",J);let et=(0,d.useCallback)((e={},t=null)=>({...e,ref:(0,u.Px)(H,t,I),onPointerEnter:(0,c.Hj)(e.onPointerEnter,e=>{"touch"!==e.pointerType&&X()}),onClick:(0,c.Hj)(e.onClick,Q),onPointerDown:(0,c.Hj)(e.onPointerDown,Z),onFocus:(0,c.Hj)(e.onFocus,X),onBlur:(0,c.Hj)(e.onBlur,J),"aria-describedby":M?q:void 0}),[X,J,Z,M,q,Q,I]),er=(0,d.useCallback)((e={},t=null)=>L({...e,style:{...e.style,[a.O3.arrowSize.var]:E?`${E}px`:void 0,[a.O3.arrowShadowColor.var]:C}},t),[L,E,C]);return{isOpen:M,show:X,hide:J,getTriggerProps:et,getTooltipProps:(0,d.useCallback)((e={},t=null)=>{let r={...e.style,position:"relative",transformOrigin:a.O3.transformOrigin.varRef};return{ref:t,...R,...e,id:q,role:"tooltip",style:r}},[R,q]),getTooltipPositionerProps:er,getArrowProps:z,getArrowInnerProps:B}}({...B,direction:D.direction});if("string"==typeof A||O)k=(0,_.jsx)(g.B.span,{display:"inline-block",tabIndex:0,...U.getTriggerProps(),children:A});else{let e=d.Children.only(A);k=(0,d.cloneElement)(e,U.getTriggerProps(e.props,e.ref))}let q=!!T,H=U.getTooltipProps({},t),V=q?function(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}(H,["role","id"]):H,$=function(e,t){let r={};for(let n of t)n in e&&(r[n]=e[n]);return r}(H,["role","id"]);return j?(0,_.jsxs)(_.Fragment,{children:[k,(0,_.jsx)(x.N,{children:U.isOpen&&(0,_.jsx)(m.Z,{...M,children:(0,_.jsx)(g.B.div,{...U.getTooltipPositionerProps(),__css:{zIndex:E.zIndex,pointerEvents:"none"},children:(0,_.jsxs)(S,{variants:n,initial:"exit",animate:"enter",exit:"exit",...L,...V,__css:E,children:[j,q&&(0,_.jsx)(g.B.span,{srOnly:!0,...$,children:T}),P&&(0,_.jsx)(g.B.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,_.jsx)(g.B.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:E.bg}})})]})})})})]}):(0,_.jsx)(_.Fragment,{children:A})});E.displayName="Tooltip"},35193:(e,t,r)=>{"use strict";r.d(t,{Jv:()=>o,jd:()=>a,xf:()=>n,yA:()=>s});var n={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},i={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function o(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return i.slideRight;case"left":return i.slideLeft;case"bottom":return i.slideDown;case"top":return i.slideUp}}var a={enter:{duration:.2,ease:n.easeOut},exit:{duration:.1,ease:n.easeIn}},s={enter:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),exit:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit})}},81176:(e,t,r)=>{"use strict";r.d(t,{q:()=>d});var n=r(35193),i=r(11976),o=r(63373),a=r(27372),s=r(14041),l=r(31085),u={exit:{duration:.15,ease:n.xf.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},c={exit:({direction:e,transition:t,transitionEnd:r,delay:i})=>{var o;let{exit:a}=(0,n.Jv)({direction:e});return{...a,transition:null!=(o=null==t?void 0:t.exit)?o:n.yA.exit(u.exit,i),transitionEnd:null==r?void 0:r.exit}},enter:({direction:e,transitionEnd:t,transition:r,delay:i})=>{var o;let{enter:a}=(0,n.Jv)({direction:e});return{...a,transition:null!=(o=null==r?void 0:r.enter)?o:n.yA.enter(u.enter,i),transitionEnd:null==t?void 0:t.enter}}},d=(0,s.forwardRef)(function(e,t){let{direction:r="right",style:s,unmountOnExit:u,in:d,className:h,transition:p,transitionEnd:f,delay:m,motionProps:g,...v}=e,y=Object.assign({position:"fixed"},(0,n.Jv)({direction:r}).position,s),b=!u||d&&u,w=d||u?"enter":"exit",k={transitionEnd:f,transition:p,direction:r,delay:m};return(0,l.jsx)(o.N,{custom:k,children:b&&(0,l.jsx)(a.P.div,{...v,ref:t,initial:"exit",className:(0,i.cx)("chakra-slide",h),animate:w,exit:"exit",custom:k,variants:c,style:y,...g})})});d.displayName="Slide"},27559:(e,t,r)=>{"use strict";r.d(t,{S:()=>h});var n=r(35193),i=r(11976),o=r(63373),a=r(27372),s=r(14041),l=r(31085),u=e=>null!=e&&parseInt(e.toString(),10)>0,c={exit:{height:{duration:.2,ease:n.xf.ease},opacity:{duration:.3,ease:n.xf.ease}},enter:{height:{duration:.3,ease:n.xf.ease},opacity:{duration:.4,ease:n.xf.ease}}},d={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:i,delay:o})=>{var a;return{...e&&{opacity:u(t)?1:0},height:t,transitionEnd:null==i?void 0:i.exit,transition:null!=(a=null==r?void 0:r.exit)?a:n.yA.exit(c.exit,o)}},enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:i,delay:o})=>{var a;return{...e&&{opacity:1},height:t,transitionEnd:null==i?void 0:i.enter,transition:null!=(a=null==r?void 0:r.enter)?a:n.yA.enter(c.enter,o)}}},h=(0,s.forwardRef)((e,t)=>{let{in:r,unmountOnExit:n,animateOpacity:u=!0,startingHeight:c=0,endingHeight:h="auto",style:p,className:f,transition:m,transitionEnd:g,...v}=e,[y,b]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=setTimeout(()=>{b(!0)});return()=>clearTimeout(e)},[]),(0,i.R8)({condition:Number(c)>0&&!!n,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});let w=parseFloat(c.toString())>0,k={startingHeight:c,endingHeight:h,animateOpacity:u,transition:y?m:{enter:{duration:0}},transitionEnd:{enter:null==g?void 0:g.enter,exit:n?null==g?void 0:g.exit:{...null==g?void 0:g.exit,display:w?"block":"none"}}},x=!n||r,_=r||n?"enter":"exit";return(0,l.jsx)(o.N,{initial:!1,custom:k,children:x&&(0,l.jsx)(a.P.div,{ref:t,...v,className:(0,i.cx)("chakra-collapse",f),style:{overflow:"hidden",display:"block",...p},custom:k,variants:d,initial:!!n&&"exit",animate:_,exit:"exit"})})});h.displayName="Collapse"},70405:(e,t,r)=>{"use strict";r.d(t,{l:()=>u,z:()=>c});var n=r(35193),i=r(11976),o=r(63373),a=r(27372),s=r(14041),l=r(31085),u={initial:"exit",animate:"enter",exit:"exit",variants:{enter:({transition:e,transitionEnd:t,delay:r}={})=>{var i;return{opacity:1,transition:null!=(i=null==e?void 0:e.enter)?i:n.yA.enter(n.jd.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var i;return{opacity:0,transition:null!=(i=null==e?void 0:e.exit)?i:n.yA.exit(n.jd.exit,r),transitionEnd:null==t?void 0:t.exit}}}},c=(0,s.forwardRef)(function(e,t){let{unmountOnExit:r,in:n,className:s,transition:c,transitionEnd:d,delay:h,...p}=e,f=n||r?"enter":"exit",m=!r||n&&r,g={transition:c,transitionEnd:d,delay:h};return(0,l.jsx)(o.N,{custom:g,children:m&&(0,l.jsx)(a.P.div,{ref:t,className:(0,i.cx)("chakra-fade",s),custom:g,...u,animate:f,...p})})});c.displayName="Fade"},38735:(e,t,r)=>{"use strict";r.d(t,{ep:()=>o});var n=r(40365),i=e=>e.offsetWidth>0&&e.offsetHeight>0;function o(e){let t=Array.from(e.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"));return t.unshift(e),t.filter(e=>(0,n.tp)(e)&&i(e))}},21667:(e,t,r)=>{"use strict";r.d(t,{d:()=>d,px:()=>o});var n=r(84466),i=r(99435);function o(e){if(null==e)return e;let{unitless:t}=function(e){let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return t||(0,i.Et)(e)?`${e}px`:e}var a=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,s=e=>(0,n.PW)(Object.entries(e).sort(a));function l(e){let t=s(e);return Object.assign(Object.values(t),t)}function u(e){var t;if(!e)return e;let r=(e=null!=(t=o(e))?t:e).endsWith("px")?-.02:-.01;return(0,i.Et)(e)?`${e+r}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+r}`)}function c(e,t){let r=["@media screen"];return e&&r.push("and",`(min-width: ${o(e)})`),t&&r.push("and",`(max-width: ${o(t)})`),r.join(" ")}function d(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";let r=l(e),n=Object.entries(e).sort(a).map(([e,t],r,n)=>{var i;let[,o]=null!=(i=n[r+1])?i:[];return o=parseFloat(o)>0?u(o):void 0,{_minW:u(t),breakpoint:e,minW:t,maxW:o,maxWQuery:c(null,o),minWQuery:c(t),minMaxQuery:c(t,o)}}),o=new Set(Object.keys(s(e))),d=Array.from(o.values());return{keys:o,normalized:r,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>o.has(e))},asObject:s(e),asArray:l(e),details:n,media:[null,...r.map(e=>c(e)).slice(1)],toArrayValue(e){if(!(0,i.Gv)(e))throw Error("toArrayValue: value must be an object");let t=d.map(t=>{var r;return null!=(r=e[t])?r:null});for(;null===function(e){let t=null==e?0:e.length;return t?e[t-1]:void 0}(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw Error("toObjectValue: value must be an array");return e.reduce((e,t,r)=>{let n=d[r];return null!=n&&null!=t&&(e[n]=t),e},{})}}}},15262:(e,t,r)=>{"use strict";r.d(t,{a1:()=>i});var n=Object.freeze(["base","sm","md","lg","xl","2xl"]);function i(e,t=n){let r={};return e.forEach((e,n)=>{let i=t[n];null!=e&&(r[i]=e)}),r}},7499:(e,t,r)=>{"use strict";r.d(t,{Hj:()=>o,Jg:()=>i,R8:()=>s,lQ:()=>a});var n=r(99435);function i(e,...t){return(0,n.Tn)(e)?e(...t):e}function o(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var a=()=>{},s=function(e){let t;return function(...r){return e&&(t=e.apply(this,r),e=null),t}}(e=>()=>{let{condition:t,message:r}=e;t&&n.gt&&console.warn(r)})},81313:(e,t,r)=>{"use strict";function n(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function i(e){var t;if(!n(e))return!1;let r=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof r.HTMLElement}function o(e){var t;return n(e)&&null!=(t=e.ownerDocument)?t:document}r.d(t,{Bd:()=>a,TW:()=>o,cx:()=>s,sb:()=>i});var a=!!("undefined"!=typeof window&&window.document&&window.document.createElement),s=(...e)=>e.filter(Boolean).join(" ")},40365:(e,t,r)=>{"use strict";r.d(t,{B6:()=>o,X7:()=>a,tp:()=>s});var n=r(81313),i=e=>e.hasAttribute("tabindex");function o(e){return(0,n.sb)(e)&&"input"===e.localName&&"select"in e}function a(e){return((0,n.sb)(e)?(0,n.TW)(e):document).activeElement===e}function s(e){var t;if(!(0,n.sb)(e)||function e(t){return!!(t.parentElement&&e(t.parentElement))||t.hidden}(e)||!0==!!(t=e).getAttribute("disabled")||!0==!!t.getAttribute("aria-disabled"))return!1;let{localName:r}=e;if(["input","select","textarea","button"].indexOf(r)>=0)return!0;let o={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return r in o?o[r]():!!function(e){let t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||i(e)}},12761:(e,t,r)=>{"use strict";r.d(t,{X:()=>a});var n=r(40365),i=r(81313),o=r(7499);function a(e,t={}){let{isActive:r=n.X7,nextTick:l,preventScroll:u=!0,selectTextIfInput:c=!0}=t;if(!e||r(e))return -1;function d(){if(!e){(0,o.R8)({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"});return}!function(){if(null==s){s=!1;try{document.createElement("div").focus({get preventScroll(){return s=!0,!0}})}catch(e){}}return s}()?(e.focus(),u&&function(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}(function(e){var t;let r=(0,i.TW)(e),n=null!=(t=r.defaultView)?t:window,o=e.parentNode,a=[],s=r.scrollingElement||r.documentElement;for(;o instanceof n.HTMLElement&&o!==s;)(o.offsetHeight{"use strict";function n(e){return"number"==typeof e}function i(e){return"function"==typeof e}function o(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function a(e){return"[object String]"===Object.prototype.toString.call(e)}r.d(t,{Et:()=>n,Gv:()=>o,Kg:()=>a,Tn:()=>i,gt:()=>s});var s=!1},84466:(e,t,r)=>{"use strict";function n(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function i(e,t){let r={};return t.forEach(t=>{t in e&&(r[t]=e[t])}),r}r.d(t,{I$:()=>a,PW:()=>l,TB:()=>s,Up:()=>i,cJ:()=>n,f4:()=>u,rY:()=>o}),r(66229);var o=(e=>{let t=new WeakMap;return(r,n,i,o)=>{if(void 0===r)return e(r,n,i);t.has(r)||t.set(r,new Map);let a=t.get(r);if(a.has(n))return a.get(n);let s=e(r,n,i,o);return a.set(n,s),s}})(function(e,t,r,n){let i="string"==typeof t?t.split("."):[t];for(n=0;n{let i=e[n];t(i,n,e)&&(r[n]=i)}),r}var s=e=>a(e,e=>null!=e),l=e=>e.reduce((e,[t,r])=>(e[t]=r,e),{}),u=(e,t,r)=>{var n,i,o;return null!=(o=null==(i=null==(n=e.__cssMap)?void 0:n[`${t}.${r}`])?void 0:i.varRef)?o:r}},89072:(e,t,r)=>{"use strict";r.d(t,{f:()=>n});var n={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"}},13139:(e,t,r)=>{"use strict";r.d(t,{s6:()=>o});var n=r(89072),i=r(60524),o=(0,i.B)("span",{baseStyle:n.f});o.displayName="VisuallyHidden",(0,i.B)("input",{baseStyle:n.f}).displayName="VisuallyHiddenInput"},3564:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;ttM,Kk:()=>tF,qg:()=>tN});function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw n}}return o}}(e,t)||u(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function eh(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function ep(e){return e.classList?eh(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function ef(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function em(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function eg(e){return e.size!==ec.size||e.x!==ec.x||e.y!==ec.y||e.rotate!==ec.rotate||e.flipX||e.flipY}function ev(){var e=el.cssPrefix,t=el.replacementClass,r=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, 0));\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==e||t!==R){var n=RegExp("\\.".concat("fa","\\-"),"g"),i=RegExp("\\--".concat("fa","\\-"),"g"),o=RegExp("\\.".concat(R),"g");r=r.replace(n,".".concat(e,"-")).replace(i,"--".concat(e,"-")).replace(o,".".concat(t))}return r}var ey=!1;function eb(){el.autoAddCss&&!ey&&(!function(e){if(e&&O){var t=D.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=D.head.childNodes,n=null,i=r.length-1;i>-1;i--){var o=r[i];["STYLE","LINK"].indexOf((o.tagName||"").toUpperCase())>-1&&(n=o)}D.head.insertBefore(t,n)}}(ev()),ey=!0)}var ew=C||{};ew[P]||(ew[P]={}),ew[P].styles||(ew[P].styles={}),ew[P].hooks||(ew[P].hooks={}),ew[P].shims||(ew[P].shims=[]);var ek=ew[P],ex=[],e_=!1;function eS(e){var t,r=e.tag,n=e.attributes,i=e.children;return"string"==typeof e?ef(e):"<".concat(r," ").concat(Object.keys((t=void 0===n?{}:n)||{}).reduce(function(e,r){return e+"".concat(r,'="').concat(ef(t[r]),'" ')},"").trim(),">").concat((void 0===i?[]:i).map(eS).join(""),"")}function eE(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}!O||(e_=(D.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(D.readyState))||D.addEventListener("DOMContentLoaded",function e(){D.removeEventListener("DOMContentLoaded",e),e_=1,ex.map(function(e){return e()})});var eC=function(e,t,r,n){var i,o,a,s=Object.keys(e),l=s.length,u=void 0!==n?function(e,r,i,o){return t.call(n,e,r,i,o)}:t;for(void 0===r?(i=1,a=e[s[0]]):(i=0,a=r);i=55296&&i<=56319&&r2&&void 0!==arguments[2]?arguments[2]:{},n=r.skipHooks,o=eA(t);"function"!=typeof ek.hooks.addPack||void 0!==n&&n?ek.styles[e]=i(i({},ek.styles[e]||{}),o):ek.hooks.addPack(e,eA(t)),"fas"===e&&ej("fa",t)}var eO=ek.styles,eT=ek.shims,eP=(a(g={},U,Object.values(Y[U])),a(g,q,Object.values(Y[q])),g),eR=null,eM={},eN={},eF={},eI={},eL={},eB=(a(v={},U,Object.keys($[U])),a(v,q,Object.keys($[q])),v),ez=function(){var e=function(e){return eC(eO,function(t,r,n){return t[n]=eC(r,e,{}),t},{})};eM=e(function(e,t,r){return t[3]&&(e[t[3]]=r),t[2]&&t[2].filter(function(e){return"number"==typeof e}).forEach(function(t){e[t.toString(16)]=r}),e}),eN=e(function(e,t,r){return e[r]=r,t[2]&&t[2].filter(function(e){return"string"==typeof e}).forEach(function(t){e[t]=r}),e}),eL=e(function(e,t,r){var n=t[2];return e[r]=r,n.forEach(function(t){e[t]=r}),e});var t="far"in eO||el.autoFetchSvg,r=eC(eT,function(e,r){var n=r[0],i=r[1],o=r[2];return"far"!==i||t||(i="fas"),"string"==typeof n&&(e.names[n]={prefix:i,iconName:o}),"number"==typeof n&&(e.unicodes[n.toString(16)]={prefix:i,iconName:o}),e},{names:{},unicodes:{}});eF=r.names,eI=r.unicodes,eR=e$(el.styleDefault,{family:el.familyDefault})};function eU(e,t){return(eM[e]||{})[t]}function eq(e,t){return(eL[e]||{})[t]}function eH(e){return eF[e]||{prefix:null,iconName:null}}eu.push(function(e){eR=e$(e.styleDefault,{family:el.familyDefault})}),ez();var eV=function(){return{prefix:null,iconName:null,rest:[]}};function e$(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.family,n=void 0===r?U:r,i=$[n][e],o=W[n][e]||W[n][i],a=e in ek.styles?e:null;return o||a||null}var eW=(a(y={},U,Object.keys(Y[U])),a(y,q,Object.keys(Y[q])),y);function eY(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.skipLookups,i=void 0!==n&&n,o=(a(t={},U,"".concat(el.cssPrefix,"-").concat(U)),a(t,q,"".concat(el.cssPrefix,"-").concat(q)),t),s=null,l=U;(e.includes(o[U])||e.some(function(e){return eW[U].includes(e)}))&&(l=U),(e.includes(o[q])||e.some(function(e){return eW[q].includes(e)}))&&(l=q);var u=e.reduce(function(e,t){var r,n,a,u,c=(r=el.cssPrefix,a=(n=t.split("-"))[0],u=n.slice(1).join("-"),a!==r||""===u||~ei.indexOf(u)?null:u);if(eO[t]?(s=t=eP[l].includes(t)?G[l][t]:t,e.prefix=t):eB[l].indexOf(t)>-1?(s=t,e.prefix=e$(t,{family:l})):c?e.iconName=c:t!==el.replacementClass&&t!==o[U]&&t!==o[q]&&e.rest.push(t),!i&&e.prefix&&e.iconName){var d="fa"===s?eH(e.iconName):{},h=eq(e.prefix,e.iconName);d.prefix&&(s=null),e.iconName=d.iconName||h||e.iconName,e.prefix=d.prefix||e.prefix,"far"!==e.prefix||eO.far||!eO.fas||el.autoFetchSvg||(e.prefix="fas")}return e},eV());return(e.includes("fa-brands")||e.includes("fab"))&&(u.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(u.prefix="fad"),!u.prefix&&l===q&&(eO.fass||el.autoFetchSvg)&&(u.prefix="fass",u.iconName=eq(u.prefix,u.iconName)||u.iconName),("fa"===u.prefix||"fa"===s)&&(u.prefix=eR||"fas"),u}var eG=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}return e=[{key:"add",value:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n0&&s.forEach(function(t){"string"==typeof t&&(e[i][t]=a)}),e[i][o]=a}),e}}],function(e,t){for(var r=0;r2?r-2:0),i=2;i1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{};return O?(e0("beforeI2svg",e),e1("pseudoElements2svg",e),e1("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.autoReplaceSvgRoot;!1===el.autoReplaceSvg&&(el.autoReplaceSvg=!0),el.observeMutations=!0,e=function(){e4({autoReplaceSvgRoot:r}),e0("watch",t)},O&&(e_?setTimeout(e,0):ex.push(e))}},parse:{icon:function(e){if(null===e)return null;if("object"===o(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:eq(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],r=e$(e[0]);return{prefix:r,iconName:eq(r,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(el.cssPrefix,"-"))>-1||e.match(K))){var n=eY(e.split(" "),{skipLookups:!0});return{prefix:n.prefix||eR,iconName:eq(n.prefix,n.iconName)||n.iconName}}if("string"==typeof e){var i=eR;return{prefix:i,iconName:eq(i,e)||e}}}},library:e3,findIconDefinition:e2,toHtml:eS},e4=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,r=void 0===t?D:t;(Object.keys(ek.styles).length>0||el.autoFetchSvg)&&O&&el.autoReplaceSvg&&e5.dom.i2svg({node:r})};function e6(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return eS(e)})}}),Object.defineProperty(e,"node",{get:function(){if(O){var t=D.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function e8(e){var t,r,n,o,a,s,l=e.icons,u=l.main,c=l.mask,d=e.prefix,h=e.iconName,p=e.transform,f=e.symbol,m=e.title,g=e.maskId,v=e.titleId,y=e.extra,b=e.watchable,w=c.found?c:u,k=w.width,x=w.height,_="fak"===d,S=[el.replacementClass,h?"".concat(el.cssPrefix,"-").concat(h):""].filter(function(e){return -1===y.classes.indexOf(e)}).filter(function(e){return""!==e||!!e}).concat(y.classes).join(" "),E={children:[],attributes:i(i({},y.attributes),{},{"data-prefix":d,"data-icon":h,class:S,role:y.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(k," ").concat(x)})},C=_&&!~y.classes.indexOf("fa-fw")?{width:"".concat(k/x*1,"em")}:{};void 0!==b&&b&&(E.attributes[M]=""),m&&(E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(v||ed())},children:[m]}),delete E.attributes.title);var D=i(i({},E),{},{prefix:d,iconName:h,main:u,mask:c,maskId:g,transform:p,symbol:f,styles:i(i({},C),y.styles)}),A=c.found&&u.found?e1("generateAbstractMask",D)||{children:[],attributes:{}}:e1("generateAbstractIcon",D)||{children:[],attributes:{}},j=A.children,O=A.attributes;return(D.children=j,D.attributes=O,f)?(t=D.prefix,r=D.iconName,n=D.children,o=D.attributes,s=!0===(a=D.symbol)?"".concat(t,"-").concat(el.cssPrefix,"-").concat(r):a,[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:i(i({},o),{},{id:s}),children:n}]}]):function(e){var t=e.children,r=e.main,n=e.mask,o=e.attributes,a=e.styles,s=e.transform;if(eg(s)&&r.found&&!n.found){var l={x:r.width/r.height/2,y:.5};o.style=em(i(i({},a),{},{"transform-origin":"".concat(l.x+s.x/16,"em ").concat(l.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(D)}function e9(e){var t,r,n,o,a,s,l,u=e.content,c=e.width,d=e.height,h=e.transform,p=e.title,f=e.extra,m=e.watchable,g=i(i(i({},f.attributes),p?{title:p}:{}),{},{class:f.classes.join(" ")});void 0!==m&&m&&(g[M]="");var v=i({},f.styles);eg(h)&&(v.transform=(r=(t={transform:h,startCentered:!0,width:c,height:d}).transform,n=t.width,o=t.height,s=void 0!==(a=t.startCentered)&&a,l="",s&&T?l+="translate(".concat(r.x/16-(void 0===n?16:n)/2,"em, ").concat(r.y/16-(void 0===o?16:o)/2,"em) "):s?l+="translate(calc(-50% + ".concat(r.x/16,"em), calc(-50% + ").concat(r.y/16,"em)) "):l+="translate(".concat(r.x/16,"em, ").concat(r.y/16,"em) "),l+="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),l+="rotate(".concat(r.rotate,"deg) ")),v["-webkit-transform"]=v.transform);var y=em(v);y.length>0&&(g.style=y);var b=[];return b.push({tag:"span",attributes:g,children:[u]}),p&&b.push({tag:"span",attributes:{class:"sr-only"},children:[p]}),b}var e7=ek.styles;function te(e){var t=e[0],r=e[1],n=s(e.slice(4),1)[0];return{found:!0,width:t,height:r,icon:Array.isArray(n)?{tag:"g",attributes:{class:"".concat(el.cssPrefix,"-").concat(er.GROUP)},children:[{tag:"path",attributes:{class:"".concat(el.cssPrefix,"-").concat(er.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(el.cssPrefix,"-").concat(er.PRIMARY),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}}}}var tt={found:!1,width:512,height:512};function tr(e,t){var r=t;return"fa"===t&&null!==el.styleDefault&&(t=eR),new Promise(function(n,o){if(e1("missingIconAbstract"),"fa"===r){var a,s,l=eH(e)||{};e=l.iconName||e,t=l.prefix||t}if(e&&t&&e7[t]&&e7[t][e])return n(te(e7[t][e]));a=e,s=t,z||el.showMissingIcons||!a||console.error('Icon with name "'.concat(a,'" and prefix "').concat(s,'" is missing.')),n(i(i({},tt),{},{icon:el.showMissingIcons&&e&&e1("missingIconAbstract")||{}}))})}var tn=function(){},ti=el.measurePerformance&&j&&j.mark&&j.measure?j:{mark:tn,measure:tn},to='FA "6.5.2"',ta=function(e){ti.mark("".concat(to," ").concat(e," ends")),ti.measure("".concat(to," ").concat(e),"".concat(to," ").concat(e," begins"),"".concat(to," ").concat(e," ends"))},ts={begin:function(e){return ti.mark("".concat(to," ").concat(e," begins")),function(){return ta(e)}}},tl=function(){};function tu(e){return"string"==typeof(e.getAttribute?e.getAttribute(M):null)}function tc(e){return D.createElementNS("http://www.w3.org/2000/svg",e)}function td(e){return D.createElement(e)}var th={replace:function(e){var t=e[0];if(t.parentNode){if(e[1].forEach(function(e){t.parentNode.insertBefore(function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.ceFn,i=void 0===n?"svg"===t.tag?tc:td:n;if("string"==typeof t)return D.createTextNode(t);var o=i(t.tag);return Object.keys(t.attributes||[]).forEach(function(e){o.setAttribute(e,t.attributes[e])}),(t.children||[]).forEach(function(t){o.appendChild(e(t,{ceFn:i}))}),o}(e),t)}),null===t.getAttribute(M)&&el.keepOriginalSource){var r,n=D.createComment((r=" ".concat(t.outerHTML," "),r="".concat(r,"Font Awesome fontawesome.com ")));t.parentNode.replaceChild(n,t)}else t.remove()}},nest:function(e){var t=e[0],r=e[1];if(~ep(t).indexOf(el.replacementClass))return th.replace(e);var n=new RegExp("".concat(el.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(e,t){return t===el.replacementClass||t.match(n)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(e){return eS(e)}).join("\n");t.setAttribute(M,""),t.innerHTML=o}};function tp(e){e()}function tf(e,t){var r="function"==typeof t?t:tl;if(0===e.length)r();else{var n=tp;"async"===el.mutateApproach&&(n=C.requestAnimationFrame||tp),n(function(){var t=!0===el.autoReplaceSvg?th.replace:th[el.autoReplaceSvg]||th.replace,n=ts.begin("mutate");e.map(t),n(),r()})}}var tm=!1,tg=null;function tv(e){if(A&&el.observeMutations){var t=e.treeCallback,r=void 0===t?tl:t,n=e.nodeCallback,i=void 0===n?tl:n,o=e.pseudoElementsCallback,a=void 0===o?tl:o,s=e.observeMutationsRoot,l=void 0===s?D:s;tg=new A(function(e){if(!tm){var t=eR;eh(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!tu(e.addedNodes[0])&&(el.searchPseudoElements&&a(e.target),r(e.target)),"attributes"===e.type&&e.target.parentNode&&el.searchPseudoElements&&a(e.target.parentNode),"attributes"===e.type&&tu(e.target)&&~et.indexOf(e.attributeName)){if("class"===e.attributeName&&(o=(n=e.target).getAttribute?n.getAttribute(F):null,s=n.getAttribute?n.getAttribute(I):null,o&&s)){var n,o,s,l,u=eY(ep(e.target)),c=u.prefix,d=u.iconName;e.target.setAttribute(F,c||t),d&&e.target.setAttribute(I,d)}else(l=e.target)&&l.classList&&l.classList.contains&&l.classList.contains(el.replacementClass)&&i(e.target)}})}}),O&&tg.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ty(e){var t,r,n,o,a,s,l,u,c,d,h,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},f=(n=e.getAttribute("data-prefix"),o=e.getAttribute("data-icon"),a=void 0!==e.innerText?e.innerText.trim():"",(s=eY(ep(e))).prefix||(s.prefix=eR),n&&o&&(s.prefix=n,s.iconName=o),s.iconName&&s.prefix||(s.prefix&&a.length>0&&(s.iconName=(t=s.prefix,r=e.innerText,(eN[t]||{})[r]||eU(s.prefix,eD(e.innerText)))),!s.iconName&&el.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s),m=f.iconName,g=f.prefix,v=f.rest,y=(l=eh(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{}),u=e.getAttribute("title"),c=e.getAttribute("data-fa-title-id"),el.autoA11y&&(u?l["aria-labelledby"]="".concat(el.replacementClass,"-title-").concat(c||ed()):(l["aria-hidden"]="true",l.focusable="false")),l),b=eZ("parseNodeAttributes",{},e),w=p.styleParser?(d=e.getAttribute("style"),h=[],d&&(h=d.split(";").reduce(function(e,t){var r=t.split(":"),n=r[0],i=r.slice(1);return n&&i.length>0&&(e[n]=i.join(":").trim()),e},{})),h):[];return i({iconName:m,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:g,transform:ec,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:v,styles:w,attributes:y}},b)}var tb=ek.styles;function tw(e){var t="nest"===el.autoReplaceSvg?ty(e,{styleParser:!1}):ty(e);return~t.extra.classes.indexOf(X)?e1("generateLayersText",e,t):e1("generateSvgReplacementMutation",e,t)}var tk=new Set;function tx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!O)return Promise.resolve();var r=D.documentElement.classList,n=function(e){return r.add("".concat(L,"-").concat(e))},i=function(e){return r.remove("".concat(L,"-").concat(e))},o=el.autoFetchSvg?tk:H.map(function(e){return"fa-".concat(e)}).concat(Object.keys(tb));o.includes("fa")||o.push("fa");var a=[".".concat(X,":not([").concat(M,"])")].concat(o.map(function(e){return".".concat(e,":not([").concat(M,"])")})).join(", ");if(0===a.length)return Promise.resolve();var s=[];try{s=eh(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();n("pending"),i("complete");var l=ts.begin("onTree"),u=s.reduce(function(e,t){try{var r=tw(t);r&&e.push(r)}catch(e){z||"MissingIcon"!==e.name||console.error(e)}return e},[]);return new Promise(function(e,r){Promise.all(u).then(function(r){tf(r,function(){n("active"),n("complete"),i("pending"),"function"==typeof t&&t(),l(),e()})}).catch(function(e){l(),r(e)})})}function t_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;tw(e).then(function(e){e&&tf([e],t)})}H.map(function(e){tk.add("fa-".concat(e))}),Object.keys($[U]).map(tk.add.bind(tk)),Object.keys($[q]).map(tk.add.bind(tk)),tk=l(tk);var tS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.transform,n=void 0===r?ec:r,o=t.symbol,a=void 0!==o&&o,s=t.mask,l=void 0===s?null:s,u=t.maskId,c=void 0===u?null:u,d=t.title,h=void 0===d?null:d,p=t.titleId,f=void 0===p?null:p,m=t.classes,g=void 0===m?[]:m,v=t.attributes,y=void 0===v?{}:v,b=t.styles,w=void 0===b?{}:b;if(e){var k=e.prefix,x=e.iconName,_=e.icon;return e6(i({type:"icon"},e),function(){return e0("beforeDOMElementCreation",{iconDefinition:e,params:t}),el.autoA11y&&(h?y["aria-labelledby"]="".concat(el.replacementClass,"-title-").concat(f||ed()):(y["aria-hidden"]="true",y.focusable="false")),e8({icons:{main:te(_),mask:l?te(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:k,iconName:x,transform:i(i({},ec),n),symbol:a,title:h,maskId:c,titleId:f,extra:{attributes:y,styles:w,classes:g}})})}},tE=RegExp('"',"ug");function tC(e,t){var r="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(function(n,o){if(null!==e.getAttribute(r))return n();var a=eh(e.children).filter(function(e){return e.getAttribute(N)===t})[0],s=C.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(J),u=s.getPropertyValue("font-weight"),c=s.getPropertyValue("content");if(a&&!l)return e.removeChild(a),n();if(l&&"none"!==c&&""!==c){var d=s.getPropertyValue("content"),h=~["Sharp"].indexOf(l[2])?q:U,p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?W[h][l[2].toLowerCase()]:Q[h][u],f=(_=(k=w=d.replace(tE,"")).length,E=(S=k.charCodeAt(0))>=55296&&S<=56319&&_>1&&(x=k.charCodeAt(1))>=56320&&x<=57343?(S-55296)*1024+x-56320+65536:S,{value:(A=2===w.length&&w[0]===w[1])?eD(w[0]):eD(w),isSecondary:E>=1105920&&E<=1112319||A}),m=f.value,g=f.isSecondary,v=l[0].startsWith("FontAwesome"),y=eU(p,m),b=y;if(v){var w,k,x,_,S,E,A,j,O,T=(j=eI[m],O=eU("fas",m),j||(O?{prefix:"fas",iconName:O}:null)||{prefix:null,iconName:null});T.iconName&&T.prefix&&(y=T.iconName,p=T.prefix)}if(!y||g||a&&a.getAttribute(F)===p&&a.getAttribute(I)===b)n();else{e.setAttribute(r,b),a&&e.removeChild(a);var P={iconName:null,title:null,titleId:null,prefix:null,transform:ec,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},R=P.extra;R.attributes[N]=t,tr(y,p).then(function(o){var a=e8(i(i({},P),{},{icons:{main:o,mask:eV()},prefix:p,iconName:b,extra:R,watchable:!0})),s=D.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(s,e.firstChild):e.appendChild(s),s.outerHTML=a.map(function(e){return eS(e)}).join("\n"),e.removeAttribute(r),n()}).catch(o)}}else n()})}function tD(e){return Promise.all([tC(e,"::before"),tC(e,"::after")])}function tA(e){return e.parentNode!==document.head&&!~B.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(N)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function tj(e){if(O)return new Promise(function(t,r){var n=eh(e.querySelectorAll("*")).filter(tA).map(tD),i=ts.begin("searchPseudoElements");tm=!0,Promise.all(n).then(function(){i(),tm=!1,t()}).catch(function(){i(),tm=!1,r()})})}var tO=!1,tT=function(e){return e.toLowerCase().split(" ").reduce(function(e,t){var r=t.toLowerCase().split("-"),n=r[0],i=r.slice(1).join("-");if(n&&"h"===i)return e.flipX=!0,e;if(n&&"v"===i)return e.flipY=!0,e;if(isNaN(i=parseFloat(i)))return e;switch(n){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},tP={x:0,y:0,width:"100%",height:"100%"};function tR(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}!function(e,t){var r=t.mixoutsTo;eK=e,eX={},Object.keys(eJ).forEach(function(e){-1===eQ.indexOf(e)&&delete eJ[e]}),eK.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){"function"==typeof t[e]&&(r[e]=t[e]),"object"===o(t[e])&&Object.keys(t[e]).forEach(function(n){r[e]||(r[e]={}),r[e][n]=t[e][n]})}),e.hooks){var n=e.hooks();Object.keys(n).forEach(function(e){eX[e]||(eX[e]=[]),eX[e].push(n[e])})}e.provides&&e.provides(eJ)})}([{mixout:function(){return{dom:{css:ev,insertCss:eb}}},hooks:function(){return{beforeDOMElementCreation:function(){eb()},beforeI2svg:function(){eb()}}}},{mixout:function(){return{icon:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(e||{}).icon?e:e2(e||{}),n=t.mask;return n&&(n=(n||{}).icon?n:e2(n||{})),tS(r,i(i({},t),{},{mask:n}))}}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=tx,e.nodeCallback=t_,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,r=void 0===t?D:t,n=e.callback;return tx(r,void 0===n?function(){}:n)},e.generateSvgReplacementMutation=function(e,t){var r=t.iconName,n=t.title,i=t.titleId,o=t.prefix,a=t.transform,l=t.symbol,u=t.mask,c=t.maskId,d=t.extra;return new Promise(function(t,h){Promise.all([tr(r,o),u.iconName?tr(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(u){var h=s(u,2);t([e,e8({icons:{main:h[0],mask:h[1]},prefix:o,iconName:r,transform:a,symbol:l,maskId:c,title:n,titleId:i,extra:d,watchable:!0})])}).catch(h)})},e.generateAbstractIcon=function(e){var t,r=e.children,n=e.attributes,i=e.main,o=e.transform,a=em(e.styles);return a.length>0&&(n.style=a),eg(o)&&(t=e1("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(t||i.icon),{children:r,attributes:n}}}},{mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.classes,n=void 0===r?[]:r;return e6({type:"layer"},function(){e0("beforeDOMElementCreation",{assembler:e,params:t});var r=[];return e(function(e){Array.isArray(e)?e.map(function(e){r=r.concat(e.abstract)}):r=r.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(el.cssPrefix,"-layers")].concat(l(n)).join(" ")},children:r}]})}}}},{mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.title,n=void 0===r?null:r,o=t.classes,a=void 0===o?[]:o,s=t.attributes,u=void 0===s?{}:s,c=t.styles,d=void 0===c?{}:c;return e6({type:"counter",content:e},function(){var r,o,s,c,h,p,f;return e0("beforeDOMElementCreation",{content:e,params:t}),o=(r={content:e.toString(),title:n,extra:{attributes:u,styles:d,classes:["".concat(el.cssPrefix,"-layers-counter")].concat(l(a))}}).content,s=r.title,h=i(i(i({},(c=r.extra).attributes),s?{title:s}:{}),{},{class:c.classes.join(" ")}),(p=em(c.styles)).length>0&&(h.style=p),(f=[]).push({tag:"span",attributes:h,children:[o]}),s&&f.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),f})}}}},{mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.transform,n=void 0===r?ec:r,o=t.title,a=void 0===o?null:o,s=t.classes,u=void 0===s?[]:s,c=t.attributes,d=void 0===c?{}:c,h=t.styles,p=void 0===h?{}:h;return e6({type:"text",content:e},function(){return e0("beforeDOMElementCreation",{content:e,params:t}),e9({content:e,transform:i(i({},ec),n),title:a,extra:{attributes:d,styles:p,classes:["".concat(el.cssPrefix,"-layers-text")].concat(l(u))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var r=t.title,n=t.transform,i=t.extra,o=null,a=null;if(T){var s=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();o=l.width/s,a=l.height/s}return el.autoA11y&&!r&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,e9({content:e.innerHTML,width:o,height:a,transform:n,title:r,extra:i,watchable:!0})])}}},{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=tj,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,r=void 0===t?D:t;el.searchPseudoElements&&tj(r)}}},{mixout:function(){return{dom:{unwatch:function(){tm=!0,tO=!0}}}},hooks:function(){return{bootstrap:function(){tv(eZ("mutationObserverCallbacks",{}))},noAuto:function(){tg&&tg.disconnect()},watch:function(e){var t=e.observeMutationsRoot;tO?tm=!1:tv(eZ("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},{mixout:function(){return{parse:{transform:function(e){return tT(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var r=t.getAttribute("data-fa-transform");return r&&(e.transform=tT(r)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,r=e.transform,n=e.containerWidth,o=e.iconWidth,a="translate(".concat(32*r.x,", ").concat(32*r.y,") "),s="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),l="rotate(".concat(r.rotate," 0 0)"),u={transform:"".concat(a," ").concat(s," ").concat(l)},c={outer:{transform:"translate(".concat(n/2," 256)")},inner:u,path:{transform:"translate(".concat(-(o/2*1)," -256)")}};return{tag:"g",attributes:i({},c.outer),children:[{tag:"g",attributes:i({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:i(i({},t.icon.attributes),c.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var r=t.getAttribute("data-fa-mask"),n=r?eY(r.split(" ").map(function(e){return e.trim()})):eV();return n.prefix||(n.prefix=eR),e.mask=n,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,r,n,o,a,s,l,u,c=e.children,d=e.attributes,h=e.main,p=e.mask,f=e.maskId,m=e.transform,g=h.width,v=h.icon,y=p.width,b=p.icon,w=(r=(t={transform:m,containerWidth:y,iconWidth:g}).transform,n=t.containerWidth,o=t.iconWidth,a="translate(".concat(32*r.x,", ").concat(32*r.y,") "),s="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),l="rotate(".concat(r.rotate," 0 0)"),u={transform:"".concat(a," ").concat(s," ").concat(l)},{outer:{transform:"translate(".concat(n/2," 256)")},inner:u,path:{transform:"translate(".concat(-(o/2*1)," -256)")}}),k={tag:"rect",attributes:i(i({},tP),{},{fill:"white"})},x=v.children?{children:v.children.map(tR)}:{},_={tag:"g",attributes:i({},w.inner),children:[tR(i({tag:v.tag,attributes:i(i({},v.attributes),w.path)},x))]},S={tag:"g",attributes:i({},w.outer),children:[_]},E="mask-".concat(f||ed()),C="clip-".concat(f||ed()),D={tag:"mask",attributes:i(i({},tP),{},{id:E,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[k,S]},A={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:"g"===b.tag?b.children:[b]},D]};return c.push(A,{tag:"rect",attributes:i({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(E,")")},tP)}),{children:c,attributes:d}}}},{provides:function(e){var t=!1;C.matchMedia&&(t=C.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],r={fill:"currentColor"},n={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:i(i({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=i(i({},n),{},{attributeName:"opacity"}),a={tag:"circle",attributes:i(i({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:i(i({},n),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:i(i({},o),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:i(i({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:i(i({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:i(i({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:i(i({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var r=t.getAttribute("data-fa-symbol");return e.symbol=null!==r&&(""===r||r),e}}}}],{mixoutsTo:e5}),e5.noAuto;var tM=e5.config;e5.library,e5.dom;var tN=e5.parse;e5.findIconDefinition,e5.toHtml;var tF=e5.icon;e5.layer,e5.text,e5.counter},6998:(e,t,r)=>{"use strict";r.d(t,{Bw:()=>a,bL:()=>l});var n=r(76285);let i=e=>Error(e),o=()=>{throw i("Unexpected case")},a=(e,t,r)=>{if(0===e)return n.SF(t,0);let i=null===t._first?null:t._first.content.type;for(;null!==i&&t!==i;){if(i instanceof n.ZQ){if(i._length>=e)return n.SF(i,e);if(e-=i._length,null!==i._item&&null!==i._item.next)i=i._item.next.content.type;else{do i=null===i._item?null:i._item.parent,e--;while(i!==t&&null!==i&&null!==i._item&&null===i._item.next);null!==i&&i!==t&&(i=null===i._item?null:i._item.next.content.type)}}else{let o=(r.get(i)||{nodeSize:0}).nodeSize;if(null!==i._first&&e1)return new n.QQ(null===i._item?null:i._item.id,null===i._item?n.xC(i):null,null);if(e-=o,null!==i._item&&null!==i._item.next)i=i._item.next.content.type;else{if(0===e)return i=null===i._item?i:i._item.parent,new n.QQ(null===i._item?null:i._item.id,null===i._item?n.xC(i):null,null);do i=i._item.parent,e--;while(i!==t&&null===i._item.next);i!==t&&(i=i._item.next.content.type)}}}if(null===i)throw o();if(0===e&&i.constructor!==n.ZQ&&i!==t)return s(i._item.parent,i._item)}return n.SF(t,t._length)},s=(e,t)=>{let r=null,i=null;return null===e._item?i=n.xC(e):r=n.eg(e._item.id.client,e._item.id.clock),new n.QQ(r,i,t.id)},l=(e,t,r,i)=>{let o=n.IT(r,e);if(null===o||o.type!==t&&!n.Mp(t,o.type._item))return null;let a=o.type,s=0;if(a.constructor===n.ZQ)s=o.index;else if(null===a._item||!a._item.deleted){let e=a._first,t=0;for(;t{"use strict";r.d(t,{Mj:()=>o,pJ:()=>i});var n=r(81570);let i=new n.hs("y-sync"),o=new n.hs("y-undo");new n.hs("yjs-cursor")},67965:(e,t,r)=>{"use strict";r.d(t,{tN:()=>i});var n=r(3583);let i=e=>{let t=n.Mj.getState(e).undoManager;if(null!=t)return t.undo(),!0}},12327:(e,t,r)=>{"use strict";r.d(t,{Ru:()=>E});var n=r(76850);let i=e=>"string"==typeof e,o=e=>"function"==typeof e,a=new Map;function s(e){return[...Array.isArray(e)?e:[e],"en"]}function l(e,t,r){let n=s(e);return d(()=>h("date",n,r),()=>new Intl.DateTimeFormat(n,r)).format(i(t)?new Date(t):t)}function u(e,t,r){let n=s(e);return d(()=>h("number",n,r),()=>new Intl.NumberFormat(n,r)).format(t)}function c(e,t,r,{offset:n=0,...i}){let o=s(e),a=t?d(()=>h("plural-ordinal",o),()=>new Intl.PluralRules(o,{type:"ordinal"})):d(()=>h("plural-cardinal",o),()=>new Intl.PluralRules(o,{type:"cardinal"}));return i[r]??i[a.select(r-n)]??i.other}function d(e,t){let r=e(),n=a.get(r);return n||(n=t(),a.set(r,n)),n}function h(e,t,r){let n=t.join("-");return`${e}-${n}-${JSON.stringify(r)}`}let p=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,f="%__lingui_octothorpe__%",m=(e,t,r={})=>{let n=t||e,i=e=>"object"==typeof e?e:r[e]||{style:e},o=(e,t)=>{let o=u(n,e,Object.keys(r).length?i("number"):void 0);return t.replace(RegExp(f,"g"),o)};return{plural:(e,t)=>{let{offset:r=0}=t,i=c(n,!1,e,t);return o(e-r,i)},selectordinal:(e,t)=>{let{offset:r=0}=t,i=c(n,!0,e,t);return o(e-r,i)},select:g,number:(e,t)=>u(n,e,i(t)),date:(e,t)=>l(n,e,i(t))}},g=(e,t)=>t[e]??t.other;var v=Object.defineProperty,y=(e,t,r)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b=(e,t,r)=>(y(e,"symbol"!=typeof t?t+"":t,r),r);class w{constructor(){b(this,"_events",{})}on(e,t){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){let r=this._getListeners(e);if(!r)return;let n=r.indexOf(t);~n&&r.splice(n,1)}emit(e,...t){let r=this._getListeners(e);r&&r.map(e=>e.apply(this,t))}_getListeners(e){let t=this._events[e];return!!Array.isArray(t)&&t}}var k=Object.defineProperty,x=(e,t,r)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t,r)=>(x(e,"symbol"!=typeof t?t+"":t,r),r);class S extends w{constructor(e){super(),_(this,"_locale",""),_(this,"_locales"),_(this,"_localeData",{}),_(this,"_messages",{}),_(this,"_missing"),_(this,"t",this._.bind(this)),null!=e.missing&&(this._missing=e.missing),null!=e.messages&&this.load(e.messages),null!=e.localeData&&this.loadLocaleData(e.localeData),("string"==typeof e.locale||e.locales)&&this.activate(e.locale??"en",e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}get localeData(){return this._localeData[this._locale]??{}}_loadLocaleData(e,t){let r=this._localeData[e];r?Object.assign(r,t):this._localeData[e]=t}loadLocaleData(e,t){null!=t?this._loadLocaleData(e,t):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,t){let r=this._messages[e];r?Object.assign(r,t):this._messages[e]=t}load(e,t){"string"==typeof e&&"object"==typeof t?this._load(e,t):Object.entries(e).forEach(([e,t])=>this._load(e,t)),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:r}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=r,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t,r){var a,s;let l=r?.message;e||(e=""),i(e)||(t=e.values||t,l=e.message,e=e.id);let u=this.messages[e],c=void 0===u,d=this._missing;if(d&&c)return o(d)?d(this._locale,e):d;c&&this.emit("missing",{id:e,locale:this._locale});let h=u||l||e;return i(h)&&p.test(h)?JSON.parse(`"${h}"`):i(h)?h:(a=this._locale,s=this._locales,(e={},t)=>{let r=m(a,s,t),o=(t,n=!1)=>Array.isArray(t)?t.reduce((t,a)=>{let s;if("#"===a&&n)return t+f;if(i(a))return t+a;let[l,u,c]=a,d={};return("plural"===u||"selectordinal"===u||"select"===u?Object.entries(c).forEach(([e,t])=>{d[e]=o(t,"plural"===u||"selectordinal"===u)}):d=c,null==(s=u?(0,r[u])(e[l],d):e[l]))?t:t+s},""):t,l=o(h);return i(l)&&p.test(l)?(0,n.MH)(l.trim()):i(l)?l.trim():l?String(l):""})(t,r?.formats)}date(e,t){return l(this._locales||this._locale,e,t)}number(e,t){return u(this._locales||this._locale,e,t)}}let E=function(e={}){return new S(e)}()},52177:(e,t,r)=>{"use strict";r.d(t,{CY:()=>p,x6:()=>f,uB:()=>h});var n=r(14041);let i=/<([a-zA-Z0-9]+)>(.*?)<\/\1>|<([a-zA-Z0-9]+)\/>/,o=/(?:\r\n|\r|\n)/g,a={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},s=(e=0,t="")=>()=>`${t}_${e++}`;function l(e){let{render:t,component:r,id:l,message:c,formats:d,lingui:{i18n:h,defaultComponent:p}}=e,f={...e.values},m={...e.components};f&&Object.keys(f).forEach(e=>{let t=f[e];if(!(n.isValidElement(t)||Array.isArray(t)&&t.every(n.isValidElement)))return;let r=Object.keys(m).length;m[r]=t,f[e]=`<${r}/>`});let g=h&&"function"==typeof h._?h._(l,f,{message:c,formats:d}):l,v=g?function e(t,r={}){let l=s(0,"$lingui$"),u=t.replace(o,"").split(i);if(1===u.length)return t;let c=[],d=u.shift();for(let[t,i,o]of(d&&c.push(d),function e(t){if(!t.length)return[];let[r,n,i,o]=t.slice(0,4);return[[r||i,n||"",o]].concat(e(t.slice(4,t.length)))}(u))){let s=void 0!==t?r[t]:void 0;(!s||a[s.type]&&i)&&(s?console.error(`${s.type} is a void element tag therefore it must have no children`):console.error(`Can't use element at index '${t}' as it is not declared in the original translation`),s=n.createElement(n.Fragment)),Array.isArray(s)&&(s=n.createElement(n.Fragment,{},s)),c.push(n.cloneElement(s,{key:l()},i?e(i,r):s.props.children)),o&&c.push(o)}return 1===c.length?c[0]:c}(g,m):null;if(null===t||null===r)return v;let y=p||u,b={id:l,message:c,translation:v,isTranslated:l!==v&&c!==v,children:v};if(t&&r)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(t&&"function"!=typeof t)console.error(`Invalid value supplied to prop \`render\`. It must be a function, provided ${t}`);else if(r&&"function"!=typeof r)return console.error(`Invalid value supplied to prop \`component\`. It must be a React component, provided ${r}`),n.createElement(y,b,v);if("function"==typeof t)return t(b);let w=r||y;return n.createElement(w,b,v)}let u=({children:e})=>n.createElement(n.Fragment,null,e),c=n.createContext(null),d=e=>n.useContext(c);function h(){return d()}let p=({i18n:e,defaultComponent:t,children:r})=>{let i=n.useRef(e.locale),o=n.useCallback(()=>({i18n:e,defaultComponent:t,_:e.t.bind(e)}),[e,t]),[a,s]=n.useState(o());return(n.useEffect(()=>{let t=()=>{i.current=e.locale,s(o())},r=e.on("change",t);return i.current!==e.locale&&t(),r},[e,o]),i.current)?n.createElement(c.Provider,{value:a},r):null};function f(e){let t=d(void 0);return n.createElement(l,{...e,lingui:t})}},29659:(e,t,r)=>{"use strict";r.d(t,{v4:()=>a});for(var n,i=256,o=[];i--;)o[i]=(i+256).toString(16).substring(1);function a(){var e,t=0,r="";if(!n||i+16>256){for(n=Array(t=256);t--;)n[t]=256*Math.random()|0;t=i=0}for(;t<16;t++)e=n[i+t],6==t?r+=o[15&e|64]:8==t?r+=o[63&e|128]:r+=o[e],1&t&&t>1&&t<11&&(r+="-");return i++,r}},18873:(e,t,r)=>{"use strict";r.d(t,{V:()=>i});var n=r(39907);function i(e,t,...r){if(void 0!==n&&void 0===t)throw Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;(e=Error(t.replace(/%s/g,function(){return r[n++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}},9293:(e,t,r)=>{"use strict";function n(e,t,r,n){let i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;let o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let a=0;an})},30196:(e,t,r)=>{"use strict";r.d(t,{GC:()=>Z,I4:()=>et,zk:()=>l});var n,i=r(14041),o="colors",a="sizes",s="space",l={gap:s,gridGap:s,columnGap:s,gridColumnGap:s,rowGap:s,gridRowGap:s,inset:s,insetBlock:s,insetBlockEnd:s,insetBlockStart:s,insetInline:s,insetInlineEnd:s,insetInlineStart:s,margin:s,marginTop:s,marginRight:s,marginBottom:s,marginLeft:s,marginBlock:s,marginBlockEnd:s,marginBlockStart:s,marginInline:s,marginInlineEnd:s,marginInlineStart:s,padding:s,paddingTop:s,paddingRight:s,paddingBottom:s,paddingLeft:s,paddingBlock:s,paddingBlockEnd:s,paddingBlockStart:s,paddingInline:s,paddingInlineEnd:s,paddingInlineStart:s,top:s,right:s,bottom:s,left:s,scrollMargin:s,scrollMarginTop:s,scrollMarginRight:s,scrollMarginBottom:s,scrollMarginLeft:s,scrollMarginX:s,scrollMarginY:s,scrollMarginBlock:s,scrollMarginBlockEnd:s,scrollMarginBlockStart:s,scrollMarginInline:s,scrollMarginInlineEnd:s,scrollMarginInlineStart:s,scrollPadding:s,scrollPaddingTop:s,scrollPaddingRight:s,scrollPaddingBottom:s,scrollPaddingLeft:s,scrollPaddingX:s,scrollPaddingY:s,scrollPaddingBlock:s,scrollPaddingBlockEnd:s,scrollPaddingBlockStart:s,scrollPaddingInline:s,scrollPaddingInlineEnd:s,scrollPaddingInlineStart:s,fontSize:"fontSizes",background:o,backgroundColor:o,backgroundImage:o,borderImage:o,border:o,borderBlock:o,borderBlockEnd:o,borderBlockStart:o,borderBottom:o,borderBottomColor:o,borderColor:o,borderInline:o,borderInlineEnd:o,borderInlineStart:o,borderLeft:o,borderLeftColor:o,borderRight:o,borderRightColor:o,borderTop:o,borderTopColor:o,caretColor:o,color:o,columnRuleColor:o,fill:o,outline:o,outlineColor:o,stroke:o,textDecorationColor:o,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:a,minBlockSize:a,maxBlockSize:a,inlineSize:a,minInlineSize:a,maxInlineSize:a,width:a,minWidth:a,maxWidth:a,height:a,minHeight:a,maxHeight:a,flexBasis:a,gridTemplateColumns:a,gridTemplateRows:a,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},u=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,c=()=>{let e=Object.create(null);return(t,r,...n)=>{let i=JSON.stringify(t,u);return i in e?e[i]:e[i]=r(t,...n)}},d=Symbol.for("sxs.internal"),h=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),p=e=>{for(let t in e)return!0;return!1},{hasOwnProperty:f}=Object.prototype,m=e=>e.includes("-")?e:e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),g=/\s+(?![^()]*\))/,v=e=>t=>e(..."string"==typeof t?String(t).split(g):[t]),y={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:v((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:v((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:v((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:v((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:v((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:v((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},b=/([\d.]+)([^]*)/,w=(e,t)=>e.length?e.reduce((e,r)=>(e.push(...t.map(e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(e)?`:is(${r})`:r):r+" "+e)),e),[]):t,k=(e,t)=>e in x&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(t,r,n,i)=>r+("stretch"===n?`-moz-available${i};${m(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${m(e)}:${r}fit-content`)+i):String(t),x={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},_=e=>e?e+"-":"",S=(e,t,r)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(e,n,i,o,a)=>"$"==o==!!i?e:(n||"--"==o?"calc(":"")+"var(--"+("$"===o?_(t)+(a.includes("$")?"":_(r))+a.replace(/\$/g,"-"):a)+")"+(n||"--"==o?"*"+(n||"")+(i||"1")+")":"")),E=/\s*,\s*(?![^()]*\))/,C=Object.prototype.toString,D=(e,t,r,n,i)=>{let o,a,s;let l=(e,t,r)=>{let u,c;let d=e=>{var h;for(u in e){let p=64===u.charCodeAt(0);for(c of p&&Array.isArray(e[u])?e[u]:[e[u]]){let e=/[A-Z]/.test(h=u)?h:h.replace(/-[^]/g,e=>e[1].toUpperCase()),f="object"==typeof c&&c&&c.toString===C&&(!n.utils[e]||!t.length);if(e in n.utils&&!f){let t=n.utils[e];if(t!==a){a=t,d(t(c)),a=null;continue}}else if(e in y){let t=y[e];if(t!==s){s=t,d(t(c)),s=null;continue}}if(p&&(u=(u.slice(1)in n.media?"@media "+n.media[u.slice(1)]:u).replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(e,t,r,n,i,o)=>{let a=b.test(t),s=.0625*(a?-1:1),[l,u]=a?[n,t]:[t,n];return"("+("="===r[0]?"":">"===r[0]===a?"max-":"min-")+l+":"+("="!==r[0]&&1===r.length?u.replace(b,(e,t,n)=>Number(t)+s*(">"===r?1:-1)+n):u)+(i?") and ("+(">"===i[0]?"min-":"max-")+l+":"+(1===i.length?o.replace(b,(e,t,r)=>Number(t)+s*(">"===i?-1:1)+r):o):"")+")"})),f){let e=p?r.concat(u):[...r],n=p?[...t]:w(t,u.split(E));void 0!==o&&i(A(...o)),o=void 0,l(c,n,e)}else void 0===o&&(o=[[],t,r]),u=p||36!==u.charCodeAt(0)?u:`--${_(n.prefix)}${u.slice(1).replace(/\$/g,"-")}`,c=f?c:"number"==typeof c?c&&e in j?String(c)+"px":String(c):S(k(e,null==c?"":c),n.prefix,n.themeMap[e]),o[0].push(`${p?`${u} `:`${m(u)}:`}${c}`)}}};d(e),void 0!==o&&i(A(...o)),o=void 0};l(e,t,r)},A=(e,t,r)=>`${r.map(e=>`${e}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,j={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},O=e=>String.fromCharCode(e+(e>25?39:97)),T=e=>(e=>{let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=O(t%52)+r;return O(t%52)+r})(((e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e})(5381,JSON.stringify(e))>>>0),P=["themed","global","styled","onevar","resonevar","allvar","inline"],R=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},M=e=>{let t;let r=()=>{let{cssRules:e}=t.sheet;return[].map.call(e,(r,n)=>{let{cssText:i}=r,o="";if(i.startsWith("--sxs"))return"";if(e[n-1]&&(o=e[n-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(let e in t.rules)if(t.rules[e].group===r)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${i}`;return r.cssRules.length?`${o}${i}`:""}return i}).join("")},n=()=>{if(t){let{rules:e,sheet:r}=t;if(!r.deleteRule){for(;3===Object(Object(r.cssRules)[0]).type;)r.cssRules.splice(0,1);r.cssRules=[]}for(let t in e)delete e[t]}for(let i of Object(e).styleSheets||[])if(R(i)){for(let e=0,o=i.cssRules;o[e];++e){let a=Object(o[e]);if(1!==a.type)continue;let s=Object(o[e+1]);if(4!==s.type)continue;++e;let{cssText:l}=a;if(!l.startsWith("--sxs"))continue;let u=l.slice(14,-3).trim().split(/\s+/),c=P[u[0]];c&&(t||(t={sheet:i,reset:n,rules:{},toString:r}),t.rules[c]={group:s,index:e,cache:new Set(u)})}if(t)break}if(!t){let i=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,i(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,e=>e.cssText).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:i("","text/css"),rules:{},reset:n,toString:r}}let{sheet:i,rules:o}=t;for(let e=P.length-1;e>=0;--e){let t=P[e];if(!o[t]){let r=P[e+1],n=o[r]?o[r].index:i.cssRules.length;i.insertRule("@media{}",n),i.insertRule(`--sxs{--sxs:${e}}`,n),o[t]={group:i.cssRules[n+1],index:n,cache:new Set([e])}}N(o[t])}};return n(),t},N=e=>{let t=e.group,r=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,r),++r}catch(e){}}},F=Symbol(),I=c(),L=(e,t)=>I(e,()=>(...r)=>{let n={type:null,composers:new Set};for(let t of r)if(null!=t){if(t[d])for(let e of(null==n.type&&(n.type=t[d].type),t[d].composers))n.composers.add(e);else t.constructor!==Object||t.$$typeof?null==n.type&&(n.type=t):n.composers.add(B(t,e))}return null==n.type&&(n.type="span"),n.composers.size||n.composers.add(["PJLV",{},[],[],{},[]]),z(e,n,t)}),B=({variants:e,compoundVariants:t,defaultVariants:r,...n},i)=>{let o=`${_(i.prefix)}c-${T(n)}`,a=[],s=[],l=Object.create(null),u=[];for(let e in r)l[e]=String(r[e]);if("object"==typeof e&&e)for(let t in e){f.call(l,t)||(l[t]="undefined");let r=e[t];for(let e in r){let n={[t]:String(e)};"undefined"===String(e)&&u.push(t);let i=r[e],o=[n,i,!p(i)];a.push(o)}}if("object"==typeof t&&t)for(let e of t){let{css:t,...r}=e;for(let e in t="object"==typeof t&&t||{},r)r[e]=String(r[e]);let n=[r,t,!p(t)];s.push(n)}return[o,n,a,s,l,u]},z=(e,t,r)=>{let[n,i,o,a]=U(t.composers),s="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let r=0;rt.rules[e]={apply:r=>t[F].push([e,r])}),t})(r):null,l=(s||r).rules,u=`.${n}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,c=c=>{let{css:d,...h}=c="object"==typeof c&&c||H,p={};for(let e in o)if(delete h[e],e in c){let t=c[e];"object"==typeof t&&t?p[e]={"@initial":o[e],...t}:(t=String(t),p[e]="undefined"!==t||a.has(e)?t:o[e])}else p[e]=o[e];let f=new Set([...i]);for(let[n,i,o,a]of t.composers){r.rules.styled.cache.has(n)||(r.rules.styled.cache.add(n),D(i,[`.${n}`],[],e,e=>{l.styled.apply(e)}));let t=q(o,p,e.media),s=q(a,p,e.media,!0);for(let i of t)if(void 0!==i)for(let[t,o,a]of i){let i=`${n}-${T(o)}-${t}`;f.add(i);let s=(a?r.rules.resonevar:r.rules.onevar).cache,u=a?l.resonevar:l.onevar;s.has(i)||(s.add(i),D(o,[`.${i}`],[],e,e=>{u.apply(e)}))}for(let t of s)if(void 0!==t)for(let[i,o]of t){let t=`${n}-${T(o)}-${i}`;f.add(t),r.rules.allvar.cache.has(t)||(r.rules.allvar.cache.add(t),D(o,[`.${t}`],[],e,e=>{l.allvar.apply(e)}))}}if("object"==typeof d&&d){let t=`${n}-i${T(d)}-css`;f.add(t),r.rules.inline.cache.has(t)||(r.rules.inline.cache.add(t),D(d,[`.${t}`],[],e,e=>{l.inline.apply(e)}))}for(let e of String(c.className||"").trim().split(/\s+/))e&&f.add(e);let m=h.className=[...f].join(" ");return{type:t.type,className:m,selector:u,props:h,toString:()=>m,deferredInjector:s}};return h(c,{className:n,selector:u,[d]:t,toString:()=>(r.rules.styled.cache.has(n)||c(),n)})},U=e=>{let t="",r=[],n={},i=[];for(let[o,,,,a,s]of e)for(let e in""===t&&(t=o),r.push(o),i.push(...s),a){let t=a[e];(void 0===n[e]||"undefined"!==t||s.includes(t))&&(n[e]=t)}return[t,r,n,new Set(i)]},q=(e,t,r,n)=>{let i=[];i:for(let[o,a,s]of e){if(s)continue;let e,l=0,u=!1;for(e in o){let n=o[e],i=t[e];if(i!==n){if("object"!=typeof i||!i)continue i;{let e,t,o=0;for(let a in i){if(n===String(i[a])){if("@initial"!==a){let e=a.slice(1);(t=t||[]).push(e in r?r[e]:a.replace(/^@media ?/,"")),u=!0}l+=o,e=!0}++o}if(t&&t.length&&(a={["@media "+t.join(", ")]:a}),!e)continue i}}}(i[l]=i[l]||[]).push([n?"cv":`${e}-${o[e]}`,a,u])}return i},H={},V=c(),$=(e,t)=>V(e,()=>(...r)=>{let n=()=>{for(let n of r){let r=T(n="object"==typeof n&&n||{});if(!t.rules.global.cache.has(r)){if(t.rules.global.cache.add(r),"@import"in n){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let r of[].concat(n["@import"]))r=r.includes('"')||r.includes("'")?r:`"${r}"`,t.sheet.insertRule(`@import ${r};`,e++);delete n["@import"]}D(n,[],[],e,e=>{t.rules.global.apply(e)})}}return""};return h(n,{toString:n})}),W=c(),Y=(e,t)=>W(e,()=>r=>{let n=`${_(e.prefix)}k-${T(r)}`,i=()=>{if(!t.rules.global.cache.has(n)){t.rules.global.cache.add(n);let i=[];D(r,[],[],e,e=>i.push(e));let o=`@keyframes ${n}{${i.join("")}}`;t.rules.global.apply(o)}return n};return h(i,{get name(){return i()},toString:i})}),G=class{constructor(e,t,r,n){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==r?"":String(r),this.prefix=null==n?"":String(n)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+_(this.prefix)+_(this.scale)+this.token}toString(){return this.computedValue}},K=c(),X=(e,t)=>K(e,()=>(r,n)=>{n="object"==typeof r&&r||Object(n);let i=`.${r=(r="string"==typeof r?r:"")||`${_(e.prefix)}t-${T(n)}`}`,o={},a=[];for(let t in n)for(let r in o[t]={},n[t]){let i=`--${_(e.prefix)}${t}-${r}`,s=S(String(n[t][r]),e.prefix,t);o[t][r]=new G(r,s,t,e.prefix),a.push(`${i}:${s}`)}let s=()=>{if(a.length&&!t.rules.themed.cache.has(r)){t.rules.themed.cache.add(r);let i=`${n===e.theme?":root,":""}.${r}{${a.join(";")}}`;t.rules.themed.apply(i)}return r};return{...o,get className(){return s()},selector:i,toString:s}}),J=c(),Q=c(),Z=e=>{let t=(e=>{let t=!1,r=J(e,e=>{t=!0;let r="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",n="object"==typeof e.media&&e.media||{},i="object"==typeof e.root?e.root||null:globalThis.document||null,o="object"==typeof e.theme&&e.theme||{},a={prefix:r,media:n,theme:o,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...l},utils:"object"==typeof e.utils&&e.utils||{}},s=M(i),u={css:L(a,s),globalCss:$(a,s),keyframes:Y(a,s),createTheme:X(a,s),reset(){s.reset(),u.theme.toString()},theme:{},sheet:s,config:a,prefix:r,getCssText:s.toString,toString:s.toString};return String(u.theme=u.createTheme(o)),u});return t||r.reset(),r})(e);return t.styled=(({config:e,sheet:t})=>Q(e,()=>{let r=L(e,t);return(...e)=>{let t=r(...e),n=t[d].type,o=i.forwardRef((e,r)=>{let o=e&&e.as||n,{props:a,deferredInjector:s}=t(e);return delete a.as,a.ref=r,s?i.createElement(i.Fragment,null,i.createElement(o,a),i.createElement(s,null)):i.createElement(o,a)});return o.className=t.className,o.displayName=`Styled.${n.displayName||n.name||n}`,o.selector=t.selector,o.toString=()=>t.selector,o[d]=t[d],o}}))(t),t},ee=()=>n||(n=Z()),et=(...e)=>ee().styled(...e)},83292:(e,t,r)=>{"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{_:()=>n})},37864:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>o,Cv:()=>o});var n=r(13236);let i=/^\s*>\s$/,o=n.bP.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return["blockquote",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[(0,n.tG)({find:i,type:this.type})]}})},43504:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l,yN:()=>l});var n=r(13236);let i=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,o=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,a=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,s=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,l=n.CU.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],renderHTML({HTMLAttributes:e}){return["strong",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[(0,n.OX)({find:i,type:this.type}),(0,n.OX)({find:a,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:o,type:this.type}),(0,n.Zc)({find:s,type:this.type})]}})},9350:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s,NG:()=>s});var n=r(13236),i=r(81570);let o=/^```([a-z]+)?[\s\n]$/,a=/^~~~([a-z]+)?[\s\n]$/,s=n.bP.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:e=>{var t;let{languageClassPrefix:r}=this.options;return[...(null===(t=e.firstElementChild)||void 0===t?void 0:t.classList)||[]].filter(e=>e.startsWith(r)).map(e=>e.replace(r,""))[0]||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",(0,n.KV)(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,r=1===t.pos;return!!e&&t.parent.type.name===this.name&&(!!r||!t.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:r}=t,{$from:n,empty:i}=r;if(!i||n.parent.type!==this.type)return!1;let o=n.parentOffset===n.parent.nodeSize-2,a=n.parent.textContent.endsWith("\n\n");return!!o&&!!a&&e.chain().command(({tr:e})=>(e.delete(n.pos-2,n.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:r,doc:n}=t,{$from:i,empty:o}=r;if(!o||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let a=i.after();return!(void 0===a||n.nodeAt(a))&&e.commands.exitCode()}}},addInputRules(){return[(0,n.JJ)({find:o,type:this.type,getAttributes:e=>({language:e[1]})}),(0,n.JJ)({find:a,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new i.k_({key:new i.hs("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let r=t.clipboardData.getData("text/plain"),n=t.clipboardData.getData("vscode-editor-data"),o=n?JSON.parse(n):void 0,a=null==o?void 0:o.mode;if(!r||!a)return!1;let{tr:s}=e.state;return e.state.selection.from===e.state.doc.nodeSize-(1+2*e.state.selection.$to.depth)?s.insert(e.state.selection.from-1,this.type.create({language:a})):s.replaceSelectionWith(this.type.create({language:a})),s.setSelection(i.U3.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(r.replace(/\r\n?/g,"\n")),s.setMeta("paste",!0),e.dispatch(s),!0}}})]}})},55642:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a,Cy:()=>a});var n=r(13236);let i=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,o=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,a=n.CU.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[(0,n.OX)({find:i,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:o,type:this.type})]}})},1366:(e,t,r)=>{"use strict";r.d(t,{y:()=>n});let n=r(13236).bP.create({name:"doc",topNode:!0,content:"block+"})},83683:(e,t,r)=>{"use strict";r.d(t,{v:()=>o});var n=r(13236),i=r(14139);let o=n.YY.create({name:"gapCursor",addProseMirrorPlugins:()=>[(0,i.z)()],extendNodeSchema(e){var t;let r={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!==(t=(0,n.gk)((0,n.iI)(e,"allowGapCursor",r)))&&void 0!==t?t:null}}})},60980:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});var n=r(13236);let i=n.bP.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",(0,n.KV)(this.options.HTMLAttributes,e)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:r,editor:n})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=r;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:o}=this.options,{splittableMarks:a}=n.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&o){let t=s.filter(e=>a.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}})},87307:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(13236);let i=n.bP.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){let r=this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0];return[`h${r}`,(0,n.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>(0,n.JJ)({find:RegExp(`^(#{1,${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}})},18613:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a});var n=r(13236);let i=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,o=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,a=n.CU.create({name:"highlight",addOptions:()=>({multicolor:!1,HTMLAttributes:{}}),addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:e=>e.getAttribute("data-color")||e.style.backgroundColor,renderHTML:e=>e.color?{"data-color":e.color,style:`background-color: ${e.color}; color: inherit`}:{}}}:{}},parseHTML:()=>[{tag:"mark"}],renderHTML({HTMLAttributes:e}){return["mark",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setHighlight:e=>({commands:t})=>t.setMark(this.name,e),toggleHighlight:e=>({commands:t})=>t.toggleMark(this.name,e),unsetHighlight:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[(0,n.OX)({find:i,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:o,type:this.type})]}})},1144:(e,t,r)=>{"use strict";r.d(t,{B:()=>_});var n=r(13236),i=function(){};i.prototype.append=function(e){return e.length?(e=i.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},i.prototype.prepend=function(e){return e.length?i.from(e).append(this):this},i.prototype.appendInner=function(e){return new a(this,e)},i.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?i.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},i.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},i.prototype.forEach=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)},i.prototype.map=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length);var n=[];return this.forEach(function(t,r){return n.push(e(t,r))},t,r),n},i.from=function(e){return e instanceof i?e:e&&e.length?new o(e):i.empty};var o=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,r){return 0==e&&r==this.length?this:new t(this.values.slice(e,r))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,r,n){for(var i=t;i=r;i--)if(!1===e(this.values[i],n+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(t.prototype,r),t}(i);i.empty=new o([]);var a=function(e){function t(t,r){e.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return ei&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,r)-i,n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(r,i)-i,n+i)||r=r?this.right.slice(e-r,t-r):this.left.slice(e,r).append(this.right.slice(0,t-r))},t.prototype.leafAppend=function(e){var r=this.right.leafAppend(e);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(e){var r=this.left.leafPrepend(e);if(r)return new t(r,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(i),s=r(11329),l=r(81570);class u{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let r,n,i,o;if(0==this.eventCount)return null;let a=this.items.length;for(;;a--)if(this.items.get(a-1).selection){--a;break}t&&(n=(r=this.remapping(a,this.items.length)).maps.length);let s=e.tr,l=[],d=[];return this.items.forEach((e,t)=>{if(!e.step){r||(n=(r=this.remapping(a,t+1)).maps.length),n--,d.push(e);return}if(r){d.push(new c(e.map));let t=e.step.map(r.slice(n)),i;t&&s.maybeStep(t).doc&&(i=s.mapping.maps[s.mapping.maps.length-1],l.push(new c(i,void 0,void 0,l.length+d.length))),n--,i&&r.appendMap(i,n)}else s.maybeStep(e.step);if(e.selection)return i=r?e.selection.map(r.slice(n)):e.selection,o=new u(this.items.slice(0,a).append(d.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:o,transform:s,selection:i}}addTransform(e,t,r,n){var i,o;let a,s=[],l=this.eventCount,d=this.items,p=!n&&d.length?d.get(d.length-1):null;for(let r=0;rh&&(i=d,o=f,i.forEach((e,t)=>{if(e.selection&&0==o--)return a=t,!1}),d=i.slice(a),l-=f),new u(d.append(s),l)}remapping(e,t){let r=new s.X9;return this.items.forEach((t,n)=>{let i=null!=t.mirrorOffset&&n-t.mirrorOffset>=e?r.maps.length-t.mirrorOffset:void 0;r.appendMap(t.map,i)},e,t),r}addMaps(e){return 0==this.eventCount?this:new u(this.items.append(e.map(e=>new c(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let r=[],n=Math.max(0,this.items.length-t),i=e.mapping,o=e.steps.length,a=this.eventCount;this.items.forEach(e=>{e.selection&&a--},n);let s=t;this.items.forEach(t=>{let n=i.getMirror(--s);if(null==n)return;o=Math.min(o,n);let l=i.maps[n];if(t.step){let o=e.steps[n].invert(e.docs[n]),u=t.selection&&t.selection.map(i.slice(s+1,n));u&&a++,r.push(new c(l,o,u))}else r.push(new c(l))},n);let l=[];for(let e=t;e500&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),r=t.maps.length,n=[],o=0;return this.items.forEach((i,a)=>{if(a>=e)n.push(i),i.selection&&o++;else if(i.step){let e=i.step.map(t.slice(r)),a=e&&e.getMap();if(r--,a&&t.appendMap(a,r),e){let s=i.selection&&i.selection.map(t.slice(r));s&&o++;let l=new c(a.invert(),e,s),u,d=n.length-1;(u=n.length&&n[d].merge(l))?n[d]=u:n.push(l)}}else i.map&&r--},this.items.length,0),new u(i.from(n.reverse()),o)}}u.empty=new u(i.empty,0);class c{constructor(e,t,r,n){this.map=e,this.step=t,this.selection=r,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new c(t.getMap().invert(),t,this.selection)}}}class d{constructor(e,t,r,n,i){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=n,this.prevComposition=i}}let h=20;function p(e){let t=[];return e.forEach((e,r,n,i)=>t.push(n,i)),t}function f(e,t){if(!e)return null;let r=[];for(let n=0;n{let i=y.getState(r);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(n){let o=function(e,t,r){let n=v(t),i=y.get(t).spec.config,o=(r?e.undone:e.done).popEvent(t,n);if(!o)return null;let a=o.selection.resolve(o.transform.doc),s=(r?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,n),l=new d(r?s:o.remaining,r?o.remaining:s,null,0,-1);return o.transform.setSelection(a).setMeta(y,{redo:r,historyState:l})}(i,r,e);o&&n(t?o.scrollIntoView():o)}return!0}}let k=w(!1,!0),x=w(!0,!0);w(!1,!1),w(!0,!1);let _=n.YY.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>k(e,t),redo:()=>({state:e,dispatch:t})=>x(e,t)}),addProseMirrorPlugins(){return[function(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new l.k_({key:y,state:{init:()=>new d(u.empty,u.empty,null,0,-1),apply:(t,r,n)=>(function(e,t,r,n){let i=r.getMeta(y),o;if(i)return i.historyState;r.getMeta(b)&&(e=new d(e.done,e.undone,null,0,-1));let a=r.getMeta("appendedTransaction");if(0==r.steps.length)return e;if(a&&a.getMeta(y))return a.getMeta(y).redo?new d(e.done.addTransform(r,void 0,n,v(t)),e.undone,p(r.mapping.maps[r.steps.length-1]),e.prevTime,e.prevComposition):new d(e.done,e.undone.addTransform(r,void 0,n,v(t)),null,e.prevTime,e.prevComposition);if(!1===r.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))return(o=r.getMeta("rebased"))?new d(e.done.rebased(r,o),e.undone.rebased(r,o),f(e.prevRanges,r.mapping),e.prevTime,e.prevComposition):new d(e.done.addMaps(r.mapping.maps),e.undone.addMaps(r.mapping.maps),f(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);{let i=r.getMeta("composition"),o=0==e.prevTime||!a&&e.prevComposition!=i&&(e.prevTime<(r.time||0)-n.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let r=!1;return e.mapping.maps[0].forEach((e,n)=>{for(let i=0;i=t[i]&&(r=!0)}),r}(r,e.prevRanges)),s=a?f(e.prevRanges,r.mapping):p(r.mapping.maps[r.steps.length-1]);return new d(e.done.addTransform(r,o?t.selection.getBookmark():void 0,n,v(t)),u.empty,s,r.time,null==i?e.prevComposition:i)}})(r,n,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let r=t.inputType,n="historyUndo"==r?k:"historyRedo"==r?x:null;return!!n&&(t.preventDefault(),n(e.state,e.dispatch))}}}})}(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}})},44498:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>o});var n=r(13236);let i=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,o=n.bP.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",(0,n.KV)(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[(0,n.jT)({find:i,type:this.type,getAttributes:e=>{let[,,t,r,n]=e;return{src:r,alt:t,title:n}}})]}})},98213:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l,J2:()=>l});var n=r(13236);let i=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,o=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,a=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,s=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,l=n.CU.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:e}){return["em",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,n.OX)({find:i,type:this.type}),(0,n.OX)({find:a,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:o,type:this.type}),(0,n.Zc)({find:s,type:this.type})]}})},35864:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>ej});var n=r(13236);let i=(e,t)=>{for(let r in t)e[r]=t[r];return e},o="numeric",a="ascii",s="alpha",l="asciinumeric",u="alphanumeric",c="domain",d="emoji",h="whitespace";function p(e,t,r){for(let n in t[o]&&(t[l]=!0,t[u]=!0),t[a]&&(t[l]=!0,t[s]=!0),t[l]&&(t[u]=!0),t[s]&&(t[u]=!0),t[u]&&(t[c]=!0),t[d]&&(t[c]=!0),t){let t=(n in r||(r[n]=[]),r[n]);0>t.indexOf(e)&&t.push(e)}}function f(e){void 0===e&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}f.groups={},f.prototype={accepts(){return!!this.t},go(e){let t=this.j[e];if(t)return t;for(let t=0;t=0&&(r[n]=!0);return r}(o.t,n),r),n):r&&p(t,r,n)),o.t=t),this.j[e]=o,o}};let m=(e,t,r,n,i)=>e.ta(t,r,n,i),g=(e,t,r,n,i)=>e.tr(t,r,n,i),v=(e,t,r,n,i)=>e.ts(t,r,n,i),y=(e,t,r,n,i)=>e.tt(t,r,n,i),b="WORD",w="UWORD",k="LOCALHOST",x="UTLD",_="SCHEME",S="SLASH_SCHEME",E="OPENBRACE",C="OPENBRACKET",D="OPENANGLEBRACKET",A="OPENPAREN",j="CLOSEBRACE",O="CLOSEBRACKET",T="CLOSEANGLEBRACKET",P="CLOSEPAREN",R="AMPERSAND",M="APOSTROPHE",N="ASTERISK",F="BACKSLASH",I="BACKTICK",L="CARET",B="COLON",z="COMMA",U="DOLLAR",q="EQUALS",H="EXCLAMATION",V="HYPHEN",$="PERCENT",W="PIPE",Y="PLUS",G="POUND",K="QUERY",X="QUOTE",J="SEMI",Q="SLASH",Z="TILDE",ee="UNDERSCORE",et="EMOJI";var er=Object.freeze({__proto__:null,WORD:b,UWORD:w,LOCALHOST:k,TLD:"TLD",UTLD:x,SCHEME:_,SLASH_SCHEME:S,NUM:"NUM",WS:"WS",NL:"NL",OPENBRACE:E,OPENBRACKET:C,OPENANGLEBRACKET:D,OPENPAREN:A,CLOSEBRACE:j,CLOSEBRACKET:O,CLOSEANGLEBRACKET:T,CLOSEPAREN:P,AMPERSAND:R,APOSTROPHE:M,ASTERISK:N,AT:"AT",BACKSLASH:F,BACKTICK:I,CARET:L,COLON:B,COMMA:z,DOLLAR:U,DOT:"DOT",EQUALS:q,EXCLAMATION:H,HYPHEN:V,PERCENT:$,PIPE:W,PLUS:Y,POUND:G,QUERY:K,QUOTE:X,SEMI:J,SLASH:Q,TILDE:Z,UNDERSCORE:ee,EMOJI:et,SYM:"SYM"});let en=/[a-z]/,ei=/\p{L}/u,eo=/\p{Emoji}/u,ea=/\d/,es=/\s/,el=null,eu=null;function ec(e,t,r,n,i){let o;let a=t.length;for(let r=0;r=0;)i++;if(i>0){t.push(r.join(""));let o=parseInt(e.substring(n,n+i),10);for(;o>0;o--)r.pop();n+=i}else"_"===e[n]?t.push(r.join("")):r.push(e[n]),n++}return t}let eh={defaultProtocol:"http",events:null,format:ef,formatHref:ef,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function ep(e,t){void 0===t&&(t=null);let r=i({},eh);e&&(r=i(r,e instanceof ep?e.o:e));let n=r.ignoreTags,o=[];for(let e=0;ee,check(e){return this.get("validate",e.toString(),e)},get(e,t,r){let n=null!=t,i=this.o[e];return i&&("object"==typeof i?"function"==typeof(i=r.t in i?i[r.t]:eh[e])&&n&&(i=i(t,r)):"function"==typeof i&&n&&(i=i(t,r.t,r))),i},getObj(e,t,r){let n=this.o[e];return"function"==typeof n&&null!=t&&(n=n(t,r.t,r)),n},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},em.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),r=e.get("truncate",t,this),n=e.get("format",t,this);return r&&n.length>r?n.substring(0,r)+"…":n},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return void 0===e&&(e=eh.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this.toFormattedHref(e),r=e.get("tagName",t,this),n=this.toFormattedString(e),o={},a=e.get("className",t,this),s=e.get("target",t,this),l=e.get("rel",t,this),u=e.getObj("attributes",t,this),c=e.getObj("events",t,this);return o.href=t,a&&(o.class=a),s&&(o.target=s),l&&(o.rel=l),u&&i(o,u),{tagName:r,attributes:o,content:n,eventListeners:c}}};let ev=eg("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),ey=eg("text"),eb=eg("nl"),ew=eg("url",{isLink:!0,toHref(e){return void 0===e&&(e=eh.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==k&&e[1].t===B}}),ek=e=>new f(e);function ex(e,t,r){let n=r[0].s,i=r[r.length-1].e;return new e(t.slice(n,i),r)}let e_="undefined"!=typeof console&&console&&console.warn||(()=>{}),eS={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function eE(e,t){if(void 0===t&&(t=!1),eS.initialized&&e_(`linkifyjs: already initialized - will not register custom scheme "${e}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error('linkifyjs: incorrect scheme format.\n 1. Must only contain digits, lowercase ASCII letters or "-"\n 2. Cannot start or end with "-"\n 3. "-" cannot repeat');eS.customSchemes.push([e,t])}function eC(e){return eS.initialized||function(){eS.scanner=function(e){void 0===e&&(e=[]);let t={};f.groups=t;let r=new f;null==el&&(el=ed("aaa1rp3barth4b_ott3vie4c1le2ogado5udhabi7c_ademy5centure6ountant_s9o1tor4d_s1ult4e_g1ro2tna4f_l1rica5g_akhan5ency5i_g1rbus3force5tel5kdn3l_faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m_azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o_l2partments8p_le4q_uarelle8r_ab1mco4chi3my2pa2t_e3s_da2ia2sociates9t_hleta5torney7u_ction5di_ble3o3spost5thor3o_s4vianca6w_s2x_a2z_ure5ba_by2idu3namex3narepublic11d1k2r_celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b_c1t1va3cg1n2d1e_ats2uty4er2ntley5rlin4st_buy5t2f1g1h_arti5i_ble3d1ke2ng_o3o1z2j1lack_friday9ockbuster8g1omberg7ue3m_s1w2n_pparibas9o_ats3ehringer8fa2m1nd2o_k_ing5sch2tik2on4t1utique6x2r_adesco6idgestone9oadway5ker3ther5ussels7s1t1uild_ers6siness6y1zz3v1w1y1z_h3ca_b1fe2l_l1vinklein9m_era3p2non3petown5ital_one8r_avan4ds2e_er_s4s2sa1e1h1ino4t_ering5holic7ba1n1re2s2c1d1enter4o1rn3f_a1d2g1h_anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i_priani6rcle4sco3tadel4i_c2y_eats7k1l_aims4eaning6ick2nic1que6othing5ud3ub_med6m1n1o_ach3des3ffee4llege4ogne5m_cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking_channel11l1p2rsica5untry4pon_s4rses6pa2r_edit_card4union9icket5own3s1uise_s6u_isinella9v1w1x1y_mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e_al_er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si_gn4v2hl2iamonds6et2gital5rect_ory7scount3ver5h2y2j1k1m1np2o_cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c_o2deka3u_cation8e1g1mail3erck5nergy4gineer_ing9terprises10pson4quipment8r_icsson6ni3s_q1tate5t_isalat7u_rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n_s2rm_ers5shion4t3edex3edback6rrari3ero6i_at2delity5o2lm2nal1nce1ial7re_stone6mdale6sh_ing5t_ness6j1k1lickr3ghts4r2orist4wers5y2m1o_o_d_network8tball6rd1ex2sale4um3undation8x2r_ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n_d2rniture7tbol5yi3ga_l_lery3o1up4me_s3p1rden4y2b_iz3d_n2e_a1nt_ing5orge5f1g_ee3h1i_ft_s3ves2ing5l_ass3e1obal2o4m_ail3bh2o1x2n1odaddy5ld_point6f2o_dyear5g_le4p1t1v2p1q1r_ainger5phics5tis4een3ipe3ocery4up4s1t1u_ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc_bank7ealth_care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k_t2m1n1ockey4ldings5iday5medepot5goods5s_ense7nda3rse3spital5t_ing5t_eles2s3mail5use3w2r1sbc3t1u_ghes5yatt3undai7ibm2cbc2e1u2d1e_ee3fm2kano4l1m_amat4db2mo_bilien9n_c1dustries8finiti5o2g1k1stitute6urance4e4t_ernational10uit4vestments10o1piranga7q1r_ish4s_maili5t_anbul7t_au2v3jaguar4va3cb2e_ep2tzt3welry6io2ll2m_p2nj2o_bs1urg4t1y2p_morgan6rs3uegos4niper7kaufen5ddi3e_rryhotels6logistics9properties14fh2g1h1i_a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p_mg2n2r_d1ed3uokgroup8w1y_oto4z2la_caixa5mborghini8er3ncaster5ia3d_rover6xess5salle5t_ino3robe5w_yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i_dl2fe_insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan_s3cker3us3l1ndon4tte1o3ve3pl_financial11r1s1t_d_a3u_ndbeck6xe1ury5v1y2ma_cys3drid4if1son4keup4n_agement7go3p1rket_ing3s4riott5shalls7serati6ttel5ba2c_kinsey7d1e_d_ia3et2lbourne7me1orial6n_u2rckmsd7g1h1iami3crosoft7l1ni1t2t_subishi9k1l_b1s2m_a2n1o_bi_le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to_rcycles9v_ie4p1q1r1s_d2t_n1r2u_seum3ic3tual5v1w1x1y1z2na_b1goya4me2tura4vy3ba2c1e_c1t_bank4flix4work5ustar5w_s2xt_direct7us4f_l2g_o2hk2i_co2ke1on3nja3ssan1y5l1o_kia3rthwesternmutual14on4w_ruz3tv4p1r_a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan_group9dnavy5lo3m_ega4ne1g1l_ine5oo2pen3racle3nge4g_anic5igins6saka4tsuka4t2vh3pa_ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e_t2f_izer5g1h_armacy6d1ilips5one2to_graphy6s4ysio5ics1tet2ures6d1n_g1k2oneer5zza4k1l_ace2y_station9umbing5s3m1n_c2ohl2ker3litie5rn2st3r_america6xi3ess3ime3o_d_uctions8f1gressive8mo2perties3y5tection8u_dential9s1t1ub2w_c2y2qa1pon3uebec3st5racing4dio4e_ad1lestate6tor2y4cipes5d_stone5umbrella9hab3ise_n3t2liance6n_t_als5pair3ort3ublican8st_aurant8view_s5xroth6ich_ardli6oh3l1o1p2o_cher3ks3deo3gers4om3s_vp3u_gby3hr2n2w_e2yukyu6sa_arland6fe_ty4kura4le1on3msclub4ung5ndvik_coromant12ofi4p1rl2s1ve2xo3b_i1s2c_a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e_arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x_y3fr2g1h_angrila6rp2w2ell3ia1ksha5oes2p_ping5uji3w_time7i_lk2na1gles5te3j1k_i_n2y_pe4l_ing4m_art3ile4n_cf3o_ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa_ce3ort2t3r_l2s1t_ada2ples4r1tebank4farm7c_group6ockholm6rage3e3ream4udio2y3yle4u_cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y_dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x_i3c_i2d_k2eam2ch_nology8l1masek5nnis4va3f1g1h_d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j_maxx4x2k_maxx5l1m_all4n1o_day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r_ade1ing4ining5vel_channel7ers_insurance16ust3v2t1ube2i1nes3shu4v_s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va_cations7na1guard7c1e_gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i_ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u_elos6wales2mart4ter4ng_gou5tch_es6eather_channel12bcam3er2site5d_ding5ibo2r3f1hoswho6ien2ki2lliamhill9n_dows4e1ners6me2olterskluwer11odside6rk_s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u_tube6t1un3za_ppos4ra3ero3ip2m1one3uerich6w2")),null==eu&&(eu=ed("ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत_म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里_大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2")),y(r,"'",M),y(r,"{",E),y(r,"[",C),y(r,"<",D),y(r,"(",A),y(r,"}",j),y(r,"]",O),y(r,">",T),y(r,")",P),y(r,"&",R),y(r,"*",N),y(r,"@","AT"),y(r,"`",I),y(r,"^",L),y(r,":",B),y(r,",",z),y(r,"$",U),y(r,".","DOT"),y(r,"=",q),y(r,"!",H),y(r,"-",V),y(r,"%",$),y(r,"|",W),y(r,"+",Y),y(r,"#",G),y(r,"?",K),y(r,'"',X),y(r,"/",Q),y(r,";",J),y(r,"~",Z),y(r,"_",ee),y(r,"\\",F);let n=g(r,ea,"NUM",{[o]:!0});g(n,ea,n);let u=g(r,en,b,{[a]:!0});g(u,en,u);let m=g(r,ei,w,{[s]:!0});g(m,en),g(m,ei,m);let eh=g(r,es,"WS",{[h]:!0});y(r,"\n","NL",{[h]:!0}),y(eh,"\n"),g(eh,es,eh);let ep=g(r,eo,et,{[d]:!0});g(ep,eo,ep),y(ep,"️",ep),g(y(ep,"‍"),eo,ep);let ef=[[en,u]],em=[[en,null],[ei,m]];for(let e=0;ee[0]>t[0]?1:-1);for(let t=0;t=0?i[c]=!0:en.test(n)?ea.test(n)?i[l]=!0:i[a]=!0:i[o]=!0,v(r,n,n,i)}return v(r,"localhost",k,{ascii:!0}),r.jd=new f("SYM"),{start:r,tokens:i({groups:t},er)}}(eS.customSchemes);for(let e=0;e=0&&h++,i++,c++;if(h<0)(i-=c)0&&(o.push(ex(ey,t,a)),a=[]),i-=h,c-=h;let e=d.t,n=r.slice(i-c,i);o.push(ex(e,t,n))}}return a.length>0&&o.push(ex(ey,t,a)),o}(eS.parser.start,e,function(e,t){let r=function(e){let t=[],r=e.length,n=0;for(;n56319||n+1===r||(i=e.charCodeAt(n+1))<56320||i>57343?e[n]:e.slice(n,n+2);t.push(a),n+=a.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),n=r.length,i=[],o=0,a=0;for(;a=0&&(d+=r[a].length,h++),u+=r[a].length,o+=r[a].length,a++;o-=d,a-=h,u-=d,i.push({t:c.t,v:t.slice(o-u,o),s:o-u,e:o})}return i}(eS.scanner.start,e))}function eD(e,t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),t&&"object"==typeof t){if(r)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);r=t,t=null}let n=new ep(r),i=eC(e),o=[];for(let e=0;e{if("string"==typeof e){eE(e);return}eE(e.scheme,e.optionalSlashes)})},onDestroy(){f.groups={},eS.scanner=null,eS.parser=null,eS.tokenQueue=[],eS.pluginQueue=[],eS.customSchemes=[],eS.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:e}){var t;return(null===(t=e.href)||void 0===t?void 0:t.startsWith("javascript:"))?["a",(0,n.KV)(this.options.HTMLAttributes,{...e,href:""}),0]:["a",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setLink:e=>({chain:t})=>t().setMark(this.name,e).setMeta("preventAutolink",!0).run(),toggleLink:e=>({chain:t})=>t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,n.Zc)({find:e=>{let t=[];if(e){let r=eD(e).filter(e=>e.isLink);r.length&&r.forEach(e=>t.push({text:e.value,data:{href:e.href},index:e.start}))}return t},type:this.type,getAttributes:e=>{var t;return{href:null===(t=e.data)||void 0===t?void 0:t.href}}})]},addProseMirrorPlugins(){var e,t,r;let i=[];return this.options.autolink&&i.push((e={type:this.type,validate:this.options.validate},new eA.k_({key:new eA.hs("autolink"),appendTransaction:(t,r,i)=>{let o=t.some(e=>e.docChanged)&&!r.doc.eq(i.doc),a=t.some(e=>e.getMeta("preventAutolink"));if(!o||a)return;let{tr:s}=i,l=(0,n.T7)(r.doc,[...t]);if((0,n.FF)(l).forEach(({newRange:t})=>{let r,o;let a=(0,n.Nx)(i.doc,t,e=>e.isTextblock);if(a.length>1?(r=a[0],o=i.doc.textBetween(r.pos,r.pos+r.node.nodeSize,void 0," ")):a.length&&i.doc.textBetween(t.from,t.to," "," ").endsWith(" ")&&(r=a[0],o=i.doc.textBetween(r.pos,t.to,void 0," ")),r&&o){let t=o.split(" ").filter(e=>""!==e);if(t.length<=0)return!1;let a=t[t.length-1],l=r.pos+o.lastIndexOf(a);if(!a)return!1;let u=eC(a).map(e=>e.toObject());if(!(1===u.length?u[0].isLink:3===u.length&&!!u[1].isLink&&["()","[]"].includes(u[0].value+u[2].value)))return!1;u.filter(e=>e.isLink).map(e=>({...e,from:l+e.start+1,to:l+e.end+1})).filter(e=>!i.schema.marks.code||!i.doc.rangeHasMark(e.from,e.to,i.schema.marks.code)).filter(t=>!e.validate||e.validate(t.value)).forEach(t=>{(0,n.hO)(t.from,t.to,i.doc).some(t=>t.mark.type===e.type)||s.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),s.steps.length)return s}}))),this.options.openOnClick&&i.push((t={type:this.type,whenNotEditable:"whenNotEditable"===this.options.openOnClick},new eA.k_({key:new eA.hs("handleClickLink"),props:{handleClick:(e,r,i)=>{var o,a;if(t.whenNotEditable&&e.editable||0!==i.button)return!1;let s=i.target,l=[];for(;"DIV"!==s.nodeName;)l.push(s),s=s.parentNode;if(!l.find(e=>"A"===e.nodeName))return!1;let u=(0,n.gu)(e.state,t.type.name),c=i.target,d=null!==(o=null==c?void 0:c.href)&&void 0!==o?o:u.href,h=null!==(a=null==c?void 0:c.target)&&void 0!==a?a:u.target;return!!c&&!!d&&(window.open(d,h),!0)}}}))),this.options.linkOnPaste&&i.push((r={editor:this.editor,type:this.type},new eA.k_({key:new eA.hs("handlePasteLink"),props:{handlePaste:(e,t,n)=>{let{state:i}=e,{selection:o}=i,{empty:a}=o;if(a)return!1;let s="";n.content.forEach(e=>{s+=e.textContent});let l=eD(s).find(e=>e.isLink&&e.value===s);return!!s&&!!l&&(r.editor.commands.setMark(r.type,{href:l.href}),!0)}}}))),i}})},67291:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,f:()=>i});var n=r(13236);let i=n.bP.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}})},51151:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a,n:()=>a});var n=r(13236);let i=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,o=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,a=n.CU.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[(0,n.OX)({find:i,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:o,type:this.type})]}})},28396:(e,t,r)=>{"use strict";r.d(t,{E:()=>n});let n=r(13236).bP.create({name:"text",group:"inline"})},15657:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,z:()=>i});var n=r(13236);let i=n.CU.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}})},10263:(e,t,r)=>{"use strict";r.d(t,{A:()=>T});var n=r(13236),i=r(37864),o=r(43504);let a=n.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,n.KV)(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),s=n.CU.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>!!Object.entries((0,n.z6)(e,this.type)).some(([,e])=>!!e)||t.unsetMark(this.name)}}}),l=/^\s*([-+*])\s$/,u=n.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(a.name,this.editor.getAttributes(s.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=(0,n.tG)({find:l,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:l,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(s.name),editor:this.editor})),[e]}});var c=r(55642),d=r(9350),h=r(1366),p=r(81570),f=r(11329);class m{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(r=t.width)&&void 0!==r?r:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let r=e=>{this[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,r=this.editorView.state.doc.resolve(this.cursorPos),n=!r.parent.inlineContent,i;if(n){let e=r.nodeBefore,t=r.nodeAfter;if(e||t){let r=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(r){let n=r.getBoundingClientRect(),o=e?n.bottom:n.top;e&&t&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),i={left:n.left,right:n.right,top:o-this.width/2,bottom:o+this.width/2}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos);i={left:e.left-this.width/2,right:e.left+this.width/2,top:e.top,bottom:e.bottom}}let o=this.editorView.dom.offsetParent;if(!this.element&&(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),o&&(o!=document.body||"static"!=getComputedStyle(o).position)){let r=o.getBoundingClientRect();e=r.left-o.scrollLeft,t=r.top-o.scrollTop}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=i.left-e+"px",this.element.style.top=i.top-t+"px",this.element.style.width=i.right-i.left+"px",this.element.style.height=i.bottom-i.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=r&&r.type.spec.disableDropCursor,i="function"==typeof n?n(this.editorView,t,e):n;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,f.Um)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}let g=n.YY.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[function(e={}){return new p.k_({view:t=>new m(t,e)})}(this.options)]}});var v=r(83683),y=r(60980),b=r(87307),w=r(1144);let k=n.bP.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",(0,n.KV)(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{let{$to:r}=t.selection,n=e();return 0===r.parentOffset?n.insertContentAt(Math.max(r.pos-2,0),{type:this.name}):n.insertContent({type:this.name}),n.command(({tr:e,dispatch:t})=>{var r;if(t){let{$to:t}=e.selection,n=t.end();if(t.nodeAfter)t.nodeAfter.isTextblock?e.setSelection(p.U3.create(e.doc,t.pos+1)):t.nodeAfter.isBlock?e.setSelection(p.nh.create(e.doc,t.pos)):e.setSelection(p.U3.create(e.doc,t.pos));else{let i=null===(r=t.parent.type.contentMatch.defaultType)||void 0===r?void 0:r.create();i&&(e.insert(n,i),e.setSelection(p.U3.create(e.doc,n+1)))}e.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,n.jT)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}});var x=r(98213);let _=n.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,n.KV)(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),S=n.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,n.KV)(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),E=n.CU.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>!!Object.entries((0,n.z6)(e,this.type)).some(([,e])=>!!e)||t.unsetMark(this.name)}}}),C=/^(\d+)\.\s$/,D=n.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...r}=e;return 1===t?["ol",(0,n.KV)(this.options.HTMLAttributes,r),0]:["ol",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(S.name,this.editor.getAttributes(E.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=(0,n.tG)({find:C,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:C,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(E.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}});var A=r(67291),j=r(51151),O=r(28396);let T=n.YY.create({name:"starterKit",addExtensions(){var e,t,r,n,a,s,l,p,f,m,S,E,C,T,P,R,M,N;let F=[];return!1!==this.options.blockquote&&F.push(i.Cv.configure(null===(e=this.options)||void 0===e?void 0:e.blockquote)),!1!==this.options.bold&&F.push(o.yN.configure(null===(t=this.options)||void 0===t?void 0:t.bold)),!1!==this.options.bulletList&&F.push(u.configure(null===(r=this.options)||void 0===r?void 0:r.bulletList)),!1!==this.options.code&&F.push(c.Cy.configure(null===(n=this.options)||void 0===n?void 0:n.code)),!1!==this.options.codeBlock&&F.push(d.NG.configure(null===(a=this.options)||void 0===a?void 0:a.codeBlock)),!1!==this.options.document&&F.push(h.y.configure(null===(s=this.options)||void 0===s?void 0:s.document)),!1!==this.options.dropcursor&&F.push(g.configure(null===(l=this.options)||void 0===l?void 0:l.dropcursor)),!1!==this.options.gapcursor&&F.push(v.v.configure(null===(p=this.options)||void 0===p?void 0:p.gapcursor)),!1!==this.options.hardBreak&&F.push(y.B.configure(null===(f=this.options)||void 0===f?void 0:f.hardBreak)),!1!==this.options.heading&&F.push(b.D.configure(null===(m=this.options)||void 0===m?void 0:m.heading)),!1!==this.options.history&&F.push(w.B.configure(null===(S=this.options)||void 0===S?void 0:S.history)),!1!==this.options.horizontalRule&&F.push(k.configure(null===(E=this.options)||void 0===E?void 0:E.horizontalRule)),!1!==this.options.italic&&F.push(x.J2.configure(null===(C=this.options)||void 0===C?void 0:C.italic)),!1!==this.options.listItem&&F.push(_.configure(null===(T=this.options)||void 0===T?void 0:T.listItem)),!1!==this.options.orderedList&&F.push(D.configure(null===(P=this.options)||void 0===P?void 0:P.orderedList)),!1!==this.options.paragraph&&F.push(A.f.configure(null===(R=this.options)||void 0===R?void 0:R.paragraph)),!1!==this.options.strike&&F.push(j.n.configure(null===(M=this.options)||void 0===M?void 0:M.strike)),!1!==this.options.text&&F.push(O.E.configure(null===(N=this.options)||void 0===N?void 0:N.text)),F}})},9370:(e,t,r)=>{"use strict";r.d(t,{hD:()=>tS,A4:()=>t_,UL:()=>e5,NW:()=>ez,EO:()=>tE,Aq:()=>eV});var n=r(14041),i=r(99474);let o={toVector:(e,t)=>(void 0===e&&(e=t),Array.isArray(e)?e:[e,e]),add:(e,t)=>[e[0]+t[0],e[1]+t[1]],sub:(e,t)=>[e[0]-t[0],e[1]-t[1]],addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function a(e,t,r){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*r):e*t*r/(t+r*e)}function s(e,t,r,n=.15){return 0===n?Math.max(t,Math.min(e,r)):er?+a(e-r,r-t,n)+r:e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;tt.includes(e.identifier));return y(r,n)}function w(e){let t=v(e);return m(e)?t.identifier:t.pointerId}function k(e){let t=v(e);return[t.clientX,t.clientY]}function x(e){let{deltaX:t,deltaY:r,deltaMode:n}=e;return 1===n?(t*=40,r*=40):2===n&&(t*=800,r*=800),[t,r]}function _(e,...t){return"function"==typeof e?e(...t):e}function S(){}function E(e,t){return Object.assign({},t,e||{})}class C{constructor(e,t,r){this.ctrl=e,this.args=t,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){let{state:e,shared:t,ingKey:r,args:n}=this;t[r]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=n,e.axis=void 0,e.memo=void 0,e.elapsedTime=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){let t=this.state,r=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=r.from?_(r.from,t):t.offset,t.offset=t.lastOffset),t.startTime=t.timeStamp=e.timeStamp}computeValues(e){let t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){let e=this.state;e._initial=e._values,e.initial=e.values}compute(e){let{state:t,config:r,shared:n}=this;t.args=this.args;let i=0;if(e&&(t.event=e,r.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,n.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,n.locked=!!document.pointerLockElement,Object.assign(n,function(e){let t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){let{shiftKey:r,altKey:n,metaKey:i,ctrlKey:o}=e;Object.assign(t,{shiftKey:r,altKey:n,metaKey:i,ctrlKey:o})}return t}(e)),n.down=n.pressed=n.buttons%2==1||n.touches>0,i=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){let e=t._delta.map(Math.abs);o.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);let[a,l]=t._movement,[u,c]=r.threshold,{_step:d,values:h}=t;if(r.hasCustomTransform?(!1===d[0]&&(d[0]=Math.abs(a)>=u&&h[0]),!1===d[1]&&(d[1]=Math.abs(l)>=c&&h[1])):(!1===d[0]&&(d[0]=Math.abs(a)>=u&&Math.sign(a)*u),!1===d[1]&&(d[1]=Math.abs(l)>=c&&Math.sign(l)*c)),t.intentional=!1!==d[0]||!1!==d[1],!t.intentional)return;let p=[0,0];if(r.hasCustomTransform){let[e,t]=h;p[0]=!1!==d[0]?e-d[0]:0,p[1]=!1!==d[1]?t-d[1]:0}else p[0]=!1!==d[0]?a-d[0]:0,p[1]=!1!==d[1]?l-d[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(p);let f=t.offset,m=t._active&&!t._blocked||t.active;m&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=n[this.ingKey]=t._active,e&&(t.first&&("bounds"in r&&(t._bounds=_(r.bounds,t)),this.setup&&this.setup()),t.movement=p,this.computeOffset()));let[g,v]=t.offset,[[y,b],[w,k]]=t._bounds;t.overflow=[gb?1:0,vk?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);let x=t._active&&r.rubberband||[0,0];if(t.offset=function(e,[t,r],[n,i]){let[[o,a],[l,u]]=e;return[s(t,o,a,n),s(r,l,u,i)]}(t._bounds,t.offset,x),t.delta=o.sub(t.offset,f),this.computeMovement(),m&&(!t.last||i>32)){t.delta=o.sub(t.offset,f);let e=t.delta.map(Math.abs);o.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&i>0&&(t.velocity=[e[0]/i,e[1]/i])}}emit(){let e=this.state,t=this.shared,r=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!r.triggerAllEvents)return;let n=this.handler(c(c(c({},t),e),{},{[this.aliasKey]:e.values}));void 0!==n&&(e.memo=n)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class D extends C{constructor(...e){super(...e),l(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=o.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=o.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){let t=this.state,r=this.config;if(!t.axis&&e){let n="object"==typeof r.axisThreshold?r.axisThreshold[g(e)]:r.axisThreshold;t.axis=function([e,t],r){let n=Math.abs(e),i=Math.abs(t);return n>i&&n>r?"x":i>n&&i>r?"y":void 0}(t._movement,n)}t._blocked=(r.lockDirection||!!r.axis)&&!t.axis||!!r.axis&&r.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}let A=e=>e,j={enabled:(e=!0)=>e,eventOptions:(e,t,r)=>c(c({},r.shared.eventOptions),e),preventDefault:(e=!1)=>e,triggerAllEvents:(e=!1)=>e,rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return o.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?o.toVector(e):void 0,transform(e,t,r){let n=e||r.shared.transform;return this.hasCustomTransform=!!n,n||A},threshold:e=>o.toVector(e,0)},O=0,T=c(c({},j),{},{axis(e,t,{axis:r}){if(this.lockDirection="lock"===r,!this.lockDirection)return r},axisThreshold:(e=O)=>e,bounds(e={}){if("function"==typeof e)return t=>T.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;let{left:t=-1/0,right:r=1/0,top:n=-1/0,bottom:i=1/0}=e;return[[t,r],[n,i]]}}),P={ArrowRight:(e=1)=>[10*e,0],ArrowLeft:(e=1)=>[-10*e,0],ArrowUp:(e=1)=>[0,-10*e],ArrowDown:(e=1)=>[0,10*e]};class R extends D{constructor(...e){super(...e),l(this,"ingKey","dragging")}reset(){super.reset();let e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){let e=this.state;if(e._bounds instanceof HTMLElement){let t=e._bounds.getBoundingClientRect(),r=e.currentTarget.getBoundingClientRect(),n={left:t.left-r.left+e.offset[0],right:t.right-r.right+e.offset[0],top:t.top-r.top+e.offset[1],bottom:t.bottom-r.bottom+e.offset[1]};e._bounds=T.bounds(n)}}cancel(){let e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){let t=this.config,r=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;let n=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),n&&n.size>1&&r._pointerActive||(this.start(e),this.setupPointer(e),r._pointerId=w(e),r._pointerActive=!0,this.computeValues(k(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==g(e)?(r._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){let t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){let t=this.state,r=this.config;if(!t._pointerActive||t.type===e.type&&e.timeStamp===t.timeStamp)return;let n=w(e);if(void 0!==t._pointerId&&n!==t._pointerId)return;let i=k(e);if(document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=o.sub(i,t._values),this.computeValues(i)),o.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional){this.timeoutStore.remove("dragDelay"),t.active=!1,this.startPointerDrag(e);return}if(r.preventScrollAxis&&!t._preventScroll){if(!t.axis)return;if(t.axis===r.preventScrollAxis||"xy"===r.preventScrollAxis){t._active=!1,this.clean();return}this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){}let t=this.state,r=this.config;if(!t._active||!t._pointerActive)return;let n=w(e);if(void 0!==t._pointerId&&n!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);let[i,o]=t._distance;if(t.tap=i<=r.tapsThreshold&&o<=r.tapsThreshold,t.tap&&r.filterTaps)t._force=!0;else{let[e,n]=t.direction,[i,o]=t.velocity,[a,s]=t.movement,[l,u]=r.swipe.velocity,[c,d]=r.swipe.distance,h=r.swipe.duration;t.elapsedTimel&&Math.abs(a)>c&&(t.swipe[0]=e),Math.abs(o)>u&&Math.abs(s)>d&&(t.swipe[1]=n))}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){let t=this.config,r=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,"persist"in e&&"function"==typeof e.persist&&e.persist();let t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){let t=P[e.key];if(t){let r=this.state,n=e.shiftKey?10:e.altKey?.1:1;this.start(e),r._delta=t(n),r._keyboardActive=!0,o.addTo(r._movement,r._delta),this.compute(e),this.emit()}}keyUp(e){e.key in P&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){let t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}let M="undefined"!=typeof window&&window.document&&window.document.createElement;function N(){return M&&"ontouchstart"in window||M&&window.navigator.maxTouchPoints>1}let F={isBrowser:M,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:N(),touchscreen:N(),pointer:M&&"onpointerdown"in window,pointerLock:M&&"exitPointerLock"in window.document},I={mouse:0,touch:0,pen:8},L=c(c({},T),{},{device(e,t,{pointer:{touch:r=!1,lock:n=!1,mouse:i=!1}={}}){return(this.pointerLock=n&&F.pointerLock,F.touch&&r)?"touch":this.pointerLock?"mouse":F.pointer&&!i?"pointer":F.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:r}){if(this.preventScrollDelay="number"==typeof r?r:r||void 0===r&&e?250:void 0,F.touchscreen&&!1!==r)return e||(void 0!==r?"y":void 0)},pointerCapture(e,t,{pointer:{capture:r=!0,buttons:n=1}={}}){return this.pointerButtons=n,!this.pointerLock&&"pointer"===this.device&&r},keys:(e=!0)=>e,threshold(e,t,{filterTaps:r=!1,tapsThreshold:n=3,axis:i}){let a=o.toVector(e,r?n:i?1:0);return this.filterTaps=r,this.tapsThreshold=n,a},swipe({velocity:e=.5,distance:t=50,duration:r=250}={}){return{velocity:this.transform(o.toVector(e)),distance:this.transform(o.toVector(t)),duration:r}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?c(c({},I),e):I});class B extends C{constructor(...e){super(...e),l(this,"ingKey","pinching"),l(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();let e=this.state;e._touchIds=[],e.canceled=!1,e.cancel=this.cancel.bind(this),e.turns=0}computeOffset(){let{type:e,movement:t,lastOffset:r}=this.state;"wheel"===e?this.state.offset=o.add(t,r):this.state.offset=[(1+t[0])*r[0],t[1]+r[1]]}computeMovement(){let{offset:e,lastOffset:t}=this.state;this.state.movement=[e[0]/t[0],e[1]-t[1]]}axisIntent(){let e=this.state,[t,r]=e._movement;if(!e.axis){let n=30*Math.abs(t)-Math.abs(r);n<0?e.axis="angle":n>0&&(e.axis="scale")}}restrictToAxis(e){this.config.lockDirection&&("scale"===this.state.axis?e[1]=0:"angle"===this.state.axis&&(e[0]=0))}cancel(){let e=this.state;e.canceled||setTimeout(()=>{e.canceled=!0,e._active=!1,this.compute(),this.emit()},0)}touchStart(e){this.ctrl.setEventIds(e);let t=this.state,r=this.ctrl.touchIds;if(t._active&&t._touchIds.every(e=>r.has(e))||r.size<2)return;this.start(e),t._touchIds=Array.from(r).slice(0,2);let n=b(e,t._touchIds);this.pinchStart(e,n)}pointerStart(e){if(null!=e.buttons&&e.buttons%2!=1)return;this.ctrl.setEventIds(e),e.target.setPointerCapture(e.pointerId);let t=this.state,r=t._pointerEvents,n=this.ctrl.pointerIds;if(t._active&&Array.from(r.keys()).every(e=>n.has(e))||(r.size<2&&r.set(e.pointerId,e),t._pointerEvents.size<2))return;this.start(e);let i=y(...Array.from(r.values()));this.pinchStart(e,i)}pinchStart(e,t){this.state.origin=t.origin,this.computeValues([t.distance,t.angle]),this.computeInitial(),this.compute(e),this.emit()}touchMove(e){if(!this.state._active)return;let t=b(e,this.state._touchIds);this.pinchMove(e,t)}pointerMove(e){let t=this.state._pointerEvents;if(t.has(e.pointerId)&&t.set(e.pointerId,e),!this.state._active)return;let r=y(...Array.from(t.values()));this.pinchMove(e,r)}pinchMove(e,t){let r=this.state,n=r._values[1],i=t.angle-n,o=0;Math.abs(i)>270&&(o+=Math.sign(i)),this.computeValues([t.distance,t.angle-360*o]),r.origin=t.origin,r.turns=o,r._movement=[r._values[0]/r._initial[0]-1,r._values[1]-r._initial[1]],this.compute(e),this.emit()}touchEnd(e){this.ctrl.setEventIds(e),this.state._active&&this.state._touchIds.some(e=>!this.ctrl.touchIds.has(e))&&(this.state._active=!1,this.compute(e),this.emit())}pointerEnd(e){let t=this.state;this.ctrl.setEventIds(e);try{e.target.releasePointerCapture(e.pointerId)}catch(e){}t._pointerEvents.has(e.pointerId)&&t._pointerEvents.delete(e.pointerId),t._active&&t._pointerEvents.size<2&&(t._active=!1,this.compute(e),this.emit())}gestureStart(e){e.cancelable&&e.preventDefault();let t=this.state;t._active||(this.start(e),this.computeValues([e.scale,e.rotation]),t.origin=[e.clientX,e.clientY],this.compute(e),this.emit())}gestureMove(e){if(e.cancelable&&e.preventDefault(),!this.state._active)return;let t=this.state;this.computeValues([e.scale,e.rotation]),t.origin=[e.clientX,e.clientY];let r=t._movement;t._movement=[e.scale-1,e.rotation],t._delta=o.sub(t._movement,r),this.compute(e),this.emit()}gestureEnd(e){this.state._active&&(this.state._active=!1,this.compute(e),this.emit())}wheel(e){let t=this.config.modifierKey;(!t||e[t])&&(this.state._active?this.wheelChange(e):this.wheelStart(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(e){this.start(e),this.wheelChange(e)}wheelChange(e){"uv"in e||!e.cancelable||e.preventDefault();let t=this.state;t._delta=[-x(e)[1]/100*t.offset[0],0],o.addTo(t._movement,t._delta),this.state.origin=[e.clientX,e.clientY],this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){let t=this.config.device;t&&(e(t,"start",this[t+"Start"].bind(this)),e(t,"change",this[t+"Move"].bind(this)),e(t,"end",this[t+"End"].bind(this)),e(t,"cancel",this[t+"End"].bind(this))),e("wheel","",this.wheel.bind(this),{passive:!1})}}let z=c(c({},j),{},{device(e,t,{shared:r,pointer:{touch:n=!1}={}}){if(r.target&&!F.touch&&F.gesture)return"gesture";if(F.touch&&n)return"touch";if(F.touchscreen){if(F.pointer)return"pointer";if(F.touch)return"touch"}},bounds(e,t,{scaleBounds:r={},angleBounds:n={}}){let i=e=>{let t=E(_(r,e),{min:-1/0,max:1/0});return[t.min,t.max]},o=e=>{let t=E(_(n,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof r&&"function"!=typeof n?[i(),o()]:e=>[i(e),o(e)]},threshold(e,t,r){return this.lockDirection="lock"===r.axis,o.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey:e=>void 0===e?"ctrlKey":e});class U extends D{constructor(...e){super(...e),l(this,"ingKey","moving")}move(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.state._active?this.moveChange(e):this.moveStart(e),this.timeoutStore.add("moveEnd",this.moveEnd.bind(this)))}moveStart(e){this.start(e),this.computeValues(k(e)),this.compute(e),this.computeInitial(),this.emit()}moveChange(e){if(!this.state._active)return;let t=k(e),r=this.state;r._delta=o.sub(t,r._values),o.addTo(r._movement,r._delta),this.computeValues(t),this.compute(e),this.emit()}moveEnd(e){this.state._active&&(this.state._active=!1,this.compute(e),this.emit())}bind(e){e("pointer","change",this.move.bind(this)),e("pointer","leave",this.moveEnd.bind(this))}}let q=c(c({},T),{},{mouseOnly:(e=!0)=>e});class H extends D{constructor(...e){super(...e),l(this,"ingKey","scrolling")}scroll(e){this.state._active||this.start(e),this.scrollChange(e),this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(e){e.cancelable&&e.preventDefault();let t=this.state,r=function(e){var t,r;let{scrollX:n,scrollY:i,scrollLeft:o,scrollTop:a}=e.currentTarget;return[null!==(t=null!=n?n:o)&&void 0!==t?t:0,null!==(r=null!=i?i:a)&&void 0!==r?r:0]}(e);t._delta=o.sub(r,t._values),o.addTo(t._movement,t._delta),this.computeValues(r),this.compute(e),this.emit()}scrollEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("scroll","",this.scroll.bind(this))}}class V extends D{constructor(...e){super(...e),l(this,"ingKey","wheeling")}wheel(e){this.state._active||this.start(e),this.wheelChange(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(e){let t=this.state;t._delta=x(e),o.addTo(t._movement,t._delta);let[r,n]=t.overflow,[i,a]=t._delta,[s,l]=t._direction;(r<0&&i>0&&s<0||r>0&&i<0&&s>0)&&(t._movement[0]=t._movementBound[0]),(n<0&&a>0&&l<0||n>0&&a<0&&l>0)&&(t._movement[1]=t._movementBound[1]),this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("wheel","",this.wheel.bind(this))}}class $ extends D{constructor(...e){super(...e),l(this,"ingKey","hovering")}enter(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.start(e),this.computeValues(k(e)),this.compute(e),this.emit())}leave(e){if(this.config.mouseOnly&&"mouse"!==e.pointerType)return;let t=this.state;if(!t._active)return;t._active=!1;let r=k(e);t._movement=t._delta=o.sub(r,t._values),this.computeValues(r),this.compute(e),t.delta=t.movement,this.emit()}bind(e){e("pointer","enter",this.enter.bind(this)),e("pointer","leave",this.leave.bind(this))}}let W=c(c({},T),{},{mouseOnly:(e=!0)=>e}),Y=new Map,G=new Map;function K(e){Y.set(e.key,e.engine),G.set(e.key,e.resolver)}let X={key:"drag",engine:R,resolver:L},J={key:"hover",engine:$,resolver:W},Q={key:"move",engine:U,resolver:q},Z={key:"pinch",engine:B,resolver:z},ee={key:"scroll",engine:H,resolver:T},et={key:"wheel",engine:V,resolver:T},er={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=F.isBrowser?window:void 0)=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},en=["target","eventOptions","window","enabled","transform"];function ei(e={},t){let r={};for(let[n,i]of Object.entries(t))switch(typeof i){case"function":r[n]=i.call(r,e[n],n,e);break;case"object":r[n]=ei(e[n],i);break;case"boolean":i&&(r[n]=e[n])}return r}class eo{constructor(e,t){l(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,r,n,i){let o=this._listeners,a=function(e,t=""){let r=d[e];return e+(r&&r[t]||t)}(t,r),s=c(c({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),i);e.addEventListener(a,n,s);let l=()=>{e.removeEventListener(a,n,s),o.delete(l)};return o.add(l),l}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class ea{constructor(){l(this,"_timeouts",new Map)}add(e,t,r=140,...n){this.remove(e),this._timeouts.set(e,window.setTimeout(t,r,...n))}remove(e){let t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class es{constructor(e){l(this,"gestures",new Set),l(this,"_targetEventStore",new eo(this)),l(this,"gestureEventStores",{}),l(this,"gestureTimeoutStores",{}),l(this,"handlers",{}),l(this,"config",{}),l(this,"pointerIds",new Set),l(this,"touchIds",new Set),l(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&el(e,"drag"),t.wheel&&el(e,"wheel"),t.scroll&&el(e,"scroll"),t.move&&el(e,"move"),t.pinch&&el(e,"pinch"),t.hover&&el(e,"hover")}(this,e)}setEventIds(e){return m(e)?(this.touchIds=new Set(Array.from(e.touches).filter(t=>{var r,n;return t.target===e.currentTarget||(null===(r=e.currentTarget)||void 0===r?void 0:null===(n=r.contains)||void 0===n?void 0:n.call(r,t.target))}).map(e=>e.identifier)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t){let{target:r,eventOptions:n,window:i,enabled:o,transform:a}=e,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,en),l={shared:ei({target:r,eventOptions:n,window:i,enabled:o,transform:a},er)};if(t){let e=G.get(t);l[t]=ei(c({shared:l.shared},s),e)}else for(let e in s){let t=G.get(e);t&&(l[e]=ei(c({shared:l.shared},s[e]),t))}return l}(e,t)}clean(){for(let e of(this._targetEventStore.clean(),this.gestures))this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){let t;let r=this.config.shared,n={};if(!r.target||(t=r.target())){if(r.enabled){for(let r of this.gestures){let i=this.config[r],o=eu(n,i.eventOptions,!!t);i.enabled&&new(Y.get(r))(this,e,r).bind(o)}let i=eu(n,r.eventOptions,!!t);for(let t in this.nativeHandlers)i(t,"",r=>this.nativeHandlers[t](c(c({},this.state.shared),{},{event:r,args:e})),void 0,!0)}for(let e in n)n[e]=function(...e){return 0===e.length?S:1===e.length?e[0]:function(){let t;for(let r of e)t=r.apply(this,arguments)||t;return t}}(...n[e]);if(!t)return n;for(let e in n){let{device:r,capture:i,passive:o}=function(e){let t=e.substring(2).toLowerCase(),r=!!~t.indexOf("passive");r&&(t=t.replace("passive",""));let n=f.includes(t)?"capturecapture":"capture",i=!!~t.indexOf(n);return i&&(t=t.replace("capture","")),{device:t,capture:i,passive:r}}(e);this._targetEventStore.add(t,r,"",n[e],{capture:i,passive:o})}}}}function el(e,t){e.gestures.add(t),e.gestureEventStores[t]=new eo(e,t),e.gestureTimeoutStores[t]=new ea}let eu=(e,t,r)=>(n,i,o,a={},s=!1)=>{var l,u;let c=null!==(l=a.capture)&&void 0!==l?l:t.capture,f=null!==(u=a.passive)&&void 0!==u?u:t.passive,m=s?n:function(e,t="",r=!1){let n=d[e],i=n&&n[t]||t;return"on"+h(e)+h(i)+(!function(e=!1,t){return e&&!p.includes(t)}(r,i)?"":"Capture")}(n,i,c);r&&f&&(m+="Passive"),e[m]=e[m]||[],e[m].push(o)},ec=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function ed(e,t,r,n,i,o){if(!e.has(r)||!Y.has(n))return;let a=r+"Start",s=r+"End";i[n]=e=>{let n;return e.first&&a in t&&t[a](e),r in t&&(n=t[r](e)),e.last&&s in t&&t[s](e),n},o[n]=o[n]||{}}function eh(e,t,r,n=e=>e){return e*n(.5-t*(.5-r))}function ep(e,t){return[e[0]+t[0],e[1]+t[1]]}function ef(e,t){return[e[0]-t[0],e[1]-t[1]]}function em(e,t){return[e[0]*t,e[1]*t]}function eg(e){return[e[1],-e[0]]}function ev(e,t){var r;return(r=ef(e,t))[0]*r[0]+r[1]*r[1]}function ey(e){var t;return t=Math.hypot(e[0],e[1]),[e[0]/t,e[1]/t]}function eb(e,t,r){let n=Math.sin(r),i=Math.cos(r),o=e[0]-t[0],a=e[1]-t[1];return[o*i-a*n+t[0],o*n+a*i+t[1]]}function ew(e,t,r){return ep(e,em(ef(t,e),r))}var{min:ek,PI:ex}=Math,e_=ex+1e-4,eS=r(90377),eE=Object.defineProperty,eC=Object.defineProperties,eD=Object.getOwnPropertyDescriptors,eA=Object.getOwnPropertySymbols,ej=Object.prototype.hasOwnProperty,eO=Object.prototype.propertyIsEnumerable,eT=(e,t,r)=>t in e?eE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eP=(e,t)=>{for(var r in t||(t={}))ej.call(t,r)&&eT(e,r,t[r]);if(eA)for(var r of eA(t))eO.call(t,r)&&eT(e,r,t[r]);return e},eR=(e,t)=>eC(e,eD(t)),eM=(e,t)=>{var r={};for(var n in e)ej.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&eA)for(var n of eA(e))0>t.indexOf(n)&&eO.call(e,n)&&(r[n]=e[n]);return r},eN=(e,t,r)=>(eT(e,"symbol"!=typeof t?t+"":t,r),r),eF=n.createContext({});function eI(){return n.useContext(eF)}var eL=(e=>(e.TransformSelected="transform_selected",e.TranslateSelected="translate_selected",e.TransformAll="transform_all",e.TranslateAll="translate_all",e))(eL||{}),eB=(e=>(e.Top="top_edge",e.Right="right_edge",e.Bottom="bottom_edge",e.Left="left_edge",e))(eB||{}),ez=(e=>(e.TopLeft="top_left_corner",e.TopRight="top_right_corner",e.BottomRight="bottom_right_corner",e.BottomLeft="bottom_left_corner",e))(ez||{}),eU=(e=>(e.minX="minX",e.midX="midX",e.maxX="maxX",e.minY="minY",e.midY="midY",e.maxY="maxY",e))(eU||{});String.prototype.replaceAll||(String.prototype.replaceAll=function(e,t){return"[object regexp]"===Object.prototype.toString.call(e).toLowerCase()?this.replace(e,t):this.replace(RegExp(e,"g"),t)});var eq=2*Math.PI,eH=class{static lerp(e,t,r){return e*(1-(r=eH.clamp(r,0,1)))+t*r}static lerpColor(e,t,r=.5){function n(e){let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}let i=n(e)||[0,0,0],o=n(t)||[0,0,0],a=i.slice();for(let e=0;e<3;e++)a[e]=Math.round(a[e]+r*(o[e]-i[e]));return"#"+(0x1000000+(a[0]<<16)+(a[1]<<8)+a[2]).toString(16).slice(1)}static modulate(e,t,r,n=!1){let[i,o]=t,[a,s]=r,l=a+(e-i)/(o-i)*(s-a);return n?at[r]="object"==typeof e[r]?eH.deepClone(e[r]):e[r]),t}return e}static rng(e=""){let t=0,r=0,n=0,i=0;function o(){let e=t^t<<11;return t=r,r=n,n=i,(i^=(i>>>19^e^e>>>8)>>>0)/0x100000000}for(let r=0;rn}static degreesToRadians(e){return e*Math.PI/180}static radiansToDegrees(e){return 180*e/Math.PI}static getArcLength(e,t,r,n){return 2*Math.PI*t*(eH.getSweep(e,r,n)/(2*Math.PI))}static getSweepFlag(e,t,r){let n=i.l.angle(e,r);return(i.l.angle(e,t)-n+3*Math.PI)%(2*Math.PI)-Math.PI>0?0:1}static getLargeArcFlag(e,t,r){let n=i.l.angle(r,e);return Math.abs((i.l.angle(r,t)-n+3*Math.PI)%(2*Math.PI)-Math.PI)>Math.PI/2?0:1}static getArcDashOffset(e,t,r,n,i){let o=eH.getSweepFlag(e,r,n),a=eH.getArcLength(e,t,r,n);return-(o<0?a:2*Math.PI*e[2]-a)/2+i}static getEllipseDashOffset(e,t){return-(2*Math.PI*e[2])/2+-t}static pointInCircle(e,t,r){return i.l.dist(e,t)<=r}static pointInEllipse(e,t,r,n,o=0){let a=Math.cos(o=o||0),s=Math.sin(o),l=i.l.sub(e,t),u=a*l[0]+s*l[1],c=s*l[0]-a*l[1];return u*u/(r*r)+c*c/(n*n)<=1}static pointInRect(e,t){return!(e[0]e[0]+t[0]||e[1]e[1]+t[1])}static pointInPolygon(e,t){let r=0;return t.forEach((n,o)=>{let a=t[(o+1)%t.length];n[1]<=e[1]?a[1]>e[1]&&i.l.cross(n,a,e)>0&&(r+=1):a[1]<=e[1]&&0>i.l.cross(n,a,e)&&(r-=1)}),0!==r}static pointInBounds(e,t){return!(e[0]t.maxX||e[1]t.maxY)}static pointInPolyline(e,t,r=3){for(let n=1;nt.maxX||e.maxYt.maxY)}static boundsContain(e,t){return e.minXt.maxY&&e.maxX>t.maxX}static boundsContained(e,t){return eH.boundsContain(t,e)}static boundsAreEqual(e,t){return!(t.maxX!==e.maxX||t.minX!==e.minX||t.maxY!==e.maxY||t.minY!==e.minY)}static getBoundsFromPoints(e,t=0){let r=1/0,n=1/0,o=-1/0,a=-1/0;if(e.length<2)r=0,n=0,o=1,a=1;else for(let[t,i]of e)r=Math.min(t,r),n=Math.min(i,n),o=Math.max(t,o),a=Math.max(i,a);return 0!==t?eH.getBoundsFromPoints(e.map(e=>i.l.rotWith(e,[(r+o)/2,(n+a)/2],t))):{minX:r,minY:n,maxX:o,maxY:a,width:Math.max(1,o-r),height:Math.max(1,a-n)}}static centerBounds(e,t){let r=this.getBoundsCenter(e),n=t[0]-r[0],i=t[1]-r[1];return this.translateBounds(e,[n,i])}static snapBoundsToGrid(e,t){let r=Math.round(e.minX/t)*t,n=Math.round(e.minY/t)*t,i=Math.round(e.maxX/t)*t,o=Math.round(e.maxY/t)*t;return{minX:r,minY:n,maxX:i,maxY:o,width:Math.max(1,i-r),height:Math.max(1,o-n)}}static translateBounds(e,t){return{minX:e.minX+t[0],minY:e.minY+t[1],maxX:e.maxX+t[0],maxY:e.maxY+t[1],width:e.width,height:e.height}}static rotateBounds(e,t,r){let[n,o]=i.l.rotWith([e.minX,e.minY],t,r),[a,s]=i.l.rotWith([e.maxX,e.maxY],t,r);return{minX:n,minY:o,maxX:a,maxY:s,width:e.width,height:e.height}}static getRotatedEllipseBounds(e,t,r,n,i=0){let o=Math.cos(i),a=Math.sin(i),s=Math.hypot(r*o,n*a),l=Math.hypot(r*a,n*o);return{minX:e+r-s,minY:t+n-l,maxX:e+r+s,maxY:t+n+l,width:2*s,height:2*l}}static getExpandedBounds(e,t){let r=Math.min(e.minX,t.minX),n=Math.min(e.minY,t.minY),i=Math.max(e.maxX,t.maxX),o=Math.max(e.maxY,t.maxY),a=Math.abs(i-r),s=Math.abs(o-n);return{minX:r,minY:n,maxX:i,maxY:o,width:a,height:s}}static getCommonBounds(e){if(e.length<2)return e[0];let t=e[0];for(let r=1;ri.l.rotWith(e,r,t))}static getTransformedBoundingBox(e,t,r,n=0,o=!1){let[a,s]=[e.minX,e.minY],[l,u]=[e.maxX,e.maxY],[c,d]=[e.minX,e.minY],[h,p]=[e.maxX,e.maxY];if("center"===t)return{minX:c+r[0],minY:d+r[1],maxX:h+r[0],maxY:p+r[1],width:h-c,height:p-d,scaleX:1,scaleY:1};let[f,m]=i.l.rot(r,-n);switch(t){case"top_edge":case"top_left_corner":case"top_right_corner":d+=m;break;case"bottom_edge":case"bottom_left_corner":case"bottom_right_corner":p+=m}switch(t){case"left_edge":case"top_left_corner":case"bottom_left_corner":c+=f;break;case"right_edge":case"top_right_corner":case"bottom_right_corner":h+=f}let g=l-a,v=u-s,y=(h-c)/g,b=(p-d)/v,w=Math.abs(h-c),k=Math.abs(p-d);if(o){let e=g/v,r=ei.l.rotWith(e,r,t)),o=eH.getBoundsFromPoints(n);return[o.width,o.height]}static getBoundsCenter(e){return[e.minX+e.width/2,e.minY+e.height/2]}static getBoundsWithCenter(e){let t=eH.getBoundsCenter(e);return eR(eP({},e),{midX:t[0],midY:t[1]})}static getCommonTopLeft(e){let t=[1/0,1/0];return e.forEach(e=>{t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1])}),t}static getFromCache(e,t,r){let n=e.get(t);if(void 0===n&&(e.set(t,r()),void 0===(n=e.get(t))))throw Error("Cache did not include item!");return n}static uniqueId(e=""){return e?((Number(e)^16*Math.random())>>Number(e)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,eH.uniqueId)}static rotateArray(e,t){return e.map((r,n)=>e[(n+t)%e.length])}static debounce(e,t=0){let r;return function(...n){clearTimeout(r),r=setTimeout(()=>e.apply(n),t)}}static getSvgPathFromStroke(e){let t=e.length;if(!t)return"";let r=e[0],n=`M${r[0].toFixed(3)},${r[1].toFixed(3)}Q`;for(let r=0,i=t-1;rr=!1,t),n=e(...i)),n}}static isDarwin(){return/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)}static metaKey(e){return eH.isDarwin()?e.metaKey:e.ctrlKey}static lns(e){let t=e.split("");return t.push(...t.splice(0,Math.round(t.length/5))),t.push(...t.splice(0,Math.round(t.length/4))),t.push(...t.splice(0,Math.round(t.length/3))),t.push(...t.splice(0,Math.round(t.length/2))),t.reverse().map(e=>+e?5>+e?5+ +e:+e>5?+e-5:e:e).join("")}},eV=eH;eN(eV,"getSnapPoints",(e,t,r)=>{let n=eP({},e),i=[0,0],o=[],a={minX:{id:"minX",isSnapped:!1},midX:{id:"midX",isSnapped:!1},maxX:{id:"maxX",isSnapped:!1},minY:{id:"minY",isSnapped:!1},midY:{id:"midY",isSnapped:!1},maxY:{id:"maxY",isSnapped:!1}},s=["midX","minX","maxX"],l=["midY","minY","maxY"],u=t.map(e=>{let t=s.flatMap((t,r)=>s.map((i,o)=>{let a=n[t]-e[i],s=Math.abs(a);return{f:t,t:i,gap:a,distance:s,isCareful:0===r||r+o===3}})),r=l.flatMap((t,r)=>l.map((i,o)=>{let a=n[t]-e[i],s=Math.abs(a);return{f:t,t:i,gap:a,distance:s,isCareful:0===r||r+o===3}}));return[e,t,r]}),c=1/0,d=1/0,h=1/0,p=1/0;return u.forEach(([e,t,n])=>{t.forEach(e=>{e.distance{e.distance{c!==1/0&&t.forEach(t=>{2>Math.abs(t.gap-c)&&(a[t.f]=eR(eP({},a[t.f]),{isSnapped:!0,to:e[t.t],B:e,distance:t.distance}))}),d!==1/0&&r.forEach(t=>{2>Math.abs(t.gap-d)&&(a[t.f]=eR(eP({},a[t.f]),{isSnapped:!0,to:e[t.t],B:e,distance:t.distance}))})}),i[0]=c===1/0?0:c,i[1]=d===1/0?0:d,n.minX-=i[0],n.midX-=i[0],n.maxX-=i[0],n.minY-=i[1],n.midY-=i[1],n.maxY-=i[1],s.forEach(e=>{let t=a[e];if(!t.isSnapped)return;let{id:r,B:i}=t,s=n[r];o.push("minX"===r?[[s,n.midY],[s,i.minY],[s,i.maxY]]:[[s,n.minY],[s,n.maxY],[s,i.minY],[s,i.maxY]])}),l.forEach(e=>{let t=a[e];if(!t.isSnapped)return;let{id:r,B:i}=t,s=n[r];o.push("midY"===r?[[n.midX,s],[i.minX,s],[i.maxX,s]]:[[n.minX,s],[n.maxX,s],[i.minX,s],[i.maxX,s]])}),{offset:i,snapLines:o}}),eN(eV,"deepMerge",(e,t)=>{let r=eP({},e);for(let[e,n]of Object.entries(t))r[e]=n!==Object(n)||Array.isArray(n)?n:eH.deepMerge(r[e],n);return r});var e$=new Map,eW={accent:"rgb(255, 0, 0)",brushFill:"rgba(0,0,0,.05)",brushStroke:"rgba(0,0,0,.25)",brushDashStroke:"rgba(0,0,0,.6)",selectStroke:"rgb(66, 133, 244)",selectFill:"rgba(65, 132, 244, 0.05)",binding:"rgba(65, 132, 244, 0.12)",background:"rgb(248, 249, 250)",foreground:"rgb(51, 51, 51)",grid:"rgba(144, 144, 144, 1)"},eY=((e,...t)=>e.reduce((e,r,n)=>e+r+(n * { stroke: var(--tl-selectFill); } .tl-handle:active .tl-handle-bg { cursor: grabbing; fill: var(--tl-selectFill); } .tl-handle:active .tl-handle-bg > * { stroke: var(--tl-selectFill); } .tl-handle { fill: var(--tl-background); stroke: var(--tl-selectStroke); stroke-width: 1.5px; } .tl-handle-bg { fill: transparent; stroke: none; pointer-events: all; r: calc(16px / max(1, var(--tl-zoom))); } .tl-binding-indicator { fill: transparent; stroke: var(--tl-binding); } .tl-centered-g { transform: translate(var(--tl-padding), var(--tl-padding)); } .tl-current-parent > *[data-shy='true'] { opacity: 1; } .tl-binding { fill: none; stroke: var(--tl-selectStroke); stroke-width: calc(2px * var(--tl-scale)); } .tl-grid-dot { fill: var(--tl-grid); } .tl-erase-line { stroke-linejoin: round; stroke-linecap: round; pointer-events: none; fill: var(--tl-grid); opacity: 0.32; } `;function eG(e){let{callbacks:t,inputs:r}=eI(),i=n.useCallback(n=>{var i,o,a;if(n.dead||(n.dead=!0,!r.pointerIsValid(n)))return;let s=r.pointerDown(n,e);if(2===n.button){null==(i=t.onRightPointBoundsHandle)||i.call(t,s,n);return}0===n.button&&(null==(o=t.onPointBoundsHandle)||o.call(t,s,n)),null==(a=t.onPointerDown)||a.call(t,s,n)},[r,t,e]),o=n.useCallback(n=>{var i,o,a;if(n.dead||(n.dead=!0,2===n.button||!r.pointerIsValid(n)))return;let s=r.pointerUp(n,e),l=r.isDoubleClick();0===n.button&&(l&&!(s.altKey||s.metaKey)&&(null==(i=t.onDoubleClickBoundsHandle)||i.call(t,s,n)),null==(o=t.onReleaseBoundsHandle)||o.call(t,s,n)),null==(a=t.onPointerUp)||a.call(t,s,n)},[r,t,e]),a=n.useCallback(n=>{var i,o;if(n.dead||(n.dead=!0,!r.pointerIsValid(n))||2===n.buttons)return;let a=r.pointerMove(n,e);1===n.buttons&&n.currentTarget.hasPointerCapture(n.pointerId)&&(null==(i=t.onDragBoundsHandle)||i.call(t,a,n)),null==(o=t.onPointerMove)||o.call(t,a,n)},[r,t,e]);return{onPointerDown:i,onPointerUp:o,onPointerEnter:n.useCallback(n=>{var i;r.pointerIsValid(n)&&null!=(i=t.onHoverBoundsHandle)&&i.call(t,r.pointerEnter(n,e),n)},[r,t,e]),onPointerMove:a,onPointerLeave:n.useCallback(n=>{var i;r.pointerIsValid(n)&&null!=(i=t.onUnhoverBoundsHandle)&&i.call(t,r.pointerEnter(n,e),n)},[r,t,e])}}function eK(e,t){return[(e[0]+t.point[0])*t.zoom,(e[1]+t.point[1])*t.zoom]}function eX(e,t=0){let r=n.useRef(null);return n.useLayoutEffect(()=>{let n=r.current,i=` translate( calc(${e.minX}px - var(--tl-padding)), calc(${e.minY}px - var(--tl-padding)) ) rotate(${t+(e.rotation||0)}rad)`;n.style.setProperty("transform",i),n.style.setProperty("width",`calc(${Math.floor(e.width)}px + (var(--tl-padding) * 2))`),n.style.setProperty("height",`calc(${Math.floor(e.height)}px + (var(--tl-padding) * 2))`)},[e,t]),r}var eJ=n.memo(function(e){var{id:t,bounds:r,rotation:i=0,isGhost:o=!1,isSelected:a=!1,children:s}=e,l=eM(e,["id","bounds","rotation","isGhost","isSelected","children"]);let u=eX(r,i);return n.createElement("div",eP({id:t,ref:u,className:`tl-positioned${o?" tl-ghost":""}${a?" tl-positioned-selected":""}`,"aria-label":"container","data-testid":"container"},l),s)}),eQ=n.memo(function({brush:e,zoom:t,dashed:r}){return n.createElement(eJ,{bounds:e,rotation:0},n.createElement(e5,null,n.createElement("rect",{className:"tl-brush"+(r?" dashed":""),opacity:1,x:0,y:0,width:e.width,height:e.height,"aria-label":"brush"}),r&&n.createElement("g",{className:"tl-dashed-brush-line"},n.createElement(eZ,{x1:0,y1:0,x2:e.width,y2:0,zoom:t}),n.createElement(eZ,{x1:e.width,y1:0,x2:e.width,y2:e.height,zoom:t}),n.createElement(eZ,{x1:0,y1:e.height,x2:e.width,y2:e.height,zoom:t}),n.createElement(eZ,{x1:0,y1:0,x2:0,y2:e.height,zoom:t}))))});function eZ({x1:e,y1:t,x2:r,y2:i,zoom:o}){let a=eV.getPerfectDashProps(Math.hypot(r-e,i-t),1/o,"dashed",1,!0,3);return n.createElement("line",{x1:e,y1:t,x2:r,y2:i,strokeWidth:1/o,strokeDasharray:a.strokeDasharray,strokeDashoffset:a.strokeDashoffset})}var e0=n.memo(function({points:e,zoom:t}){if(0===e.length)return null;let r=eV.getSvgPathFromStroke(function(e,t={}){return function(e,t={}){var r,n;let{size:i=16,smoothing:o=.5,thinning:a=.5,simulatePressure:s=!0,easing:l=e=>e,start:u={},end:c={},last:d=!1}=t,{cap:h=!0,easing:p=e=>e*(2-e)}=u,{cap:f=!0,easing:m=e=>--e*e*e+1}=c;if(0===e.length||i<=0)return[];let g=e[e.length-1].runningLength,v=!1===u.taper?0:!0===u.taper?Math.max(i,g):u.taper,y=!1===c.taper?0:!0===c.taper?Math.max(i,g):c.taper,b=Math.pow(i*o,2),w=[],k=[],x=e.slice(0,10).reduce((e,t)=>{let r=t.pressure;if(s){let n=ek(1,t.distance/i),o=ek(1,1-n);r=ek(1,e+.275*n*(o-e))}return(e+r)/2},e[0].pressure),_=eh(i,a,e[e.length-1].pressure,l),S,E=e[0].vector,C=e[0].point,D=C,A=C,j=D;for(let t=0;tb)&&(w.push(A),C=A),j=ep(n,f),(t<=1||ev(D,j)>b)&&(k.push(j),D=j),x=r,E=o}let O=e[0].point.slice(0,2),T=e.length>1?e[e.length-1].point.slice(0,2):ep(e[0].point,[1,1]),P=[],R=[];if(1===e.length){if(!(v||y)||d){let e=(r=ey(eg(ef(O,T))),ep(O,em(r,-(S||_)))),t=[];for(let r=1/13,n=r;n<=1;n+=r)t.push(eb(e,O,2*e_*n));return t}}else{if(!(v||y&&1===e.length)){if(h)for(let e=1/13,t=e;t<=1;t+=e){let e=eb(k[0],O,e_*t);P.push(e)}else{let e=ef(w[0],k[0]),t=em(e,.5),r=em(e,.51);P.push(ef(O,t),ef(O,r),ep(O,r),ep(O,t))}}let t=eg([-(n=e[e.length-1].vector)[0],-n[1]]);if(y||v&&1===e.length)R.push(T);else if(f){let e=ep(T,em(t,_));for(let t=1/29,r=t;r<1;r+=t)R.push(eb(e,T,3*e_*r))}else R.push(ep(T,em(t,_)),ep(T,em(t,.99*_)),ef(T,em(t,.99*_)),ef(T,em(t,_)))}return w.concat(R,k.reverse(),P)}(function(e,t={}){var r,n,i;let{streamline:o=.5,size:a=16,last:s=!1}=t;if(0===e.length)return[];let l=.15+(1-o)*.85,u=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:r=.5})=>[e,t,r]);if(2===u.length){let e=u[1];u=u.slice(0,-1);for(let t=1;t<5;t++)u.push(ew(u[0],e,t/4))}1===u.length&&(u=[...u,[...ep(u[0],[1,1]),...u[0].slice(2)]]);let c=[{point:[u[0][0],u[0][1]],pressure:u[0][2]>=0?u[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],d=!1,h=0,p=c[0],f=u.length-1;for(let e=1;e=0?u[e][2]:.5,vector:ey(ef(p.point,t)),distance:r,runningLength:h},c.push(p)}return c[0].vector=(null==(r=c[1])?void 0:r.vector)||[0,0],c}(e,t),t)}(e,{size:16/t,start:{taper:!0}}));return n.createElement("path",{d:r,className:"tl-erase-line"})}),e1=[[-1,.15,64],[.05,.375,16],[.15,1,4],[.7,2.5,1]];function e2({grid:e,camera:t}){return n.createElement("svg",{className:"tl-grid",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},n.createElement("defs",null,e1.map(([r,i,o],a)=>{let s=o*e*t.zoom,l=t.point[0]*t.zoom,u=t.point[1]*t.zoom,c=l>0?l%s:s+l%s,d=u>0?u%s:s+u%s,h=t.zoomn.createElement("rect",{key:`grid-rect-${t}`,width:"100%",height:"100%",fill:`url(#grid-${t})`})))}var e3=n.memo(function({camera:{zoom:e,point:t},children:r}){let i=2.5/e;return n.createElement("svg",{className:"tl-overlay"},n.createElement("defs",null,n.createElement("g",{id:"tl-snap-point"},n.createElement("path",{className:"tl-snap-point",d:`M ${-i},${-i} L ${i},${i} M ${-i},${i} L ${i},${-i}`}))),n.createElement("g",{transform:`scale(${e}) translate(${t})`},r))}),e5=n.memo(n.forwardRef(function(e,t){var{id:r,className:i="",children:o,shapeStyle:a}=e,s=eM(e,["id","className","children","shapeStyle"]);let l=a?{"data-color":a.color,"data-fill":a.isFilled}:{};return n.createElement("svg",eP({ref:t,className:`tl-positioned-svg ${i}`},s),n.createElement("g",eP({id:r,className:"tl-centered-g"},l),o))})),e4=n.memo(function({bounds:e,isLocked:t,isHidden:r}){return n.createElement("rect",{className:["tl-bounds-center",t?"tl-dashed":""].join(" "),x:-1,y:-1,width:e.width+2,height:e.height+2,opacity:r?0:1,pointerEvents:"none","aria-label":"center handle"})}),e6={right:0,bottomRight:45,bottom:90,bottomLeft:135,left:180,topLeft:225,top:270,topRight:315},e8=n.memo(function({bounds:e,side:t,targetSize:r,size:i}){let o=2*r,a={left:-o,topLeft:-o,bottomLeft:-o,right:e.width,topRight:e.width,bottomRight:e.width,top:e.width/2-o/2,bottom:e.width/2-o/2}[t],s={left:e.height/2-o/2,right:e.height/2-o/2,top:-(2*o),topLeft:-o,topRight:-o,bottom:e.height,bottomLeft:e.height,bottomRight:e.height}[t],{callbacks:l,inputs:u}=eI(),c=n.useCallback(e=>{var r;e.stopPropagation();let n=u.pointerDown(e,t);null==(r=l.onShapeClone)||r.call(l,n,e)},[l.onShapeClone]);return n.createElement("g",{className:"tl-clone-target",transform:`translate(${a}, ${s})`,"aria-label":"clone button"},n.createElement("rect",{className:"tl-transparent",width:2*r,height:2*r}),n.createElement("g",{className:"tl-clone-button-target",onPointerDown:c,transform:`translate(${r}, ${r}) rotate(${e6[t]})`},n.createElement("circle",{className:"tl-transparent ",r:r}),n.createElement("path",{className:"tl-clone-button",d:`M -${i/2},-${i/2} L ${i/2},0 -${i/2},${i/2} Z`,strokeLinejoin:"round"})))}),e9=n.memo(function({targetSize:e,size:t,bounds:r}){return n.createElement(n.Fragment,null,n.createElement(e8,{targetSize:e,size:t,bounds:r,side:"top"}),n.createElement(e8,{targetSize:e,size:t,bounds:r,side:"right"}),n.createElement(e8,{targetSize:e,size:t,bounds:r,side:"bottom"}),n.createElement(e8,{targetSize:e,size:t,bounds:r,side:"left"}),n.createElement(e8,{targetSize:e,size:t,bounds:r,side:"topLeft"}),n.createElement(e8,{targetSize:e,size:t,bounds:r,side:"topRight"}),n.createElement(e8,{targetSize:e,size:t,bounds:r,side:"bottomLeft"}),n.createElement(e8,{targetSize:e,size:t,bounds:r,side:"bottomRight"}))}),e7={top_left_corner:"tl-cursor-nwse",top_right_corner:"tl-cursor-nesw",bottom_right_corner:"tl-cursor-nwse",bottom_left_corner:"tl-cursor-nesw"},te=n.memo(function({size:e,targetSize:t,isHidden:r,corner:i,bounds:o}){let a=eG(i),s="top_left_corner"===i||"top_right_corner"===i,l="top_left_corner"===i||"bottom_left_corner"===i;return n.createElement("g",{opacity:r?0:1},n.createElement("rect",eP({className:"tl-transparent "+(r?"":e7[i]),"aria-label":"corner transparent",x:(l?-1:o.width+1)-t,y:(s?-1:o.height+1)-t,width:2*t,height:2*t,pointerEvents:r?"none":"all"},a)),n.createElement("rect",{className:"tl-corner-handle","aria-label":"corner handle",x:(l?-1:o.width+1)-e/2,y:(s?-1:o.height+1)-e/2,width:e,height:e,pointerEvents:"none"}))}),tt={top_edge:"tl-cursor-ns",right_edge:"tl-cursor-ew",bottom_edge:"tl-cursor-ns",left_edge:"tl-cursor-ew"},tr=n.memo(function({size:e,isHidden:t,bounds:r,edge:i}){let o=eG(i),a="top_edge"===i||"bottom_edge"===i,s="right_edge"===i||"bottom_edge"===i,{height:l,width:u}=r;return n.createElement("rect",eP({pointerEvents:t?"none":"all",className:"tl-transparent tl-edge-handle "+(t?"":tt[i]),"aria-label":`${i} handle`,opacity:t?0:1,x:a?e/2:(s?u+1:-1)-e/2,y:a?(s?l+1:-1)-e/2:e/2,width:a?Math.max(0,u+1-e):e,height:a?e:Math.max(0,l+1-e)},o))}),tn=n.memo(function({size:e,bounds:t,isHidden:r}){let i=eG("left"),o=eG("center"),a=eG("right");return n.createElement("g",{cursor:"grab",transform:`translate(${t.width/2-4*e}, ${t.height+2*e})`,"aria-label":"link handle"},n.createElement("g",{className:"tl-transparent",pointerEvents:r?"none":"all"},n.createElement("rect",eP({x:0,y:0,width:2*e,height:2*e},i)),n.createElement("rect",eP({x:3*e,y:0,width:2*e,height:2*e},o)),n.createElement("rect",eP({x:6*e,y:0,width:2*e,height:2*e},a))),n.createElement("g",{className:"tl-rotate-handle",transform:`translate(${e/2}, ${e/2})`,"aria-label":"link rotate handle"},n.createElement("path",{d:`M 0,${e/2} L ${e},${e} ${e},0 Z`,pointerEvents:"none",opacity:r?0:1}),n.createElement("path",{transform:`translate(${3*e}, 0)`,d:`M 0,0 L ${e},0 ${e/2},${e} Z`,pointerEvents:"none",opacity:r?0:1}),n.createElement("path",{transform:`translate(${6*e}, 0)`,d:`M ${e},${e/2} L 0,0 0,${e} Z`,pointerEvents:"none",opacity:r?0:1})))}),ti=n.memo(function({bounds:e,targetSize:t,size:r,isHidden:i}){let o=eG("rotate");return n.createElement("g",{cursor:"grab",opacity:i?0:1},n.createElement("circle",eP({className:"tl-transparent","aria-label":"rotate handle transparent",cx:e.width/2,cy:-2*r,r:t,pointerEvents:i?"none":"all"},o)),n.createElement("circle",{className:"tl-rotate-handle","aria-label":"rotate handle",cx:e.width/2,cy:-2*r,r:r/2,pointerEvents:"none"}))}),to=n.memo(function({zoom:e,bounds:t,viewportWidth:r,rotation:i,isHidden:o,isLocked:a,hideCloneHandles:s,hideResizeHandles:l,hideRotateHandle:u,hideBindingHandles:c}){let d=(r<768?16:8)/e,h=8/e,p=Math.min(t.width,t.height)*e,f=!u&&!o&&!a&&p>32,m=!o&&!a&&p>24,g=!o&&!a&&p>20;return n.createElement(eJ,{bounds:t,rotation:i},n.createElement(e5,null,n.createElement(e4,{bounds:t,isLocked:a,isHidden:o}),l||a?null:n.createElement(n.Fragment,null,n.createElement(tr,{targetSize:d,size:h,bounds:t,edge:"top_edge",isHidden:!m}),n.createElement(tr,{targetSize:d,size:h,bounds:t,edge:"right_edge",isHidden:!m}),n.createElement(tr,{targetSize:d,size:h,bounds:t,edge:"bottom_edge",isHidden:!m}),n.createElement(tr,{targetSize:d,size:h,bounds:t,edge:"left_edge",isHidden:!m}),n.createElement(te,{targetSize:d,size:h,bounds:t,isHidden:o||!g,corner:"top_left_corner"}),n.createElement(te,{targetSize:d,size:h,bounds:t,isHidden:o||!g,corner:"top_right_corner"}),n.createElement(te,{targetSize:d,size:h,bounds:t,isHidden:o||!g,corner:"bottom_right_corner"}),n.createElement(te,{targetSize:d,size:h,bounds:t,isHidden:o||!g,corner:"bottom_left_corner"})),f&&n.createElement(ti,{targetSize:d,size:h,bounds:t,isHidden:!m}),!s&&p>24&&n.createElement(e9,{bounds:t,targetSize:d,size:h}),!c&&n.createElement(tn,{targetSize:d,size:h,bounds:t,isHidden:!m})))}),ta=n.memo(function({bounds:e,rotation:t,isHidden:r}){let i=function(){let{callbacks:e,inputs:t}=eI();return n.useMemo(()=>({onPointerDown:r=>{var n,i,o,a;if(r.dead||(r.dead=!0,!t.pointerIsValid(r)))return;if(2===r.button){null==(n=e.onRightPointBounds)||n.call(e,t.pointerDown(r,"bounds"),r);return}let s=t.pointerDown(r,"bounds");null==(i=r.currentTarget)||i.setPointerCapture(r.pointerId),0===r.button&&(null==(o=e.onPointBounds)||o.call(e,s,r)),null==(a=e.onPointerDown)||a.call(e,s,r)},onPointerUp:r=>{var n,i,o,a;if(r.dead||(r.dead=!0,2===r.button)||(t.activePointer=void 0,!t.pointerIsValid(r)))return;let s=t.isDoubleClick(),l=t.pointerUp(r,"bounds");r.currentTarget.hasPointerCapture(r.pointerId)&&(null==(n=r.currentTarget)||n.releasePointerCapture(r.pointerId)),0===r.button&&(s&&!(l.altKey||l.metaKey)&&(null==(i=e.onDoubleClickBounds)||i.call(e,l,r)),null==(o=e.onReleaseBounds)||o.call(e,l,r)),null==(a=e.onPointerUp)||a.call(e,l,r)},onPointerMove:r=>{var n,i;if(r.dead||(r.dead=!0,!t.pointerIsValid(r)))return;1===r.buttons&&r.currentTarget.hasPointerCapture(r.pointerId)&&(null==(n=e.onDragBounds)||n.call(e,t.pointerMove(r,"bounds"),r));let o=t.pointerMove(r,"bounds");null==(i=e.onPointerMove)||i.call(e,o,r)},onPointerEnter:r=>{var n;t.pointerIsValid(r)&&null!=(n=e.onHoverBounds)&&n.call(e,t.pointerEnter(r,"bounds"),r)},onPointerLeave:r=>{var n;t.pointerIsValid(r)&&null!=(n=e.onUnhoverBounds)&&n.call(e,t.pointerEnter(r,"bounds"),r)}}),[t,e])}();return n.createElement(eJ,{bounds:e,rotation:t},n.createElement(e5,null,n.createElement("rect",eP({className:"tl-bounds-bg","aria-label":"bounds bg",width:e.width,height:e.height,opacity:r?0:1},i))))}),ts=n.memo(function({id:e,point:t}){let r=function(e){let{inputs:t,callbacks:r}=eI();return n.useMemo(()=>({onPointerDown:n=>{var i,o,a;if(n.dead||(n.dead=!0,!t.pointerIsValid(n))||2===n.button)return;null==(i=n.currentTarget)||i.setPointerCapture(n.pointerId);let s=t.pointerDown(n,e);0===n.button&&(null==(o=r.onPointHandle)||o.call(r,s,n)),null==(a=r.onPointerDown)||a.call(r,s,n)},onPointerUp:n=>{var i,o,a,s;if(n.dead||(n.dead=!0,!t.pointerIsValid(n))||2===n.button)return;let l=t.isDoubleClick(),u=t.pointerUp(n,e);n.currentTarget.hasPointerCapture(n.pointerId)&&(null==(i=n.currentTarget)||i.releasePointerCapture(n.pointerId),0===n.button&&(l&&!(u.altKey||u.metaKey)&&(null==(o=r.onDoubleClickHandle)||o.call(r,u,n)),null==(a=r.onReleaseHandle)||a.call(r,u,n))),null==(s=r.onPointerUp)||s.call(r,u,n)},onPointerMove:n=>{var i,o;if(n.dead||(n.dead=!0,!t.pointerIsValid(n))||2===n.buttons)return;let a=t.pointerMove(n,e);1===n.buttons&&n.currentTarget.hasPointerCapture(n.pointerId)&&(null==(i=r.onDragHandle)||i.call(r,a,n)),null==(o=r.onPointerMove)||o.call(r,a,n)},onPointerEnter:n=>{var i;if(!t.pointerIsValid(n))return;let o=t.pointerEnter(n,e);null==(i=r.onHoverHandle)||i.call(r,o,n)},onPointerLeave:n=>{var i;if(!t.pointerIsValid(n))return;let o=t.pointerEnter(n,e);null==(i=r.onUnhoverHandle)||i.call(r,o,n)}}),[t,r,e])}(e);return n.createElement(eJ,{bounds:eV.translateBounds({minX:0,minY:0,maxX:0,maxY:0,width:0,height:0},t)},n.createElement(e5,null,n.createElement("g",eP({className:"tl-handle","aria-label":"handle"},r),n.createElement("circle",{className:"tl-handle-bg",pointerEvents:"all"}),n.createElement("circle",{className:"tl-counter-scaled tl-handle",pointerEvents:"none",r:4}))))}),tl=n.memo(function({shape:e,zoom:t}){if(void 0===e.handles)return null;let r=null,o=Object.values(e.handles).reduce((n,o)=>{let a=i.l.add(o.point,e.point);return(!r||i.l.dist(a,r)*t>=32)&&(n.push(o),r=a),n},[]);return 1===o.length?null:n.createElement(n.Fragment,null,o.map(t=>n.createElement(ts,{key:e.id+"_"+t.id,id:t.id,point:i.l.add(t.point,e.point)})))}),tu=n.memo(function(e){let t=e.utils.getRef(e.shape);return n.createElement(e.utils.Component,eP({ref:t},e))},(e,t)=>e.isHovered===t.isHovered&&e.isSelected===t.isSelected&&e.isEditing===t.isEditing&&e.isBinding===t.isBinding&&e.isGhost===t.isGhost&&e.meta===t.meta&&(t.shape===e.shape||!t.utils.shouldRender(t.shape,e.shape))),tc=n.memo(function(e){var{shape:t,utils:r,meta:i}=e,o=eM(e,["shape","utils","meta"]);let{callbacks:a}=eI(),s=r.getBounds(t),l=function(e){let{rPageState:t,rSelectionBounds:r,callbacks:i,inputs:o}=n.useContext(eF);return n.useMemo(()=>({onPointerDown:n=>{var a,s,l,u,c,d,h;if(n.dead||(n.dead=!0,!o.pointerIsValid(n)))return;if(2===n.button){null==(a=i.onRightPointShape)||a.call(i,o.pointerDown(n,e),n);return}let p=o.pointerDown(n,e);if(null==(s=n.currentTarget)||s.setPointerCapture(n.pointerId),r.current&&eV.pointInBounds(p.point,r.current)&&!t.current.selectedIds.includes(e)){0===n.button&&(null==(l=i.onPointBounds)||l.call(i,o.pointerDown(n,"bounds"),n),null==(u=i.onPointShape)||u.call(i,p,n)),null==(c=i.onPointerDown)||c.call(i,p,n);return}0===n.button&&(null==(d=i.onPointShape)||d.call(i,p,n)),null==(h=i.onPointerDown)||h.call(i,p,n)},onPointerUp:t=>{var r,n,a,s;if(t.dead||(t.dead=!0,!o.pointerIsValid(t))||2===t.button)return;o.activePointer=void 0;let l=o.isDoubleClick(),u=o.pointerUp(t,e);t.pointerId&&t.currentTarget.hasPointerCapture(t.pointerId)&&(null==(r=t.currentTarget)||r.releasePointerCapture(t.pointerId)),0===t.button&&(l&&!(u.altKey||u.metaKey)&&(null==(n=i.onDoubleClickShape)||n.call(i,u,t)),null==(a=i.onReleaseShape)||a.call(i,u,t)),null==(s=i.onPointerUp)||s.call(i,u,t)},onPointerMove:t=>{var r,n;if(t.dead||(t.dead=!0,2===t.buttons||!o.pointerIsValid(t)||o.pointer&&t.pointerId!==o.pointer.pointerId))return;let a=o.pointerMove(t,e);1===t.buttons&&t.currentTarget.hasPointerCapture(t.pointerId)&&(null==(r=i.onDragShape)||r.call(i,a,t)),null==(n=i.onPointerMove)||n.call(i,a,t)},onPointerEnter:t=>{var r;if(!o.pointerIsValid(t))return;let n=o.pointerEnter(t,e);null==(r=i.onHoverShape)||r.call(i,n,t)},onPointerLeave:t=>{var r;if(!o.pointerIsValid(t))return;let n=o.pointerEnter(t,e);null==(r=i.onUnhoverShape)||r.call(i,n,t)}}),[o,i,e])}(t.id);return n.createElement(eJ,{id:t.id,bounds:s,rotation:t.rotation,"data-shape":t.type,isGhost:o.isGhost,isSelected:o.isSelected},n.createElement(tu,eP({shape:t,utils:r,meta:i,events:l,bounds:s,onShapeChange:a.onShapeChange,onShapeBlur:a.onShapeBlur},o)))}),td=n.memo(function(e){var{shape:t,utils:r,meta:i,children:o}=e,a=eM(e,["shape","utils","meta","children"]);return n.createElement(n.Fragment,null,n.createElement(tc,eP({shape:t,utils:r[t.type],meta:i},a)),o&&o.map(e=>n.createElement(td,eP({key:e.shape.id,utils:r},e))))}),th=n.memo(function({isHovered:e=!1,isSelected:t=!1,isEditing:r=!1,shape:i,user:o,meta:a}){let{shapeUtils:s}=eI(),l=s[i.type],u=l.getBounds(i),c=eX(u,i.rotation);return n.createElement("div",{ref:c,draggable:!1,className:["tl-indicator","tl-absolute",t&&!o?"tl-selected":"tl-hovered",r?"tl-editing":"",i.isLocked?"tl-locked":""].join(" ")},n.createElement("svg",{width:"100%",height:"100%"},n.createElement("g",{className:"tl-centered-g",stroke:null==o?void 0:o.color},n.createElement(l.Indicator,{shape:i,meta:a,user:o,bounds:u,isSelected:t,isHovered:e}))))}),tp=n.memo(function({page:e,pageState:t,assets:r,hideBounds:o,hideHandles:a,hideIndicators:s,hideBindingHandles:l,hideCloneHandles:u,hideRotateHandle:c,hideResizeHandles:d,meta:h}){let{bounds:p,shapeUtils:f}=eI(),m=function(e,t,r,o){let{callbacks:a,shapeUtils:s,bounds:l}=eI(),u=n.useRef(),c=n.useRef(-1),d=n.useRef(new Set),h=n.useRef(new Set),{selectedIds:p,camera:f}=t,[m,g]=i.l.sub(i.l.div([0,0],f.zoom),f.point),[v,y]=i.l.sub(i.l.div([l.width,l.height],f.zoom),f.point),b={minX:m,minY:g,maxX:v,maxY:y,height:v-m,width:y-g},w=h.current,k=d.current;w.clear(),k.clear(),Object.values(e.shapes).filter(e=>{var t;return s[e.type].isStateful||p.includes(e.id)||(t=s[e.type].getBounds(e),eV.boundsContain(b,t)||eV.boundsCollide(b,t))}).forEach(t=>{if(t.parentId===e.id){k.add(t.id),w.add(t);return}let r=e.shapes[t.parentId];if(void 0===r)throw Error(`A shape (${t.id}) has a parent (${t.parentId}) that does not exist!`);k.add(r.id),w.add(r)}),w.size!==c.current&&(u.current&&clearTimeout(u.current),u.current=requestAnimationFrame(()=>{var e;null==(e=a.onRenderCountChange)||e.call(a,Array.from(k.values()))}),c.current=w.size);let x=t.bindingId?e.bindings[t.bindingId].toId:void 0,_=[];return w.forEach(n=>{if(void 0===n)throw Error("Rendered shapes included a missing shape");(function e(t,r,n,i,o,a=!1,s=!1,l){let u={shape:t,asset:t.assetId?o[t.assetId]:void 0,meta:l,isChildOfSelected:s,isGhost:t.isGhost||a,isEditing:i.editingId===t.id,isBinding:i.bindingTargetId===t.id,isSelected:i.selectedIds.includes(t.id),isHovered:i.hoveredId===t.id||void 0!==t.children&&(i.hoveredId&&t.children.includes(i.hoveredId)||t.children.some(e=>i.selectedIds.includes(e)))};r.push(u),t.children&&(u.children=[],t.children.map(e=>n[e]).filter(e=>n[e.id]).sort((e,t)=>e.childIndex-t.childIndex).forEach(t=>e(t,u.children,n,i,o,u.isGhost,u.isSelected||u.isChildOfSelected,l)))})(n,_,e.shapes,eR(eP({},t),{bindingTargetId:x}),r,n.isGhost,!1,o)}),_.sort((e,t)=>e.shape.childIndex-t.shape.childIndex),_}(e,t,r,h),{bounds:g,isLinked:v,isLocked:y,rotation:b}=function(e,t,r){let{rSelectionBounds:i}=eI(),{selectedIds:o}=t,a=n.useRef(),s,l=0,u=!1,c=!1;if(1===o.length){let t=o[0],n=e.shapes[t];if(!n)throw Error(`selectedIds is set to the id of a shape that doesn't exist: ${t}`);l=n.rotation||0,u=n.isLocked||!1;let i=r[n.type];s=i.hideBounds?void 0:i.getBounds(n)}else if(o.length>1){let t=o.map(t=>e.shapes[t]);l=0,u=t.every(e=>e.isLocked),s=t.reduce((e,t,n)=>0===n?r[t.type].getRotatedBounds(t):eV.getExpandedBounds(e,r[t.type].getRotatedBounds(t)),{})}if(s){let[r,n]=eK([s.minX,s.minY],t.camera),[a,l]=eK([s.maxX,s.maxY],t.camera);c=!!Object.values(e.bindings).find(e=>o.includes(e.toId)||o.includes(e.fromId)),i.current={minX:r,minY:n,maxX:a,maxY:l,width:a-r,height:l-n}}else i.current=null;let d=a.current;return d&&s?s&&d.minX===s.minX&&d.minY===s.minY&&d.maxX===s.maxX&&d.maxY===s.maxY&&(s=a.current):a.current=s,{bounds:s,rotation:l,isLocked:u,isLinked:c}}(e,t,f),{selectedIds:w,hoveredId:k,editingId:x,camera:{zoom:_}}=t,S=s,E=!0,C=!1,D,A=w.map(t=>e.shapes[t]);if(1===A.length){let e=A[0];(C=x===e.id)&&(S=!0);let t=f[e.type];E=u||!t.showCloneHandles,void 0===e.handles||C||(D=e)}return n.createElement(n.Fragment,null,g&&n.createElement(ta,{bounds:g,rotation:b,isHidden:o}),m.map(e=>n.createElement(td,eP({key:e.shape.id,utils:f},e))),!S&&A.map(e=>n.createElement(th,{key:"selected_"+e.id,shape:e,meta:h,isSelected:!0,isEditing:C})),!S&&k&&k!==x&&n.createElement(th,{key:"hovered_"+k,shape:e.shapes[k],meta:h,isHovered:!0}),g&&n.createElement(to,{zoom:_,bounds:g,viewportWidth:p.width,isLocked:y,rotation:b,isHidden:o,hideRotateHandle:c,hideResizeHandles:d,hideBindingHandles:l||!v,hideCloneHandles:E}),!a&&D&&n.createElement(tl,{shape:D,zoom:_}))}),tf=n.memo(function({snapLine:e}){let t=eV.getBoundsFromPoints(e);return n.createElement(n.Fragment,null,n.createElement("line",{className:"tl-snap-line",x1:t.minX,y1:t.minY,x2:t.maxX,y2:t.maxY}),e.map(([e,t],r)=>n.createElement("use",{key:r,href:"#tl-snap-point",x:e,y:t})))}),tm=n.memo(function({snapLines:e}){return n.createElement(n.Fragment,null,e.map((e,t)=>n.createElement(tf,{key:t,snapLine:e})))});function tg({user:e}){let t=n.useRef(null);return n.useLayoutEffect(()=>{t.current&&(t.current.style.transform=`translate(${e.point[0]}px, ${e.point[1]}px)`)},[e.point]),n.createElement("svg",{ref:t,className:`tl-absolute tl-user tl-counter-scaled ${e.session?"":"tl-animated"}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 35 35",fill:"none",fillRule:"evenodd"},n.createElement("g",{fill:"rgba(0,0,0,.2)",transform:"translate(1,1)"},n.createElement("path",{d:"m12 24.4219v-16.015l11.591 11.619h-6.781l-.411.124z"}),n.createElement("path",{d:"m21.0845 25.0962-3.605 1.535-4.682-11.089 3.686-1.553z"})),n.createElement("g",{fill:"white"},n.createElement("path",{d:"m12 24.4219v-16.015l11.591 11.619h-6.781l-.411.124z"}),n.createElement("path",{d:"m21.0845 25.0962-3.605 1.535-4.682-11.089 3.686-1.553z"})),n.createElement("g",{fill:e.color},n.createElement("path",{d:"m19.751 24.4155-1.844.774-3.1-7.374 1.841-.775z"}),n.createElement("path",{d:"m13 10.814v11.188l2.969-2.866.428-.139h4.768z"})))}function tv({userId:e,users:t}){return n.createElement(n.Fragment,null,Object.values(t).filter(t=>t&&t.id!==e).map(e=>n.createElement(tg,{key:e.id,user:e})))}function ty({userId:e,users:t,meta:r,page:i}){let{shapeUtils:o}=eI();return n.createElement(n.Fragment,null,Object.values(t).filter(Boolean).filter(t=>t.id!==e&&t.selectedIds.length>0).map(e=>{let t=e.selectedIds.map(e=>i.shapes[e]).filter(Boolean);if(0===t.length)return null;let a=eV.getCommonBounds(t.map(e=>o[e.type].getBounds(e)));return n.createElement(n.Fragment,{key:e.id+"_shapes"},n.createElement("div",{className:"tl-absolute tl-user-indicator-bounds",style:{backgroundColor:e.color+"0d",borderColor:e.color+"78",transform:`translate(${a.minX}px, ${a.minY}px)`,width:a.width,height:a.height,pointerEvents:"none"}}),t.map(t=>n.createElement(th,{key:`${e.id}_${t.id}_indicator`,shape:t,user:e,meta:r,isHovered:!0})))}))}var tb=e=>{let t=e.parentElement;for(;t&&t!==document.body;){let{overflowY:e}=window.getComputedStyle(t);if(t.scrollHeight>t.clientHeight&&("auto"===e||"scroll"===e||"overlay"===e))return t;t=t.parentElement}return document},tw=n.memo(function({id:e,page:t,pageState:r,assets:o,snapLines:a,eraseLine:s,grid:l,users:u,userId:c,meta:d,performanceMode:h,externalContainerRef:p,showDashedBrush:f,hideHandles:m,hideBounds:g,hideIndicators:v,hideBindingHandles:y,hideCloneHandles:b,hideResizeHandles:w,hideRotateHandle:k,hideGrid:x,onBoundsChange:_}){let S,E,C=n.useRef(null),D=n.useRef(r.camera.zoom);D.current=r.camera.zoom,function(e,t){var r,o;let a=n.useRef(void 0),s=n.useRef(void 0),l=n.useRef([0,0]),{inputs:u,bounds:c,callbacks:d}=eI();n.useEffect(()=>{let e=e=>e.preventDefault();return document.addEventListener("gesturestart",e),document.addEventListener("gesturechange",e),()=>{document.removeEventListener("gesturestart",e),document.removeEventListener("gesturechange",e)}},[]),r={onWheel:n.useCallback(({event:e})=>{var t,r,n,o;if(e.preventDefault(),u.isPinching)return;let[a,s,l]=function(e){let{deltaY:t,deltaX:r}=e,n=0;if(e.ctrlKey||e.metaKey){let r=Math.sign(e.deltaY),i=Math.abs(e.deltaY),o=t;i>10&&(o=10*r),n=o}return[r,t,n]}(e);if((e.altKey||e.ctrlKey||e.metaKey)&&0===e.buttons){let i=[...null!=(r=null==(t=u.pointer)?void 0:t.point)?r:[c.width/2,c.height/2],.618*l],o=u.pan(i,e);null==(n=d.onZoom)||n.call(d,eR(eP({},o),{delta:i}),e);return}let h=i.l.mul(e.shiftKey&&!eV.isDarwin?[s,0]:[a,s],.5);if(i.l.isEqual(h,[0,0]))return;let p=u.pan(h,e);null==(o=d.onPan)||o.call(d,p,e)},[d,u,c]),onPinchStart:n.useCallback(({origin:e,event:r})=>{var n;if(r instanceof WheelEvent)return;let i=t.current;if(!i||!(r.target===i||i.contains(r.target)))return;let o=u.pinch(e,e);u.isPinching=!0,null==(n=d.onPinchStart)||n.call(d,o,r),s.current=o.point,a.current=o.origin,l.current=[0,0]},[d,u,c]),onPinch:n.useCallback(({origin:e,offset:r,event:n})=>{var o;if(n instanceof WheelEvent)return;let c=t.current;if(!(n.target===c||(null==c?void 0:c.contains(n.target)))||!a.current)return;let h=u.pinch(e,a.current),p=i.l.sub(h.delta,l.current);l.current=h.delta,null==(o=d.onPinch)||o.call(d,eR(eP({},h),{point:h.point,origin:a.current,delta:[...p,r[0]]}),n),s.current=e},[d,u,c]),onPinchEnd:n.useCallback(({origin:e,event:r})=>{var n;let i=t.current;if(!(r.target===i||(null==i?void 0:i.contains(r.target))))return;let o=u.pinch(e,e);u.isPinching=!1,null==(n=d.onPinchEnd)||n.call(d,o,r),s.current=void 0,a.current=void 0,l.current=[0,0]},[])},o={target:t,eventOptions:{passive:!1},pinch:{from:[e.current,0],scaleBounds:()=>({from:e.current,max:5,min:.1})}},([X,Z,ee,et,Q,J].forEach(K),function(e,t){let{handlers:r,nativeHandlers:i,config:o}=function(e,t){let[r,n,i]=function(e){let t={},r={},n=new Set;for(let i in e)ec.test(i)?(n.add(RegExp.lastMatch),r[i]=e[i]):t[i]=e[i];return[r,t,n]}(e),o={};return ed(i,r,"onDrag","drag",o,t),ed(i,r,"onWheel","wheel",o,t),ed(i,r,"onScroll","scroll",o,t),ed(i,r,"onPinch","pinch",o,t),ed(i,r,"onMove","move",o,t),ed(i,r,"onHover","hover",o,t),{handlers:o,config:t,nativeHandlers:n}}(e,t||{});return function(e,t={},r,i){let o=n.useMemo(()=>new es(e),[]);if(o.applyHandlers(e,i),o.applyConfig(t,r),n.useEffect(o.effect.bind(o)),n.useEffect(()=>o.clean.bind(o),[]),void 0===t.target)return o.bind.bind(o)}(r,o,void 0,i)})(r,o||{})}(D,p||C),function(e,t){let{inputs:r,callbacks:i}=eI(),o=n.useRef(!1),a=n.useCallback(()=>{var n,a;if(o.current){let o=null==(n=e.current)?void 0:n.getBoundingClientRect();if(o){let e={minX:o.left,maxX:o.left+o.width,minY:o.top,maxY:o.top+o.height,width:o.width,height:o.height};r.bounds=e,t(e),null==(a=i.onBoundsChange)||a.call(i,e)}}else o.current=!0},[e,r,i.onBoundsChange]);n.useEffect(()=>{let t=e.current?tb(e.current):document,r=eV.debounce(a,100);return t.addEventListener("scroll",r),window.addEventListener("resize",r),()=>{t.removeEventListener("scroll",r),window.removeEventListener("resize",r)}},[]),n.useEffect(()=>{let t=new ResizeObserver(e=>{r.isPinching||e[0].contentRect&&a()});return e.current&&t.observe(e.current),()=>{t.disconnect()}},[e,r]),n.useEffect(()=>{a()},[e])}(C,_),function(){let{callbacks:e}=eI();(0,n.useEffect)(()=>{function t(){var t;null==(t=e.onShapeBlur)||t.call(e)}return eV.isMobileSafari()?(document.addEventListener("focusout",t),()=>document.removeEventListener("focusout",t)):()=>null},[e])}(),function(e){let{bounds:t}=eI();n.useEffect(()=>{let r=e=>{e.preventDefault()},n=e=>{let r=e.touches[0].pageX,n=e.touches[0].radiusX||0;(r-n<10||r+n>t.width-10)&&e.preventDefault()},i=e.current;return i?(i.addEventListener("gestureend",r),i.addEventListener("gesturechange",r),i.addEventListener("gesturestart",r),i.addEventListener("touchstart",n),()=>{i&&(i.removeEventListener("gestureend",r),i.removeEventListener("gesturechange",r),i.removeEventListener("gesturestart",r),i.removeEventListener("touchstart",n))}):()=>{}},[e,t.width])}(C);let A=n.useRef(null),j=n.useRef(null);S=n.useRef(),E=n.useRef(),n.useLayoutEffect(()=>{let{zoom:e,point:t}=r.camera,n=e!==S.current,i=t!==E.current;if(S.current=e,E.current=t,n||i){let r=j.current;if(A&&"current"in A){let i=A.current;n&&i&&i.style.setProperty("--tl-zoom",e.toString()),r&&r.style.setProperty("transform",`scale(${e}) translateX(${t[0]}px) translateY(${t[1]}px)`)}}},[r.camera.zoom,r.camera.point]),n.useLayoutEffect(()=>{if(A&&"current"in A){let e=null==A?void 0:A.current;if(e)switch(h){case"transform_selected":e.style.setProperty("--tl-performance-all","auto"),e.style.setProperty("--tl-performance-selected","transform, contents");break;case"transform_all":e.style.setProperty("--tl-performance-all","transform, contents"),e.style.setProperty("--tl-performance-selected","transform, contents");break;case"translate_selected":e.style.setProperty("--tl-performance-all","auto"),e.style.setProperty("--tl-performance-selected","transform");break;case"translate_all":e.style.setProperty("--tl-performance-all","transform"),e.style.setProperty("--tl-performance-selected","transform");break;default:e.style.setProperty("--tl-performance-all","auto"),e.style.setProperty("--tl-performance-selected","auto")}}},[h]),function(){let{inputs:e,callbacks:t}=eI();n.useEffect(()=>{let r=r=>{var n;null==(n=t.onKeyDown)||n.call(t,r.key,e.keydown(r),r)},n=r=>{var n;e.keyup(r),null==(n=t.onKeyUp)||n.call(t,r.key,e.keyup(r),r)};return window.addEventListener("keydown",r),window.addEventListener("keyup",n),()=>{window.removeEventListener("keydown",r),window.removeEventListener("keyup",n)}},[e,t])}();let O=function(){let{callbacks:e,inputs:t}=eI();return n.useMemo(()=>({onPointerDown:r=>{var n,i;if(r.dead||(r.dead=!0,!t.pointerIsValid(r))||2===r.button)return;r.currentTarget.setPointerCapture(r.pointerId);let o=t.pointerDown(r,"canvas");0===r.button&&(null==(n=e.onPointCanvas)||n.call(e,o,r)),null==(i=e.onPointerDown)||i.call(e,o,r)},onPointerMove:r=>{var n,i;if(r.dead||(r.dead=!0,!t.pointerIsValid(r)))return;let o=t.pointerMove(r,"canvas");1===r.buttons&&r.currentTarget.hasPointerCapture(r.pointerId)&&(null==(n=e.onDragCanvas)||n.call(e,o,r)),null==(i=e.onPointerMove)||i.call(e,o,r)},onPointerUp:r=>{var n,i,o,a;if(r.dead||(r.dead=!0,t.activePointer=void 0,!t.pointerIsValid(r))||2===r.button)return;let s=t.pointerUp(r,"canvas"),l=t.isDoubleClick();r.currentTarget.hasPointerCapture(r.pointerId)&&(null==(n=r.currentTarget)||n.releasePointerCapture(r.pointerId)),0===r.button&&(l&&!(s.altKey||s.metaKey)&&(null==(i=e.onDoubleClickCanvas)||i.call(e,s,r)),null==(o=e.onReleaseCanvas)||o.call(e,s,r)),null==(a=e.onPointerUp)||a.call(e,s,r)},onDrop:e.onDrop,onDragOver:e.onDragOver}),[e,t])}();return n.createElement("div",{id:e,className:"tl-container",ref:A},n.createElement("div",eP({id:"canvas",className:"tl-absolute tl-canvas",ref:C},O),!x&&l&&n.createElement(e2,{grid:l,camera:r.camera}),n.createElement("div",{ref:j,className:"tl-absolute tl-layer","data-testid":"layer"},n.createElement(tp,{page:t,pageState:r,assets:o,hideBounds:g,hideIndicators:v,hideHandles:m,hideBindingHandles:y,hideCloneHandles:b,hideResizeHandles:w,hideRotateHandle:k,meta:d}),u&&c&&n.createElement(ty,{userId:c,users:u,page:t,meta:d}),r.brush&&n.createElement(eQ,{brush:r.brush,dashed:f,zoom:r.camera.zoom}),u&&n.createElement(tv,{userId:c,users:u})),n.createElement(e3,{camera:r.camera},s&&n.createElement(e0,{points:s,zoom:r.camera.zoom}),a&&n.createElement(tm,{snapLines:a}))))}),tk=class{constructor(){eN(this,"pointer"),eN(this,"keyboard"),eN(this,"keys",{}),eN(this,"isPinching",!1),eN(this,"bounds",{minX:0,maxX:640,minY:0,maxY:480,width:640,height:480}),eN(this,"pointerUpTime",0),eN(this,"activePointer"),eN(this,"panStart",e=>{var t,r;let{shiftKey:n,ctrlKey:i,metaKey:o,altKey:a}=e,s={target:"wheel",pointerId:(null==(t=this.pointer)?void 0:t.pointerId)||0,origin:(null==(r=this.pointer)?void 0:r.origin)||[0,0],delta:[0,0],pressure:.5,point:tk.getPoint(e,this.bounds),shiftKey:n,ctrlKey:i,metaKey:o,altKey:a,spaceKey:this.keys[" "]};return this.pointer=s,s}),eN(this,"pan",(e,t)=>{if(!this.pointer||"wheel"!==this.pointer.target)return this.panStart(t);let{shiftKey:r,ctrlKey:n,metaKey:i,altKey:o}=t,a=this.pointer,s=tk.getPoint(t,this.bounds),l=eR(eP({},a),{target:"wheel",delta:e,point:s,shiftKey:r,ctrlKey:n,metaKey:i,altKey:o,spaceKey:this.keys[" "]});return this.pointer=l,l}),eN(this,"keydown",e=>{var t,r;let{shiftKey:n,ctrlKey:i,metaKey:o,altKey:a}=e;return this.keys[e.key]=!0,{point:(null==(t=this.pointer)?void 0:t.point)||[0,0],origin:(null==(r=this.pointer)?void 0:r.origin)||[0,0],key:e.key,keys:Object.keys(this.keys),shiftKey:n,ctrlKey:i,metaKey:eV.isDarwin()?o:i,altKey:a}}),eN(this,"keyup",e=>{var t,r;let{shiftKey:n,ctrlKey:i,metaKey:o,altKey:a}=e;return delete this.keys[e.key],{point:(null==(t=this.pointer)?void 0:t.point)||[0,0],origin:(null==(r=this.pointer)?void 0:r.origin)||[0,0],key:e.key,keys:Object.keys(this.keys),shiftKey:n,ctrlKey:i,metaKey:eV.isDarwin()?o:i,altKey:a}})}pointerIsValid(e){if("pointerId"in e&&this.activePointer&&this.activePointer!==e.pointerId)return!1;if("touches"in e){let t=e.changedTouches[0];if(this.activePointer&&this.activePointer!==t.identifier)return!1}return!0}touchStart(e,t){let{shiftKey:r,ctrlKey:n,metaKey:i,altKey:o}=e,a=e.changedTouches[0];this.activePointer=a.identifier;let s={target:t,pointerId:a.identifier,origin:tk.getPoint(a,this.bounds),delta:[0,0],point:tk.getPoint(a,this.bounds),pressure:tk.getPressure(a),shiftKey:r,ctrlKey:n,metaKey:eV.isDarwin()?i:n,altKey:o,spaceKey:this.keys[" "]};return this.pointer=s,s}touchEnd(e,t){let{shiftKey:r,ctrlKey:n,metaKey:i,altKey:o}=e,a=e.changedTouches[0],s={target:t,pointerId:a.identifier,origin:tk.getPoint(a,this.bounds),delta:[0,0],point:tk.getPoint(a,this.bounds),pressure:tk.getPressure(a),shiftKey:r,ctrlKey:n,metaKey:eV.isDarwin()?i:n,altKey:o,spaceKey:this.keys[" "]};return this.pointer=s,this.activePointer=void 0,s}touchMove(e,t){let{shiftKey:r,ctrlKey:n,metaKey:o,altKey:a}=e,s=e.changedTouches[0],l=this.pointer,u=tk.getPoint(s,this.bounds),c=(null==l?void 0:l.point)?i.l.sub(u,l.point):[0,0],d=eR(eP({origin:u},l),{target:t,pointerId:s.identifier,point:u,delta:c,pressure:tk.getPressure(s),shiftKey:r,ctrlKey:n,metaKey:eV.isDarwin()?o:n,altKey:a,spaceKey:this.keys[" "]});return this.pointer=d,d}pointerDown(e,t){let{shiftKey:r,ctrlKey:n,metaKey:i,altKey:o}=e,a=tk.getPoint(e,this.bounds);this.activePointer=e.pointerId;let s={target:t,pointerId:e.pointerId,origin:a,point:a,delta:[0,0],pressure:tk.getPressure(e),shiftKey:r,ctrlKey:n,metaKey:eV.isDarwin()?i:n,altKey:o,spaceKey:this.keys[" "]};return this.pointer=s,s}pointerEnter(e,t){let{shiftKey:r,ctrlKey:n,metaKey:i,altKey:o}=e,a=tk.getPoint(e,this.bounds),s={target:t,pointerId:e.pointerId,origin:a,delta:[0,0],point:a,pressure:tk.getPressure(e),shiftKey:r,ctrlKey:n,metaKey:eV.isDarwin()?i:n,altKey:o,spaceKey:this.keys[" "]};return this.pointer=s,s}pointerMove(e,t){let{shiftKey:r,ctrlKey:n,metaKey:o,altKey:a}=e,s=this.pointer,l=tk.getPoint(e,this.bounds),u=(null==s?void 0:s.point)?i.l.sub(l,s.point):[0,0],c=eR(eP({origin:l},s),{target:t,pointerId:e.pointerId,point:l,delta:u,pressure:tk.getPressure(e),shiftKey:r,ctrlKey:n,metaKey:eV.isDarwin()?o:n,altKey:a,spaceKey:this.keys[" "]});return this.pointer=c,c}pointerUp(e,t){let{shiftKey:r,ctrlKey:n,metaKey:o,altKey:a}=e,s=this.pointer,l=tk.getPoint(e,this.bounds),u=(null==s?void 0:s.point)?i.l.sub(l,s.point):[0,0];this.activePointer=void 0;let c=eR(eP({origin:l},s),{target:t,pointerId:e.pointerId,point:l,delta:u,pressure:tk.getPressure(e),shiftKey:r,ctrlKey:n,metaKey:eV.isDarwin()?o:n,altKey:a,spaceKey:this.keys[" "]});return this.pointer=c,this.pointerUpTime=performance.now(),c}isDoubleClick(){if(!this.pointer)return!1;let{origin:e,point:t}=this.pointer,r=performance.now()-this.pointerUpTime<250&&4>i.l.dist(e,t);return r&&(this.activePointer=void 0),r}clear(){this.pointer=void 0}resetDoubleClick(){this.pointerUpTime=0}pinch(e,t){let{shiftKey:r,ctrlKey:n,metaKey:o,altKey:a}=this.keys,s=i.l.sub(t,e),l={pointerId:0,target:"pinch",origin:t,delta:s,point:i.l.sub(i.l.toFixed(e),[this.bounds.minX,this.bounds.minY]),pressure:.5,shiftKey:r,ctrlKey:n,metaKey:eV.isDarwin()?o:n,altKey:a,spaceKey:this.keys[" "]};return this.pointer=l,l}reset(){this.pointerUpTime=0,this.pointer=void 0,this.keyboard=void 0,this.activePointer=void 0,this.keys={}}static getPoint(e,t){return[+e.clientX.toFixed(2)-t.minX,+e.clientY.toFixed(2)-t.minY]}static getPressure(e){return"pressure"in e&&+e.pressure.toFixed(2)||.5}static commandKey(){return eV.isDarwin()?"⌘":"Ctrl"}};new tk;var tx={},t_=n.memo(function(e){var t,r,{id:i="tl",shapeUtils:o,page:a,pageState:s,assets:l=tx,users:u,userId:c,theme:d,meta:h,snapLines:p,eraseLine:f,grid:m,containerRef:g,performanceMode:v,hideHandles:y=!1,hideIndicators:b=!1,hideCloneHandles:w=!1,hideBindingHandles:k=!1,hideResizeHandles:x=!1,hideRotateHandles:_=!1,hideBounds:S=!1,hideGrid:E=!0,showDashedBrush:C=!1}=e,D=eM(e,["id","shapeUtils","page","pageState","assets","users","userId","theme","meta","snapLines","eraseLine","grid","containerRef","performanceMode","hideHandles","hideIndicators","hideCloneHandles","hideBindingHandles","hideResizeHandles","hideRotateHandles","hideBounds","hideGrid","showDashedBrush"]);t="#"+i,function(e,t,r=":root"){n.useLayoutEffect(()=>{let e=document.createElement("style"),n=Object.keys(t).reduce((e,r)=>{let n=t[r];return n?e+`--tl-${r}: ${n}; `:e},"");return e.setAttribute("id","tl-theme"),e.setAttribute("data-selector",r),e.innerHTML=` ${r} { ${n} } `,document.head.appendChild(e),()=>{e&&document.head.contains(e)&&document.head.removeChild(e)}},["tl",t,r])}("tl",n.useMemo(()=>eP(eP({},eW),d),[d]),t),r="tl-canvas",n.useLayoutEffect(()=>{if(e$.get(r))return()=>{};let e=document.createElement("style");return e.innerHTML=eY,e.setAttribute("id",r),document.head.appendChild(e),e$.set(r,e),()=>{e&&document.head.contains(e)&&(document.head.removeChild(e),e$.delete(r))}},[r,eY]);let A=n.useRef(null),j=n.useRef(s);n.useEffect(()=>{j.current=s},[s]);let[O,T]=n.useState(()=>({callbacks:D,shapeUtils:o,rSelectionBounds:A,rPageState:j,bounds:{minX:0,minY:0,maxX:1/0,maxY:1/0,width:1/0,height:1/0},inputs:new tk})),P=n.useCallback(e=>{T(t=>eR(eP({},t),{bounds:e}))},[]);return n.createElement(eF.Provider,{value:O},n.createElement(tw,{id:i,page:a,pageState:s,assets:l,snapLines:p,eraseLine:f,grid:m,users:u,userId:c,externalContainerRef:g,hideBounds:S,hideIndicators:b,hideHandles:y,hideCloneHandles:w,hideBindingHandles:k,hideRotateHandle:_,hideResizeHandles:x,hideGrid:E,showDashedBrush:C,onBoundsChange:P,performanceMode:v,meta:h}))}),tS=n.memo(n.forwardRef(function(e,t){var{children:r,className:i=""}=e,o=eM(e,["children","className"]);return n.createElement("div",eP({ref:t,className:`tl-positioned-div ${i}`,draggable:!1},o),n.createElement("div",{className:"tl-inner-div"},r))})),tE=class{constructor(){eN(this,"refMap",new Map),eN(this,"boundsCache",new WeakMap),eN(this,"showCloneHandles",!1),eN(this,"hideBounds",!1),eN(this,"isStateful",!1),eN(this,"shouldRender",(e,t)=>!0),eN(this,"getRef",e=>(this.refMap.has(e.id)||this.refMap.set(e.id,n.createRef()),this.refMap.get(e.id))),eN(this,"hitTestBounds",(e,t)=>{let r=this.getBounds(e),n=eV.getRotatedCorners(r,e.rotation);return n.every(e=>eV.pointInBounds(e,t))||(0,eS.Bq)(n,t).length>0}),eN(this,"getRotatedBounds",e=>eV.getBoundsFromPoints(eV.getRotatedCorners(this.getBounds(e),e.rotation)))}};eN(tE,"Component",e=>n.forwardRef(e)),eN(tE,"Indicator",e=>e)},90377:(e,t,r)=>{"use strict";r.d(t,{Bq:()=>P,MV:()=>v,M_:()=>m,NC:()=>_,NO:()=>C,Op:()=>D,Oy:()=>x,Rr:()=>y,SF:()=>j,VH:()=>T,_o:()=>b,jy:()=>E,ts:()=>A,v8:()=>O,vL:()=>k,zd:()=>g});var n=r(99474),i=Object.defineProperty,o=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d=(e,t)=>{for(var r in t||(t={}))l.call(t,r)&&c(e,r,t[r]);if(s)for(var r of s(t))u.call(t,r)&&c(e,r,t[r]);return e},h=(e,t)=>o(e,a(t));function p(e,...t){return{didIntersect:t.length>0,message:e,points:t}}function f(e,t,r=0){let i=[e[0]+t[0]/2,e[1]+t[1]/2],o=n.l.rotWith(e,i,r),a=n.l.rotWith(n.l.add(e,[t[0],0]),i,r),s=n.l.rotWith(n.l.add(e,t),i,r),l=n.l.rotWith(n.l.add(e,[0,t[1]]),i,r);return[["top",[o,a]],["right",[a,s]],["bottom",[s,l]],["left",[l,o]]]}function m(e,t){let r=n.l.slope(e[0],e[1]),i=n.l.slope(t[0],t[1]);if(r===i)return;if(Number.isNaN(r)&&!Number.isNaN(i))return[e[0][0],(e[0][0]-t[0][0])*i+t[0][1]];if(Number.isNaN(i)&&!Number.isNaN(r))return[t[0][0],(t[0][0]-e[0][0])*r+e[0][1]];let o=(r*e[0][0]-i*t[0][0]+t[0][1]-e[0][1])/(r-i),a=i*(o-t[0][0])+t[0][1];return[o,a]}function g(e,t,r,n){let[i,o]=e,[a,s]=t,[l,u]=r,[c,d]=n;if(s/a!=(d-u)/(c-l)){let e=a*(d-u)-s*(c-l);if(0!==e){let t=((o-u)*(c-l)-(i-l)*(d-u))/e,r=((o-u)*a-(i-l)*s)/e;if(t>=0&&r>=0&&r<=1)return p("intersection",[i+t*a,o+t*s])}}return p("no intersection")}function v(e,t,r,i,o,a){return k(e,n.l.mul(t,0x3b9ac9ff),r,i,o,a)}function y(e,t,r,n=0){let{minX:i,minY:o,width:a,height:s}=r;return function(e,t,r,n,i=0){return f(r,n,i).reduce((r,[n,[i,o]])=>{let a=g(e,t,i,o);return a&&r.push(p(n,...a.points)),r},[]).filter(e=>e.didIntersect)}(e,t,[i,o],[a,s],n)}function b(e,t,r,i){let o=n.l.sub(e,r),a=n.l.sub(i,r),s=n.l.sub(t,e),l=a[0]*o[1]-a[1]*o[0],u=s[0]*o[1]-s[1]*o[0],c=a[1]*s[0]-a[0]*s[1];if(0===l||0===u)return p("coincident");if(0===c)return p("parallel");if(0!==c){let t=l/c,r=u/c;if(0<=t&&t<=1&&0<=r&&r<=1)return p("intersection",n.l.add(e,n.l.mul(s,t)))}return p("no intersection")}function w(e,t,r,i){let o=(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]),a=2*((t[0]-e[0])*(e[0]-r[0])+(t[1]-e[1])*(e[1]-r[1])),s=a*a-4*o*(r[0]*r[0]+r[1]*r[1]+e[0]*e[0]+e[1]*e[1]-2*(r[0]*e[0]+r[1]*e[1])-i*i);if(s<0)return p("outside");if(0===s)return p("tangent");let l=Math.sqrt(s),u=(-a+l)/(2*o),c=(-a-l)/(2*o);if((u<0||u>1)&&(c<0||c>1))return u<0&&c<0||u>1&&c>1?p("outside"):p("inside");let d=[];return 0<=u&&u<=1&&d.push(n.l.lrp(e,t,u)),0<=c&&c<=1&&d.push(n.l.lrp(e,t,c)),p("intersection",...d)}function k(e,t,r,i,o,a=0){if(0===i||0===o||n.l.isEqual(e,t))return p("no intersection");i=i<0?i:-i,o=o<0?o:-o,e=n.l.sub(n.l.rotWith(e,r,-a),r),t=n.l.sub(n.l.rotWith(t,r,-a),r);let s=n.l.sub(t,e),l=s[0]*s[0]/i/i+s[1]*s[1]/o/o,u=2*e[0]*s[0]/i/i+2*e[1]*s[1]/o/o,c=e[0]*e[0]/i/i+e[1]*e[1]/o/o-1,d=[],h=u*u-4*l*c;if(0===h)d.push(-u/2/l);else if(h>0){let e=Math.sqrt(h);d.push((-u+e)/2/l),d.push((-u-e)/2/l)}return p("intersection",...d.filter(e=>e>=0&&e<=1).map(i=>n.l.add(r,n.l.add(e,n.l.mul(n.l.sub(t,e),i)))).map(e=>n.l.rotWith(e,r,a)))}function x(e,t,r){return function(e,t,r){let{minX:n,minY:i,width:o,height:a}=e;return S([n,i],[o,a],t,r)}(r,e,t)}function _(e,t,r){let n=[];for(let i=1;i{let a=b(r,n,i,o);return a&&e.push(p(t,...a.points)),e},[]).filter(e=>e.didIntersect)}function E(e,t,r,i,o){var a,s,l,u;let{minX:c,minY:m,width:g,height:v}=o;return a=e,s=t,l=r,u=i,f([c,m],[g,v]).reduce((e,[t,[r,i]])=>{let o=function(e,t,r,i,o,a){let s=n.l.angle(r,o),l=n.l.angle(r,a),u=function(e,t,r,n=0,i,o){return t===r?w(i,o,e,t):k(i,o,e,t,r,n)}(r,i,i,0,e,t);if(!u.didIntersect)return p("no intersection");let c=u.points.filter(e=>(function(e,t,r){if(r===e||r===t)return!0;let n=2*Math.PI,i=(t-e+n)%n;return i<=Math.PI!=(r-e+n)%n>i})(s,l,n.l.angle(r,e)));return 0===c.length?p("no intersection"):p("intersection",...c)}(r,i,a,s,l,u);return o&&e.push(h(d({},o),{message:t})),e},[]).filter(e=>e.didIntersect)}function C(e,t,r,n){return w(r,n,e,t)}function D(e,t,r,n){let i=r[0]-e[0],o=r[1]-e[1],a=Math.sqrt(i*i+o*o),s=(a*a-n*n+t*t)/(2*a),l=Math.sqrt(t*t-s*s);return i/=a,o/=a,p("intersection",[e[0]+i*s-o*l,e[1]+o*s+i*l],[e[0]+i*s+o*l,e[1]+o*s-i*l])}function A(e,t,r,n,i){let{minX:o,minY:a,width:s,height:l}=i;return function(e,t,r,n=0,i,o){var a,s,l,u;return t===r?(a=i,s=o,l=e,u=t,f(a,s).reduce((e,[t,[r,n]])=>{let i=w(r,n,l,u);return i&&e.push(h(d({},i),{message:t})),e},[]).filter(e=>e.didIntersect)):function(e,t,r,n,i,o=0){return f(e,t).reduce((e,[t,[a,s]])=>{let l=k(a,s,r,n,i,o);return l&&e.push(h(d({},l),{message:t})),e},[]).filter(e=>e.didIntersect)}(i,o,e,t,r,n)}(e,t,r,n,[o,a],[s,l])}function j(e,t){var r,n,i,o;return r=[e.minX,e.minY],n=[e.width,e.height],i=[t.minX,t.minY],o=[t.width,t.height],f(r,n).reduce((e,[t,[r,n]])=>{let a=S(i,o,r,n);return e.push(...a.map(e=>p(`${t} ${e.message}`,...e.points))),e},[]).filter(e=>e.didIntersect)}function O(e,t){var r;return r=[e.minX,e.minY],f(r,[e.width,e.height]).reduce((e,[r,[n,i]])=>{let o=_(n,i,t);return o.didIntersect&&e.push(p(r,...o.points)),e},[]).filter(e=>e.didIntersect)}function T(e,t){return P(t,e)}function P(e,t){return f([t.minX,t.minY],[t.width,t.height]).reduce((t,[r,[n,i]])=>{let o=function(e,t,r){let n=[];for(let i=1;ie.didIntersect)}},99474:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,l:()=>s});var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t,r)=>(i(e,"symbol"!=typeof t?t+"":t,r),r),a=class{static clamp(e,t,r){return Math.max(t,void 0!==r?Math.min(e,r):e)}static clampV(e,t,r){return e.map(e=>r?a.clamp(e,t,r):a.clamp(e,t))}static cross(e,t,r){return(t[0]-e[0])*(r[1]-e[1])-(r[0]-e[0])*(t[1]-e[1])}static snap(e,t=1){return[Math.round(e[0]/t)*t,Math.round(e[1]/t)*t]}},s=a;o(s,"neg",e=>[-e[0],-e[1]]),o(s,"add",(e,t)=>[e[0]+t[0],e[1]+t[1]]),o(s,"addScalar",(e,t)=>[e[0]+t,e[1]+t]),o(s,"sub",(e,t)=>[e[0]-t[0],e[1]-t[1]]),o(s,"subScalar",(e,t)=>[e[0]-t,e[1]-t]),o(s,"vec",(e,t)=>[t[0]-e[0],t[1]-e[1]]),o(s,"mul",(e,t)=>[e[0]*t,e[1]*t]),o(s,"mulV",(e,t)=>[e[0]*t[0],e[1]*t[1]]),o(s,"div",(e,t)=>[e[0]/t,e[1]/t]),o(s,"divV",(e,t)=>[e[0]/t[0],e[1]/t[1]]),o(s,"per",e=>[e[1],-e[0]]),o(s,"dpr",(e,t)=>e[0]*t[0]+e[1]*t[1]),o(s,"cpr",(e,t)=>e[0]*t[1]-t[0]*e[1]),o(s,"len2",e=>e[0]*e[0]+e[1]*e[1]),o(s,"len",e=>Math.hypot(e[0],e[1])),o(s,"pry",(e,t)=>a.dpr(e,t)/a.len(t)),o(s,"uni",e=>a.div(e,a.len(e))),o(s,"normalize",e=>a.uni(e)),o(s,"tangent",(e,t)=>a.uni(a.sub(e,t))),o(s,"dist2",(e,t)=>a.len2(a.sub(e,t))),o(s,"dist",(e,t)=>Math.hypot(e[1]-t[1],e[0]-t[0])),o(s,"fastDist",(e,t)=>{let r=[t[0]-e[0],t[1]-e[1]],n=[Math.abs(r[0]),Math.abs(r[1])],i=1/Math.max(n[0],n[1]);return[r[0]*(i*=1.29289-(n[0]+n[1])*i*.29289),r[1]*i]}),o(s,"ang",(e,t)=>Math.atan2(a.cpr(e,t),a.dpr(e,t))),o(s,"angle",(e,t)=>Math.atan2(t[1]-e[1],t[0]-e[0])),o(s,"med",(e,t)=>a.mul(a.add(e,t),.5)),o(s,"rot",(e,t=0)=>[e[0]*Math.cos(t)-e[1]*Math.sin(t),e[0]*Math.sin(t)+e[1]*Math.cos(t)]),o(s,"rotWith",(e,t,r=0)=>{if(0===r)return e;let n=Math.sin(r),i=Math.cos(r),o=e[0]-t[0],a=e[1]-t[1];return[o*i-a*n+t[0],o*n+a*i+t[1]]}),o(s,"isEqual",(e,t)=>e[0]===t[0]&&e[1]===t[1]),o(s,"lrp",(e,t,r)=>a.add(e,a.mul(a.sub(t,e),r))),o(s,"int",(e,t,r,n,i=1)=>{let o=(a.clamp(r,n)-r)/(n-r);return a.add(a.mul(e,1-o),a.mul(t,i))}),o(s,"ang3",(e,t,r)=>{let n=a.vec(t,e),i=a.vec(t,r);return a.ang(n,i)}),o(s,"abs",e=>[Math.abs(e[0]),Math.abs(e[1])]),o(s,"rescale",(e,t)=>{let r=a.len(e);return[t*e[0]/r,t*e[1]/r]}),o(s,"isLeft",(e,t,r)=>(t[0]-e[0])*(r[1]-e[1])-(r[0]-e[0])*(t[1]-e[1])),o(s,"clockwise",(e,t,r)=>a.isLeft(e,t,r)>0),o(s,"toFixed",e=>e.map(e=>Math.round(100*e)/100)),o(s,"nearestPointOnLineThroughPoint",(e,t,r)=>a.add(e,a.mul(t,a.pry(a.sub(r,e),t)))),o(s,"distanceToLineThroughPoint",(e,t,r)=>a.dist(r,a.nearestPointOnLineThroughPoint(e,t,r))),o(s,"nearestPointOnLineSegment",(e,t,r,n=!0)=>{let i=a.uni(a.sub(t,e)),o=a.add(e,a.mul(i,a.pry(a.sub(r,e),i)));if(n){if(o[0]Math.max(e[0],t[0]))return e[0]>t[0]?e:t;if(o[1]Math.max(e[1],t[1]))return e[1]>t[1]?e:t}return o}),o(s,"distanceToLineSegment",(e,t,r,n=!0)=>a.dist(r,a.nearestPointOnLineSegment(e,t,r,n))),o(s,"nearestPointOnBounds",(e,t)=>[a.clamp(t[0],e.minX,e.maxX),a.clamp(t[1],e.minY,e.maxY)]),o(s,"distanceToBounds",(e,t)=>a.dist(t,a.nearestPointOnBounds(e,t))),o(s,"nudge",(e,t,r)=>a.isEqual(e,t)?e:a.add(e,a.mul(a.uni(a.sub(t,e)),r))),o(s,"nudgeAtAngle",(e,t,r)=>[Math.cos(t)*r+e[0],Math.sin(t)*r+e[1]]),o(s,"toPrecision",(e,t=4)=>[+e[0].toPrecision(t),+e[1].toPrecision(t)]),o(s,"pointsBetween",(e,t,r=6)=>Array.from(Array(r)).map((n,i)=>{let o=i/(r-1),s=Math.min(1,.5+Math.abs(.5-o));return[...a.lrp(e,t,o),s]})),o(s,"slope",(e,t)=>e[0]===t[0]?NaN:(e[1]-t[1])/(e[0]-t[0])),o(s,"max",(...e)=>[Math.max(...e.map(e=>e[0])),Math.max(...e.map(e=>e[1]))]),o(s,"min",(...e)=>[Math.min(...e.map(e=>e[0])),Math.min(...e.map(e=>e[1]))]);var l=s},4032:(e,t,r)=>{"use strict";let n,i,o;r.d(t,{Kq:()=>E,R0:()=>y,yQ:()=>N});var a={};r.r(a),r.d(a,{getItem:()=>x,removeItem:()=>_,setItem:()=>k});var s=r(45945),l=r(58396);class u extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}function c(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var d=0;function h(e){return"__private_"+d+++"_"+e}async function p(e){if(401===e.status)throw new u;let t=e.json();if(e.ok)return t;let r=`Failed request with status: ${e.status}. ${e.statusText}`;try{let e=await t;r=e.message?`${r} message: ${e.message}`:r,r=e.requestId?`${r} request-Id: ${e.requestId}`:r}catch{}throw Error(r)}let f=new Map;var m=h("companionHeaders"),g=h("getUrl"),v=h("request");n=Symbol.for("uppy test: getCompanionHeaders");class y{constructor(e,t){Object.defineProperty(this,v,{value:w}),Object.defineProperty(this,g,{value:b}),Object.defineProperty(this,m,{writable:!0,value:void 0}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),c(this,m)[m]=null==t?void 0:t.companionHeaders}setCompanionHeaders(e){c(this,m)[m]=e}[n](){return c(this,m)[m]}get hostname(){let{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}async headers(){return{Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${y.VERSION}`,...c(this,m)[m]}}onReceiveResponse(e){let{headers:t}=e,r=this.uppy.getState().companion||{},n=this.opts.companionUrl;t.has("i-am")&&t.get("i-am")!==r[n]&&this.uppy.setState({companion:{...r,[n]:t.get("i-am")}})}async preflight(e){let t=f.get(this.hostname);if(null!=t)return t;let r=["accept","content-type","uppy-auth-token"],n=(async()=>{try{let t=(await fetch(c(this,g)[g](e),{method:"OPTIONS"})).headers.get("access-control-allow-headers");if(null==t||"*"===t)return f.set(this.hostname,r),r;this.uppy.log(`[CompanionClient] adding allowed preflight headers to companion cache: ${this.hostname} ${t}`);let n=t.split(",").map(e=>e.trim().toLowerCase());return f.set(this.hostname,n),n}catch(e){return this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),f.delete(this.hostname),r}})();return f.set(this.hostname,n),n}async preflightAndHeaders(e){let[t,r]=await Promise.all([this.preflight(e),this.headers()]);return Object.fromEntries(Object.entries(r).filter(e=>{let[r]=e;return!!t.includes(r.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${r}`),!1)}))}async get(e,t){return void 0===t&&(t=void 0),"boolean"==typeof t&&(t={skipPostResponse:t}),c(this,v)[v]({...t,path:e})}async post(e,t,r){return void 0===r&&(r=void 0),"boolean"==typeof r&&(r={skipPostResponse:r}),c(this,v)[v]({...r,path:e,method:"POST",data:t})}async delete(e,t,r){return void 0===t&&(t=void 0),"boolean"==typeof r&&(r={skipPostResponse:r}),c(this,v)[v]({...r,path:e,method:"DELETE",data:t})}}function b(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}async function w(e){let{path:t,method:r="GET",data:n,skipPostResponse:i,signal:o}=e;try{let e=await this.preflightAndHeaders(t),a=await (0,s.A)(c(this,g)[g](t),{method:r,signal:o,headers:e,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null});return i||this.onReceiveResponse(a),p(a)}catch(e){if(null!=e&&e.isAuthError)throw e;throw new l.A(`Could not ${r} ${c(this,g)[g](t)}`,{cause:e})}}function k(e,t){return new Promise(r=>{localStorage.setItem(e,t),r()})}function x(e){return Promise.resolve(localStorage.getItem(e))}function _(e){return new Promise(t=>{localStorage.removeItem(e),t()})}y.VERSION="3.1.1";let S=e=>e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");class E extends y{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||S(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}async headers(){let[e,t]=await Promise.all([super.headers(),this.getAuthToken()]),r={};return t&&(r["uppy-auth-token"]=t),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...r}}onReceiveResponse(e){super.onReceiveResponse(e);let t=this.uppy.getPlugin(this.pluginId),r=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:r}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}async ensurePreAuth(){if(this.companionKeysParams&&!this.preAuthToken&&(await this.fetchPreAuthToken(),!this.preAuthToken))throw Error("Could not load authentication data required for third-party login. Please try again later.")}authUrl(e){void 0===e&&(e={});let t=new URLSearchParams(e);return this.preAuthToken&&t.set("uppyPreAuthToken",this.preAuthToken),`${this.hostname}/${this.id}/connect?${t}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}async fetchPreAuthToken(){if(this.companionKeysParams)try{let e=await this.post(`${this.id}/preauth/`,{params:this.companionKeysParams});this.preAuthToken=e.token}catch(e){this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,r){if(e.type="acquirer",e.files=[],r&&(e.opts={...r,...t}),t.serverUrl||t.serverPattern)throw Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){let r=t.companionAllowedHosts;if("string"!=typeof r&&!Array.isArray(r)&&!(r instanceof RegExp))throw TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||a}}var C=r(2162);function D(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var A=0;function j(e){return"__private_"+A+++"_"+e}var O=j("queued"),T=j("emitter"),P=j("isOpen"),R=j("socket"),M=j("handleMessage");i=Symbol.for("uppy test: getSocket"),o=Symbol.for("uppy test: getQueued");class N{constructor(e){Object.defineProperty(this,O,{writable:!0,value:[]}),Object.defineProperty(this,T,{writable:!0,value:C()}),Object.defineProperty(this,P,{writable:!0,value:!1}),Object.defineProperty(this,R,{writable:!0,value:void 0}),Object.defineProperty(this,M,{writable:!0,value:e=>{try{let t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return D(this,P)[P]}[i](){return D(this,R)[R]}[o](){return D(this,O)[O]}open(){D(this,R)[R]=new WebSocket(this.opts.target),D(this,R)[R].onopen=()=>{for(D(this,P)[P]=!0;D(this,O)[O].length>0&&D(this,P)[P];){let e=D(this,O)[O].shift();this.send(e.action,e.payload)}},D(this,R)[R].onclose=()=>{D(this,P)[P]=!1},D(this,R)[R].onmessage=D(this,M)[M]}close(){var e;null==(e=D(this,R)[R])||e.close()}send(e,t){if(!D(this,P)[P]){D(this,O)[O].push({action:e,payload:t});return}D(this,R)[R].send(JSON.stringify({action:e,payload:t}))}on(e,t){D(this,T)[T].on(e,t)}emit(e,t){D(this,T)[T].emit(e,t)}once(e,t){D(this,T)[T].once(e,t)}}},42729:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(59491);class i{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){let{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){let{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){let e=new n.A([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}}},88570:(e,t,r)=>{"use strict";let n,i;r.d(t,{qO:()=>ey,To:()=>eu,Ay:()=>eu});var o=r(59491),a=r(2162);let s=(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t};var l=r(53871);function u(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var c=0;function d(e){return"__private_"+c+++"_"+e}var h=d("callbacks"),p=d("publish");class f{constructor(){Object.defineProperty(this,p,{value:m}),Object.defineProperty(this,h,{writable:!0,value:new Set}),this.state={}}getState(){return this.state}setState(e){let t={...this.state},r={...this.state,...e};this.state=r,u(this,p)[p](t,r,e)}subscribe(e){return u(this,h)[h].add(e),()=>{u(this,h)[h].delete(e)}}}function m(){for(var e=arguments.length,t=Array(e),r=0;r{e(...t)})}function g(e){let t=e.lastIndexOf(".");return -1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}f.VERSION="3.0.2";var v=r(87544);function y(e){let t="";return e.replace(/[^A-Z0-9]/ig,e=>(t+=`-${e.charCodeAt(0).toString(32)}`,"/"))+t}function b(e){return e<10?`0${e}`:e.toString()}function w(){let e=new Date,t=b(e.getHours()),r=b(e.getMinutes()),n=b(e.getSeconds());return`${t}:${r}:${n}`}let k={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=Array(e),r=0;r{let t=e();if(null!=t.restrictions.allowedFileTypes&&!Array.isArray(t.restrictions.allowedFileTypes))throw TypeError("`restrictions.allowedFileTypes` must be an array");return t}}validate(e,t){let{maxFileSize:r,minFileSize:n,maxTotalFileSize:i,maxNumberOfFiles:o,allowedFileTypes:a}=this.getOpts().restrictions;if(o&&t.filter(e=>!e.isGhost).length+1>o)throw new C(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(a&&!a.some(t=>t.includes("/")?!!e.type&&S(e.type.replace(/;.*?$/,""),t):"."===t[0]&&!!e.extension&&e.extension.toLowerCase()===t.slice(1).toLowerCase())){let e=a.join(", ");throw new C(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(i&&null!=e.size&&t.reduce((e,t)=>e+t.size,e.size)>i)throw new C(this.i18n("exceedsSize",{size:_(i),file:e.name}));if(r&&null!=e.size&&e.size>r)throw new C(this.i18n("exceedsSize",{size:_(r),file:e.name}));if(n&&null!=e.size&&e.sizee,onBeforeUpload:e=>e,store:new f,logger:k,infoTimeout:5e3};this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=x),this.log(`Using Core v${this.constructor.VERSION}`),this.i18nInit(),this.calculateProgress=l(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:function(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;let t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;let[r,n]=t[1].split(".");return r=parseInt(r,10),n=parseInt(n,10),r<15||15===r&&n<15063||r>18||18===r&&n>=18218}(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),j(this,R)[R]=new D(()=>this.opts,this.i18n),j(this,M)[M]=this.store.subscribe((e,t,r)=>{this.emit("state-update",e,t,r),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),j(this,$)[$]()}emit(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{t.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}setFileState(e,t){if(!this.getState().files[e])throw Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){let e=new o.A([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(e=>{e.setOptions()}),this.setState()}resetProgress(){let e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},r={};Object.keys(t).forEach(n=>{let i={...t[n]};i.progress={...i.progress,...e},r[n]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){j(this,F)[F].add(e)}removePreProcessor(e){return j(this,F)[F].delete(e)}addPostProcessor(e){j(this,L)[L].add(e)}removePostProcessor(e){return j(this,L)[L].delete(e)}addUploader(e){j(this,I)[I].add(e)}removeUploader(e){return j(this,I)[I].delete(e)}setMeta(e){let t={...this.getState().meta,...e},r={...this.getState().files};Object.keys(r).forEach(t=>{r[t]={...r[t],meta:{...r[t].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:r})}setFileMeta(e,t){let r={...this.getState().files};if(!r[e]){this.log("Was trying to set metadata for a file that has been removed: ",e);return}let n={...r[e].meta,...t};r[e]={...r[e],meta:n},this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){let{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){let{files:e,totalProgress:t,error:r}=this.getState(),n=Object.values(e),i=n.filter(e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted}),o=n.filter(e=>!e.progress.uploadStarted),a=n.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),s=n.filter(e=>e.progress.uploadStarted),l=n.filter(e=>e.isPaused),u=n.filter(e=>e.progress.uploadComplete),c=n.filter(e=>e.error),d=i.filter(e=>!e.isPaused),h=n.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:o,startedFiles:a,uploadStartedFiles:s,pausedFiles:l,completeFiles:u,erroredFiles:c,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:h,isUploadStarted:s.length>0,isAllComplete:100===t&&u.length===n.length&&0===h.length,isAllErrored:!!r&&c.length===n.length,isAllPaused:0!==i.length&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:n.some(e=>e.isGhost)}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{j(this,R)[R].validate(e,t)}catch(e){return e}return null}checkIfFileAlreadyExists(e){let{files:t}=this.getState();return!!t[e]&&!t[e].isGhost}addFile(e){j(this,q)[q](e);let{files:t}=this.getState(),r=j(this,H)[H](t,e);return t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...t,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),j(this,V)[V](),r.id}addFiles(e){j(this,q)[q]();let t={...this.getState().files},r=[],n=[];for(let i=0;i{this.emit("file-added",e)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(e=>{this.log(`Added file: ${r[e].name} id: ${r[e].id} type: ${r[e].type}`)}),r.length>0&&j(this,V)[V](),n.length>0){let e="Multiple errors occurred while adding files:\n";if(n.forEach(t=>{e+=` * ${t.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:n.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw AggregateError(n,e);{let t=Error(e);throw t.errors=n,t}}}removeFiles(e,t){let{files:r,currentUploads:n}=this.getState(),i={...r},o={...n},a=Object.create(null);function s(e){return void 0===a[e]}e.forEach(e=>{r[e]&&(a[e]=r[e],delete i[e])}),Object.keys(o).forEach(e=>{let t=n[e].fileIDs.filter(s);if(0===t.length){delete o[e];return}let{capabilities:r}=this.getState();if(t.length!==n[e].fileIDs.length&&!r.individualCancellation)throw Error("individualCancellation is disabled");o[e]={...n[e],fileIDs:t}});let l={currentUploads:o,files:i};0===Object.keys(i).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();let u=Object.keys(a);u.forEach(e=>{this.emit("file-removed",a[e],t)}),u.length>5?this.log(`Removed ${u.length} files`):this.log(`Removed files: ${u.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;let t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){let e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{let r={...e[t],isPaused:!0};e[t]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){let e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{let r={...e[t],isPaused:!1,error:null};e[t]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){let e={...this.getState().files},t=Object.keys(e).filter(t=>e[t].error);if(t.forEach(t=>{let r={...e[t],isPaused:!1,error:null};e[t]=r}),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});let r=j(this,Y)[Y](t,{forceAllowNewUpload:!0});return j(this,X)[X](r)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){let{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);let t=j(this,Y)[Y]([e],{forceAllowNewUpload:!0});return j(this,X)[X](t)}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,t){if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}let r=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:r?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){let e=this.getFiles().filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess);if(0===e.length){this.emit("progress",0),this.setState({totalProgress:0});return}let t=e.filter(e=>null!=e.progress.bytesTotal),r=e.filter(e=>null==e.progress.bytesTotal);if(0===t.length){let t=100*e.length,n=Math.round(r.reduce((e,t)=>e+t.progress.percentage,0)/t*100);this.setState({totalProgress:n});return}let n=t.reduce((e,t)=>e+t.progress.bytesTotal,0),i=n/t.length;n+=i*r.length;let o=0;t.forEach(e=>{o+=e.progress.bytesUploaded}),r.forEach(e=>{o+=i*(e.progress.percentage||0)/100});let a=0===n?0:Math.round(o/n*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);let r=new e(this,t),n=r.id;if(!n)throw Error("Your plugin must have an id");if(!r.type)throw Error("Your plugin must have a type");let i=this.getPlugin(n);if(i)throw Error(`Already found a plugin named '${i.id}'. Tried to use: '${n}'. Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`);return e.VERSION&&this.log(`Using ${n} v${e.VERSION}`),r.type in j(this,P)[P]?j(this,P)[P][r.type].push(r):j(this,P)[P][r.type]=[r],r.install(),this}getPlugin(e){for(let t of Object.values(j(this,P)[P])){let r=t.find(t=>t.id===e);if(null!=r)return r}}[n](e){return j(this,P)[P][e]}iteratePlugins(e){Object.values(j(this,P)[P]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();let t=j(this,P)[P][e.type],r=t.findIndex(t=>t.id===e.id);-1!==r&&t.splice(r,1);let n={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(n)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),j(this,M)[M](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",j(this,W)[W]),window.removeEventListener("offline",j(this,W)[W]))}hideInfo(){let{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,r){void 0===t&&(t="info"),void 0===r&&(r=3e3);let n="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:n?e.message:e,details:n?e.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(e,t){let{logger:r}=this.opts;switch(t){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}restore(e){return(this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e])?j(this,X)[X](e):(j(this,K)[K](e),Promise.reject(Error("Nonexistent upload")))}[i](){return j(this,Y)[Y](...arguments)}addResultData(e,t){if(!j(this,G)[G](e)){this.log(`Not setting result for an upload that has been removed: ${e}`);return}let{currentUploads:r}=this.getState(),n={...r[e],result:{...r[e].result,...t}};this.setState({currentUploads:{...r,[e]:n}})}upload(){var e;null!=(e=j(this,P)[P].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState(),r=this.opts.onBeforeUpload(t);return!1===r?Promise.reject(Error("Not starting the upload because onBeforeUpload returned false")):(r&&"object"==typeof r&&(t=r,this.setState({files:t})),Promise.resolve().then(()=>j(this,R)[R].validateMinNumberOfFiles(t)).catch(e=>{throw j(this,B)[B](e),e}).then(()=>{if(!j(this,U)[U](t))throw new C(this.i18n("missingRequiredMetaField"))}).catch(e=>{throw e}).then(()=>{let{currentUploads:e}=this.getState(),r=Object.values(e).flatMap(e=>e.fileIDs),n=[];Object.keys(t).forEach(e=>{let t=this.getFile(e);t.progress.uploadStarted||-1!==r.indexOf(e)||n.push(t.id)});let i=j(this,Y)[Y](n);return j(this,X)[X](i)}).catch(e=>{throw this.emit("error",e),this.log(e,"error"),e}))}}function Q(e,t){let{message:r,details:n=""}=e;e.isRestriction?this.emit("restriction-failed",t,e):this.emit("error",e),this.info({message:r,details:n},"error",this.opts.infoTimeout),this.log(e,"warning")}function Z(e){let{missingFields:t,error:r}=j(this,R)[R].getMissingRequiredMetaFields(e);return!(t.length>0)||(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(r.message),this.emit("restriction-failed",e,r),!1)}function ee(e){let t=!0;for(let r of Object.values(e))j(this,z)[z](r)||(t=!1);return t}function et(e){let{allowNewUpload:t}=this.getState();if(!1===t){let t=new C(this.i18n("noMoreFilesAllowed"));throw j(this,B)[B](t,e),t}}function er(e,t){var r,n;let i;t instanceof File&&(t={name:t.name,type:t.type,size:t.size,data:t});let o=function(e){var t;if(e.type)return e.type;let r=e.name?null==(t=g(e.name).extension)?void 0:t.toLowerCase():null;return r&&r in v.A?v.A[r]:"application/octet-stream"}(t),a=(r=t).name?r.name:"image"===o.split("/")[0]?`${o.split("/")[0]}.${o.split("/")[1]}`:"noname",s=g(a).extension,l=!!t.isRemote,u=(n={...t,type:o},i="uppy","string"==typeof n.name&&(i+=`-${y(n.name.toLowerCase())}`),void 0!==n.type&&(i+=`-${n.type}`),n.meta&&"string"==typeof n.meta.relativePath&&(i+=`-${y(n.meta.relativePath.toLowerCase())}`),void 0!==n.data.size&&(i+=`-${n.data.size}`),void 0!==n.data.lastModified&&(i+=`-${n.data.lastModified}`),i);if(this.checkIfFileAlreadyExists(u)){let e=new C(this.i18n("noDuplicates",{fileName:a}));throw j(this,B)[B](e,t),e}let c=t.meta||{};c.name=a,c.type=o;let d=Number.isFinite(t.data.size)?t.data.size:null,h={source:t.source||"",id:u,name:a,extension:s||"",meta:{...this.getState().meta,...c},type:o,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:d,uploadComplete:!1,uploadStarted:null},size:d,isRemote:l,remote:t.remote||"",preview:t.preview},p=this.opts.onBeforeFileAdded(h,e);if(!1===p){let e=new C("Cannot add the file because onBeforeFileAdded returned false.");throw this.emit("restriction-failed",t,e),e}"object"==typeof p&&null!==p&&(h=p);try{let t=Object.keys(e).map(t=>e[t]);j(this,R)[R].validate(h,t)}catch(e){throw j(this,B)[B](e,h),e}return h}function en(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function ei(){let e;let t=(e,t,r)=>{let n=e.message||"Unknown error";e.details&&(n+=` ${e.details}`),this.setState({error:n}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:n,response:r})};this.on("error",t),this.on("upload-error",(e,r,n)=>{if(t(r,e,n),"object"==typeof r&&r.message){let t=Error(r.message);t.details=r.message,r.details&&(t.details+=` ${r.details}`),t.message=this.i18n("failedToUpload",{file:null==e?void 0:e.name}),j(this,B)[B](t)}else j(this,B)[B](r)}),this.on("upload-stalled",(t,r)=>{let{message:n}=t,i=r.map(e=>e.meta.name).join(", ");e||(this.info({message:n,details:i},"warning",this.opts.infoTimeout),e=setTimeout(()=>{e=null},this.opts.infoTimeout)),this.log(`${n} ${i}`.trim(),"warning")}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}})}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}let r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...r,postprocess:j(this,L)[L].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,t)=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}})}),this.on("preprocess-complete",e=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})}),this.on("postprocess-progress",(e,t)=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}})}),this.on("postprocess-complete",e=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&j(this,z)[z](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",j(this,W)[W]),window.addEventListener("offline",j(this,W)[W]),setTimeout(j(this,W)[W],3e3))}function eo(e,t){void 0===t&&(t={});let{forceAllowNewUpload:r=!1}=t,{allowNewUpload:n,currentUploads:i}=this.getState();if(!n&&!r)throw Error("Cannot create a new upload: already uploading.");let o=s();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...i,[o]:{fileIDs:e,step:0,result:{}}}}),o}function ea(e){let{currentUploads:t}=this.getState();return t[e]}function es(e){let t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function el(e){let t,{currentUploads:r}=this.getState(),n=r[e],i=n.step||0,o=[...j(this,F)[F],...j(this,I)[I],...j(this,L)[L]];try{for(let t=i;t{let t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)});let t=n.fileIDs.map(e=>this.getFile(e)),i=t.filter(e=>!e.error),o=t.filter(e=>e.error);await this.addResultData(e,{successful:i,failed:o,uploadID:e}),n=(r=this.getState().currentUploads)[e]}return n&&(t=n.result,this.emit("complete",t),j(this,K)[K](e)),null==t&&this.log(`Not setting result for an upload that has been removed: ${e}`),t}J.VERSION="3.0.6";let eu=J;var ec=r(5181),ed=r(91677),eh=r(55533),ep=r(42729);function ef(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var em=0,eg="__private_"+em+++"_updateUI";class ev extends ep.A{constructor(){super(...arguments),Object.defineProperty(this,eg,{writable:!0,value:void 0})}getTargetPlugin(e){let t;return"object"==typeof e&&e instanceof ev?t=e:"function"==typeof e&&this.uppy.iteratePlugins(r=>{r instanceof e&&(t=r)}),t}mount(e,t){var r,n;let i=t.id,o=(void 0===r&&(r=document),"string"==typeof e)?r.querySelector(e):(0,ed.A)(e)?e:null;if(o){let t,r;this.isTargetDOMEl=!0;let a=document.createElement("div");return a.classList.add("uppy-Root"),ef(this,eg)[eg]=(n=e=>{this.uppy.getPlugin(this.id)&&((0,ec.XX)(this.render(e),a),this.afterUpdate())},t=null,r=null,function(){for(var e=arguments.length,i=Array(e),o=0;o(t=null,n(...r)))),t}),this.uppy.log(`Installing ${i} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),(0,ec.XX)(this.render(this.uppy.getState()),a),this.el=a,o.appendChild(a),a.dir=this.opts.direction||(0,eh.A)(a)||"ltr",this.onMount(),this.el}let a=this.getTargetPlugin(e);if(a)return this.uppy.log(`Installing ${i} to ${a.id}`),this.parent=a,this.el=a.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${i}`);let s=`Invalid target option given to ${i}.`;throw"function"==typeof e?s+=" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":s+="If you meant to target an HTML element, please make sure that the element exists. Check that the